i just want to check that a str has @ and then . in the string..
whats the easiest way to check? and also, im mind blanking, whats the code to put a new row into a db (just a new record)
and yes im new, 🙂
oh INSERT.. yeah
Well does it automaticly goto the new row and add it to the end or is there more I have to do?
dbname> INSERT INTO contacts ("$val1","$val2"...)
is that all i need?
Ok try using maybe, strstr()
$email = "Me@thispage.com"; if(strstr($email, "@")) { echo "An @ sign was found.<br>"; } else { echo "No @ sign was found.<br>"; }
Try that... I dunno if it works, its untested, should work fine though.