Search found 8 matches

by Imtiyaaz
Fri Apr 06, 2012 11:38 am
Forum: PHP - Code
Topic: Unable to display drop down list
Replies: 10
Views: 878

Re: Unable to display drop down list

A small addition to the exercise Im doing... <?php //error_reporting(0); // turn error messages off include('user.php'); $user = new User(); // new instance of User $names = $user->retrieveNames(); echo "<form Method='POST' ACTION='test.php'>"; echo "<select name='title' type='text' /...
by Imtiyaaz
Fri Apr 06, 2012 10:56 am
Forum: PHP - Code
Topic: Unable to display drop down list
Replies: 10
Views: 878

Re: Unable to display drop down list

Thanks, its working :-)
by Imtiyaaz
Fri Apr 06, 2012 10:45 am
Forum: PHP - Code
Topic: Unable to display drop down list
Replies: 10
Views: 878

Re: Unable to display drop down list

Sorry, I'm new to php and very confused..this is what I have now but it still not working <?php //error_reporting(0); // turn error messages off include('user.php'); $user = new User(); // new instance of User $names = $user->retrieveNames(); echo "<form Method='POST' ACTION='test.php'>"; ...
by Imtiyaaz
Fri Apr 06, 2012 10:22 am
Forum: PHP - Code
Topic: Unable to display drop down list
Replies: 10
Views: 878

Re: Unable to display drop down list

ok this is what I have now but it still not working: <?php error_reporting(0); // turn error messages off include('user.php'); echo "<form Method='POST' ACTION='test.php'>"; echo "<select name='title' type='text' />"; // call the function to create the array of values foreach ($t...
by Imtiyaaz
Fri Apr 06, 2012 1:20 am
Forum: PHP - Code
Topic: Unable to display drop down list
Replies: 10
Views: 878

Re: Unable to display drop down list

Thanks for this, I will test it later. In the table 'users' there are 6 records, I need to display the first name and last name of these users in a list.
by Imtiyaaz
Thu Apr 05, 2012 3:37 pm
Forum: PHP - Code
Topic: Unable to display drop down list
Replies: 10
Views: 878

Unable to display drop down list

Hi I need to display a list in my form retrieved from my db but cant seem to get it to work, below is my code <?php error_reporting(0); // turn error messages off include('user.php'); echo "<form Method='POST' ACTION='test.php'>"; echo "<select name='title' type='text' />"; echo ...
by Imtiyaaz
Thu Feb 02, 2012 7:40 am
Forum: PHP - Code
Topic: Incrementing a random integer using sessions
Replies: 3
Views: 1355

Re: Incrementing a random integer using sessions

Great, it works. Thanks

and thank you for the explanation as well :D
by Imtiyaaz
Thu Feb 02, 2012 6:29 am
Forum: PHP - Code
Topic: Incrementing a random integer using sessions
Replies: 3
Views: 1355

Incrementing a random integer using sessions

Hi Im using the rand() function to generate a random integer. Every time the page refreshes I want the new random number to be added to the previously generated random number, thus creating a running total of randomly generated numbers...this is what I have so far but its not working, instead of cre...