₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,242 members, 8,449,379 topics. Date: Tuesday, 21 July 2026 at 05:16 PM

Toggle theme

Jacob05's Posts

Nairaland ForumJacob05's ProfileJacob05's Posts

1 2 3 4 5 6 7 8 ... 20 21 22 23 24 25 26 27 28 (of 37 pages)

Foreign AffairsRe: Beyonce Writes A Letter To Obama by jacob05(m): 1:01pm On Nov 07, 2012
cool[quote author=bbpreye.]So what?

#continues drinking garri#[/quote]hold am! I never take my own spoon na.
Jokes EtcRe: Akpos And Iya Balikis The Coconut Seller by jacob05(op): 8:04pm On Nov 05, 2012
nikkyshyne: Did you actually LoL? undecided
That shows your PROBLEM is greater than the joke. Don't worry God is in control wink, lol
Jokes EtcAkpos And Iya Balikis The Coconut Seller by jacob05(op): 3:41pm On Nov 05, 2012
Akpo loves coconut and he's favourite coconut seller is Iya Balikis . But Akpos was always curious anytime he buys coconut from her, she always gives him the smaller ones while she hides the BIGGER ones under her cloth, Akpos thought.
Oneday, akpos puts this question to he's teacher Mr Toheeb, Obviously tired of akpos's stupidity, he told him to order for them the next time he sees her.
The second day, akpos saw her, he happily ran to her and said"Iya Balikis give one of those small coconuts on your head and the Big Two you're hiding under your cloth".
.
.
.
Akpos was last seen in the hospital treating the BIG TWO coconut iya balikis gave him on his Head.

Lol
ProgrammingRe: Programmers: Share Your Twitter Handle by jacob05(m): 10:42am On Oct 28, 2012
@py_jac
WebmastersRe: ..... by jacob05(m): 3:33pm On Oct 25, 2012
@dhtml you'll love it. wink
WebmastersRe: Why On Earth Would People Compare ASP To PHP ? by jacob05(m): 5:46pm On Oct 24, 2012
LOL @pu_guru
WebmastersRe: Why On Earth Would People Compare ASP To PHP ? by jacob05(m): 1:29pm On Oct 24, 2012
LOL grin
WebmastersRe: Why On Earth Would People Compare ASP To PHP ? by jacob05(m): 1:29pm On Oct 24, 2012
LOL
EducationRe: Kwara State Polytechnic Admission For 2012/2013, ND/HND by jacob05(m):
Also got admitted into Computer Science HND programme.
EducationRe: Kwara State Polytechnic Admission For 2012/2013, ND/HND by jacob05(m): 12:01am On Oct 08, 2012
60.HND.COMP.SCI.
ProgrammingRe: Programming Challenge by jacob05(m): 10:48pm On Sep 29, 2012
mkwayisi: The fun don finish ;-)
think it's just beginning wink.
ProgrammingRe: Which Programming Language(s) Help Put Food On Your Table? by jacob05(m): 9:28pm On Sep 29, 2012
PHP and C#
ProgrammingRe: Programming Challenge by jacob05(m): 9:26pm On Sep 29, 2012
Final fix done {still 2 lines == 2 semi colon wink} http://pastebin.com/nKsEq9tN
ProgrammingRe: Help On Php Code For A Dice Game by jacob05(m): 9:18pm On Sep 29, 2012
The images aren't the issue but the undefined variables $hdncounter and $
hdnboxcounter. you really need improve your code. You can start by using an array for storing the images and also making use of the $_SESSION global variable instead of using hidden form values to store counts. wink
ProgrammingRe: Help On Php Code For A Dice Game by jacob05(m): 7:05pm On Sep 29, 2012
jboy01: Thank you pals, I have gotten the by myself. I use
<html>
<head>
<title>Reloaded</title>
</head>
<body>
<center>
<h1>Dice Game Reloaded</h1>
<?php
//declearing the variable name for the
dices
$dice1="<img src='dice1.png'>";
$dice2="<img src='dice2.png'>";
$dice3="<img src='dice3.png'>";
$dice4="<img src='dice4.png'>";
$dice5="<img src='dice5.png'>";
$dice6="<img src='dice6.png'>";
?>
<?php
$roll=rand(1, 6);
echo "<h2>You roll a $roll</h2>";
?>
<?php
//displaying pics with respect to random
roll generated
if ($roll==1) print $dice1;
elseif ($roll==2) print $dice2;
elseif ($roll==3) print $dice3;
elseif ($roll==4) print $dice4;
elseif ($roll==5) print $dice5;
elseif ($roll==6) print $dice6;
else print "";
?>
<br>
<?php
$hdncounter++;
$hdnboxcounter++;
If($hdnboxcounter==6){
Echo "<h1>GAME OVER</h1>";
}
Elseif ($guess != $roll){ echo <<<HERE
<form method="post"
action="">
<table>
<tr>
<th>Input your Guess here</th>
</tr>
<tr>
<td>
<input type="text"
name="guess">
<Input type="hidden"
Name="hdncounter"
value="$hdncounter">
<Input type="hidden"
Name="hdnboxcounter"
Value="$hdnboxcounter">
</td>
</tr>
<tr>
<td>
<input type="submit"
name="submit"
value="Submit">
</td>
</tr>
HERE;
}
else {
print"<h2>YOU win</h2>" ;
echo "<a href='reloaded.php'> Play
Another Game</a>";
}
?>
</center>
</body>
</html>
were you able to run this? Because i'm getting errors while running your code
ProgrammingRe: Help On Php Code For A Dice Game by jacob05(m): 7:00pm On Sep 29, 2012
I think you can do better than this.
ProgrammingRe: Programming Challenge by jacob05(m): 6:42pm On Sep 29, 2012
ProgrammingRe: Programming Challenge by jacob05(m):
[quote author=₱®ÌИСΞ]Your code isnt complete, as it does not convert the input to lower case to be tested against $alph
notice how it says 0 f's and 0 d's...
and the output should follow the format No f's instead of 0 f's
proof: http://ideone.com/Jk7JH[/quote]list($alph,$search) = array("abcdefghijklmnopqrstuvwxyz",strtolower($_GET['string']));
for($i=0;$i<strlen($alph);$i++) printf("%s %s's <br />",($result=preg_match_all('/'.$alph{$i}.'/',$search,$match)) ? $result : "No ",$alph{$i});
ProgrammingRe: Help On Php Code For A Dice Game by jacob05(m): 8:37am On Sep 29, 2012
You can use the $_SESSION global variable to store the number of attempt the user made. wink , i would advice you store your die images in and array.
ProgrammingRe: Programming Challenge by jacob05(m): 10:45am On Sep 28, 2012
ProgrammingRe: Programming Challenge by jacob05(m): 10:36am On Sep 28, 2012
To Make the Challenge interesting EVERY semi-colon {except in loops and other constructs} should attract a new line .... i.e the C code pasted earlier
ProgrammingRe: Programming Challenge by jacob05(m): 10:32am On Sep 28, 2012
php 2 lines

