I am trying to do the following,
Have a form on my website, where people can click an ENTER button, and it will add there name to a textbox where I can then hold drawings and stuff.
So, first off I'm trying to learn basic MYSQL... Here is what I got so far...
$sql = "SELECT user FROM nuke_contest";
$result = $db->sql_query($sql);
$result2 = $db->sql_fetchrow($result);
$content = "
Enter To Win!!
<br><textarea disabled name=\"textarea\" cols=\"20\" rows=\"10\">$result2[0]</textarea><br>
<input type=\"submit\" name=\"Submit\" value=\"Enter!\">";
That will put the first entry in the text box, BUT, if I change it to
$result2[1] I get nothing....
What am I doing wrong?