bpat1434 wrote: $query = "INSERT INTO `space`('id',`space`,`space2`,`music`,`music2`,`slichot`,`rh`,`tash`,`yomk`,`succot`,`simhat`,`hhbest`,`least`,`attend`,`shabbatattend`,`membership`)
VALUES('','{$space}','{$space2}','{$music}''{$music2}','{$slichot}','{$rh}','{$tash}','{$yomk}','{$succot}','{$simhat}','{$hhbest}','{$least}','{$attend}',' {$shabbatattend}','{$membership}')";
echo $query;
// mysql_query($query) or die(mysql_error());
Just put the word echo on a new line, and the variable $query after it. Then comment out the mysql_query() call.... like above (obviously using the proper query).
well it seemed to work after a lot of searching and learning to get proper query
here's what it printed out ..
worshipspace(id,'space','space2','music','music2','slichot','rh','tash','yomk','succot','simhat','hhbest','least','attend','shabbatattend','membership') VALUES('','1','i liked the chairs for sleeping','1','the singing woke me up','2','4','1','5','3','6','the noise kept me up','the whole thing','1','2','3')
Your responses have been added to our Database...Thank You.
here's the code i used:
echo $query;
"('','{$space}','{$space2}','{$music}','{$music2}','{$slichot}','{$rh}','{$tash}','{$yomk}','{$succot}','{$simhat}','{$hhbest}','{$least}','{$attend}','{$shabbatattend}','{$membership}')";
now what?