i get this error
Parse error: parse error, unexpected T_VARIABLE in c:\program files\apache group\apache\htdocs\iphp4\dbconnect.php on line 11
i tested the database can be connected and selected
just it can't parse my query
i have double, triple and quadra check my sql statement
and it is 100% correct
anyone knows how to remedy it???
<?
$mysql_link=mysql_connect("localhost","root","")
or die
("<p>could not connect to the database!");
print ("yes");
mysql_select_db("store",$mysql_link)
or die
("<p>could not select the database!");
print ("yesdb")
$query = "select productcategoryname from storeproductcategory where productcategoryid = '1'"
$mysql_result = mysql_query ($query, $mysql_link);
or die ("invalid sql");
printf ($mysql_result);
?>