Hi ! First, I'm a total PHP / MySQL virgin, so please be gentle ...
I'm following this tutorial on how to use PHP to insert and retrieve data from my MySQL database. I couldn't get the insert right, but after reading some posts here, I found that I needed to code $_GET['submit'] instead of $submit. Why I don't know, but I betcha it's the reason why the retrieval isn't working.
I get the following error :
Notice: Undefined index: series_name in E:\web\list_files\series.php on line 20
$result = mysql_query ("SELECT * FROM series");
if ($row = mysql_fetch_array($result)) {
do {
print "<tr><td>";
echo "<div align=center><a href=", $row["episodes_url"], " target=EpisodeFrame><font color=#000099>" , $row["series_name"], "</font></a></div>";
print "</td></tr>";
} while($row = mysql_fetch_array($result));
} else { print "No series with that letter !";}
These are lines 14 - 24. Quite messy eh ?
The table series does have the columns "episodes_url" and "series_name".
What am I forgetting ?