chown linux:users\ /world
Hi,
Can anyone post some code on how to test the database to see if the information that was just entered was already in the database? Could you also post an explanation?
Thanks,
chown linux:users\ /world
Ohh forgot what language... I would like to use PHP.. Many thanks,
You'd have to be more specific - would all fields need to be the same, or just one? Would you be using a MySQL database?
chown linux:users\ /world
Yes I am going to be using MySQL.... There are two fields that need to be checked... "Name" and "E-mail".
Sincerely,
Try a query like this:
SELECT * FROM dbname WHERE Name='$theName' AND Email='$theEmail'
Once you've selected the record, use an if statement:
if ($Name == "$theName" && $Email == "$theEmail") {do stuff}
I think that ought to work, at least
chown linux:users\ /world
I'll try it
Many thanks!
Don't thank me - odds are there are at least fifty other ways to achieve the same thing...all more efficient than mine. And thats assuming it works.
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks