For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2007 > Query executing









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Query executing
ron.php

2007-10-05, 6:59 pm

How would I know if this mySQL query:

DELETE FROM `table` WHERE `date_to_be_deleted` LIKE '$todays_date'

actually deleted any rows from the table?

Ron



Thomas Tschernich

2007-10-05, 10:00 pm

> How would I know if this mySQL query:
>
> DELETE FROM `table` WHERE `date_to_be_deleted` LIKE '$todays_date'
>
> actually deleted any rows from the table?


www.php.net/mysql_affected_rows

Greetings,
Thomas Tschernich
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com