you can save it in an index file =>index.php

and
query it with the string
index.php?string=The Quick Brown Fox Jumps Over The Lazy Dog

list($alph,$search) = array("abcdefghijklmnopqrstuvwxyz",$_GET['string']);
for($i=0;$i<strlen($alph);$i++) printf("%s %s's <br />",preg_match_all('/'.$alph{$i}.'/',$search,$match),$alph{$i});
WebmastersRe: A Web Designer Needed Urgently {in 2 Weeks} by jacob05(op): 9:03am On Sep 10, 2012
Offer still open
EventsRe: The Nigerian Telecom Awards At The Incubator Event Centre {6pm } by jacob05(op): 5:00pm On Sep 08, 2012
C.

EventsRe: The Nigerian Telecom Awards At The Incubator Event Centre {6pm } by jacob05(op): 4:56pm On Sep 08, 2012
N.

EventsThe Nigerian Telecom Awards At The Incubator Event Centre {6pm } by jacob05(op): 4:53pm On Sep 08, 2012
THE NIGERIAN TELECOM AWARDS AT THE INCUBATOR EVENT CENTRE {6PM }

WebmastersA Web Designer Needed Urgently {in 2 Weeks} by jacob05(op):
Needed:
A professional web designer/developer who have proven skills in HTML/XHTML, CSS and Adobe Photoshop. He/She can take a design brief from presentation visuals to final deployment.

Responsibilities:

Strong hand-coding of both semantic, efficient, standards related to web development
Extensive experience with HTML/HTML5 and CSS/CSS3
Solid experience with HTML, Photoshop and various GUI standards
Ability to translate designs into amazing UI and UX


Requirements:
Minimum of OND
Strong Command of web standards and cross-browser compatibility
Experience with version control systems and consumer facing websites
Understanding and improving client-side performance
Able to manage own workload in a fast-paced environment
Team player with excellent communication skills and ability to work independently with minimal guidance
Excellent attitude and ability to work with a team
Strong attention to detail
Proven track record and solid references

call 08022655520 if Qualified ...
Nairaland GeneralRe: What Are You Addicted To? by jacob05(m): 1:57pm On Aug 09, 2012
computing
EducationRe: Unilorin 2012/2013 Admissions by jacob05(m): 12:30pm On Aug 07, 2012
shrek4: This is my first attempt at UNILORIN, and God blessed it, I read Philosophy at OOU(OSU) tho... Am glad, despite d fact that they gave me Performing Arts instead of the Mass Comm I applied for... Aal Iz Well!....... Best of luck to everyone!!! t
Congrats !!! hope Mine come out well also...
CelebritiesRe: Tonto Dike Without Make-up; Awful Or Awesome ??? by jacob05(m): 11:07am On Aug 07, 2012
cindyrella: Na only rice be your problem?
how you won know the Rice he is saying ...? undecided
Tech JobsRe: PHP E-books Really Wanted by jacob05(m): 4:57pm On Aug 01, 2012
oyebanji05[at]gmail.com

1 2 3 4 5 6 7 8 ... 20 21 22 23 24 25 26 27 28 (of 37 pages)