Jump to content

Inserting record into mysql


Jon12345

Recommended Posts

If someone goes to mypage1.php and their ip address is already in a record in my mysql database, how can I find that record and update the "status" field so it says "Yes"?

Each record has id, ipaddress, date,status.

Something like this maybe?

[code]$query="INSERT INTO log (status) VALUES 'Yes' (WHERE ipaddress='".$ipaddress."'";[/code]

Thanks,

Jon
Link to comment
https://forums.phpfreaks.com/topic/30372-inserting-record-into-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.