Hi,
I had a html file, which i named to php, because i want to query a database. before i add in my code, the page displays fine, but when i add the following
mysql_connect(localhost,"chusdh","dc23");
@mysql_select_db("phone") or die( "Unable to select database");
$query = "Select * from jobs";
result1 = mysql_query($query);
if (mysql_num_rows($result1) > 0)
{
echo result1;
}
[code=php]
this code then displays on the page. when i put <? at the start of the file it gives me a parse error. I bet i am doing something very silly?
thanks