GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Php help needed (https://gfy.com/showthread.php?t=190169)

4Pics 10-26-2003 03:07 AM

Php help needed
 
I want to know if when I do a Update if it succeded or not.

Like update blah set hits = hits + 1 where day = '$day'

How do I know if that executed? Because if it didnt then I know its a new day and can do a insert.

Or is there a better way in that you insert first then if it is successful you don't update?

Any help is appreciated.

Chaldoray 10-26-2003 03:10 AM

icq 237842929, maybe i can help

swedguy 10-26-2003 03:10 AM

mysql_affected_rows()

4Pics 10-26-2003 03:19 AM

Quote:

Originally posted by swedguy
mysql_affected_rows()
Thanks :)


All times are GMT -7. The time now is 09:09 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123