hi...im a newbi in php..so i really in need of help..
i got an error like this :
Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT * FROM md_tenant WHERE tenantID =
and here are my codes:
$query_recTenantID = "SELECT * FROM md_tenant WHERE tenantID = ".$tenantID;
$rs_recTenantID = mysql_query($query_recTenantID) or die ('Query failed: ' . mysql_error(). "<br />\n $query_recTenantID");
while($recTenantID = mysql_fetch_array($rs_recTenantID))
{ echo $recTenantID['tenantID']; }
can someone help me to solve this error..