howdy have made up a script to insert stuff into my db but  I want it to be
conditionial as in I only want it inserterd if it matches the condition..

function new_user() {
//check to see if the company is in the list

  $result = mysql_query("SELECT * FROM resellers WHERE
// if it's not then ...
if ($result == FALSE){
//if it is then insert the rest of the stuff to the db
else {
$res = mysql_query(INSERT....)

but doing it this way doesn't seem to help.. any one got any idea's?

I've had a look around and haven't been able to see a example like this...


"the only dumb question is the one that wasn't asked"

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to