I've search the postings for quite a while, but since my searches turned up thousands of results even when I made them more specific, I've given up.
For my first DB query, I've tried to replicate a simple script from a book. Just to get a feel for it. The example shoved the results into a table, but I don't even want to do that - just make sure I can pull data before I worry about formatting it.
But I get a parse error on line 17 each time.
Is there something I'm missing? I've stared at it for hours!
<?php
$Host="localhost";
$User = "myUserName";
$Password= "myPassword";
$DBName="myDBName";
$TableName= "events"
$link = mysql_connect ($Host, $User, $Password);
$Query = "SELECT * from $TableName";
$Result = "mysql_db_query ($DBName, $Query, $Link);
while ($Row = mysql_fetch_array($Result))
{
print ("<p>\n");
print ("$Row[eventName]\n");
print ("<BR>\n">;
}
mysql_close($Link);
?>
THANKS if anyone can help!