what is wrong with my code? new to php
Posted: Wed Jan 31, 2007 8:38 pm
this is my code.
error
any help will be appreciated.
Thanks
Code: Select all
<?php
// (1) Open the database connection
$connection = mysql_connect("localhost","root","secret");
// (2) Select the winestore database
mysql_select_db("winestore", $connection);
// (3) Run the query on the winestore through the connection
$result = mysql_query ("SELECT winery_name
, phone, fax from winery", $connection);
while($row = mysql_fetch_array($result))
{
print "THe {$row["winery_name"]} winery's fax is {$row["fax"]}";
print "Their phone is {row["phone"]}.\n";
}
?>Code: Select all
Parse error: parse error, unexpected T_STRING in c:\program files\easyphp1-7\www\index12.php on line 24Thanks