I've been trying to create a database-driven site, am new to this, have looked it up on Google and tried for myself, but need a bit of help.
<?php
// Connects to your Database
mysql_connect("localhost", "root", "PASSWORDREMOVED") or die(mysql_error());
mysql_select_db("epguides") or die(mysql_error());
$data = mysql_query("SELECT * FROM epguides)
or die(mysql_error());
Print "<table border cellpadding=3>";
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
Print "<td><b>".$info['programdata'] </b>" </td>";
Print " showing on ";
Print ".$info['channel'] ";
Print "<td>".$info['airdate'] </td>";
Print "<td>".$info['episode'] </td>";
Print "<td>"<img src="exclamationmark.gif" height="16" width="22">";
Print "<a href="http://mylocalhostsite/setreminder">Set Reminder</a>"</td></tr>";
}
Print "</table>";
?>
I used this code and it gave the following errors:
Parse error: syntax error, unexpected T_STRING in C:\www\vhosts\mytvsite\testguide.php on line 7
How would I fix these for myself, since I'm new to this sort of thing?