Hi there, I have a single line of sql statement and it works just fine
However, when I try to use the AND clause to narrow down my search result, I get an error saying that there is something wrong near " but I do not see what is worng with the statement.
Code:
$fetchid = @mysql_query("select * from tomapping where TOID='$toid'");
However, when I try to use the AND clause to narrow down my search result, I get an error saying that there is something wrong near " but I do not see what is worng with the statement.
Code:
$fetchid = @mysql_query("select * from tomapping where TOID='$toid' AND HotelName='$hotelname' ");