Can someone let me know what I have wrong?
[code=php]
$busname = $_POST[‘busname’];
$busadd = $_POST[‘busadd’];
$buscity = $_POST[‘buscity’];
$busstate = $_POST[‘busstate’];
$buszip = $_POST[‘buszip’];
$busphone = $_POST[‘busphone’];
$url = $_POST[‘url’];
$catid = $_POST[‘catid’];
$typeid = $_POST[‘typeid’];
$busid = $_POST[‘busid’];
if(isset($url))
$website = 1;
else
$website = 0;
mysql_query(“UPDATE businesses SET busname = ‘$busname’ AND busadd = ‘$busadd’ AND buscity = ‘$buscity’ AND busstate = ‘$bustate’ AND buszip = ‘$buszip’ AND busphone = ‘$busphone’ AND website = ‘$website’ AND url = ‘$url’ AND catid = ‘$catid’ AND typeid = ‘$typeid WHERE busid = ‘$busid'”)
or die(mysql_error());
I have also tried replacing the AND with commas and still no luck.