Hello,
I am very new to PHP and having some trouble using the A HREF tag with my code. Please have a look... I want to print a link using A HREF and I keep getting a PARSE ERROR in the line with the A HREF tag. Please don't get peeved at me for being a newbie, I am doing this with little knowledge of php.
Thanks and here is the code...
if (mysql_num_rows($result) == 0){
print "<h1>Sorry</h1>";
print "The search didn't give any result, try again"<BR>;
print "<a href=\"http://www.whatever.com\">CLICK HERE TO GO BACK</A>";
print "</body>";
print "";
exit;
}
}
?>
Whenever I remove the line with the A HREF tag, my code works fine. Whenever I split it up on different lines, it gives the same parse error. I assume I am doing some newbie messup and I can't use A HREF in the syntax I am using it?