Evening all,
I am having an issue with this script and i'm hoping one of you fine programmers could let me know where the error is.
<?php
mysql_connect("127.0.0.1", "root", "") or die (mysql_error());
echo "Connected to MYSQL ";
mysql_select_db("tutorial") or die (mysql_error());
echo "Connected to Data Base"
$query = "SELECT * FROM forr1";
$result = mysql_query ($query) or die (mysql_error());
while ($row = mysql_fetch_array($result)) {
echo $row['input1'];
?>
The Output
Parse error: syntax error, unexpected '$query' (T_VARIABLE) in C:\Program Files (x86)\EasyPHP-12.1\www\Output.php on line 7
I must be missing something significant because no matter how i try and rework it i get the same error.
Thanks for your time
Ben
echo
line – andrewsi Apr 2 '13 at 13:03