hi there,
Please visite the for php mysql examples.
see the php mysql link in page.
PHP MYSQL Exmaples
Moderator: General Moderators
Re: PHP MYSQL Exmaples
Or, you can just go to: http://us.php.net/manual/en/book.mysql.php
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: PHP MYSQL Exmaples
a good effort, but you have a ton of mistakes. Some examples:
first: should be type="password" - unless you want to show cleartext passwords to the world
second: tables for layout? ugh. In example code?? double ugh.
should be
also, you're not closing your BR tags: <br/>
In general, test your code before publishing it. Especially as a tutorial. Users who don't know better (presumably your core audience) will be confused and go away.
But I want to re-iterate: a good effort, one I hope you continue.
Code: Select all
<td><input name="password" type="text" id="password"></td>second: tables for layout? ugh. In example code?? double ugh.
Code: Select all
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
# could just be
while($row = mysql_fetch_assoc($result))Code: Select all
while(list($name,$subject,$message)= mysql_fetch_row($result))
{
echo "Name :$name <br>" .
"Subject : $subject <br>" .
"Message : $row <br><br>";
}Code: Select all
while(list($name,$subject,$message)= mysql_fetch_row($result))
{
echo "Name :$name <br>" .
"Subject : $subject <br>" .
"Message : $message <br><br>";
}In general, test your code before publishing it. Especially as a tutorial. Users who don't know better (presumably your core audience) will be confused and go away.
But I want to re-iterate: a good effort, one I hope you continue.