Hi Rabbit,
I am getting another error: undefined variable: submit in input.php line 4
User Profile
Collapse
-
-
Hi Rabbit,
Thanks alot for your reply,
I am a new programmer to PHP and I am not getting you when you say short open tags turned on.
Please elaborate more
Thanks
I am really stack hereLeave a comment:
-
parse error, syntax error unexpected $end in line 25
Code:<HTML> <?php if($submit) { $db = mysql_connect("localhost", "root",""); mysql_select_db("learndb",$db); $sql = "INSERT INTO personnel (firstname, lastname, nick, email, salary) VALUES ('$first','$last','$nickname','$email','$salary')"; $result = mysql_query($sql); echo "Thank you! Information entered.\n";
-
Hi Glenton,
Thanks so much, it works perfectly as i expected.Leave a comment:
-
Infinite loops and string comparision in a lists
I am a new programmer, learning python. I have written this code but I need help
1. Make an infinite loop so that the user can enter many numbers into the list.
2. Make a provision for a infinite loop to end, like typing the word "Done".
Here is the code:
Code:print "Welcome to average script " def main(): #declaration of an empty list avg avg = [] loop = 1
No activity results to display
Show More
Leave a comment: