Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Count deleted records

 
   Database Help (Home) -> PHP SQL RSS
Next:  sub forms which do not update automatically  
Author Message
name

External


Since: Oct 06, 2007
Posts: 15



(Msg. 1) Posted: Wed Oct 01, 2008 5:26 am
Post subject: Count deleted records
Archived from groups: alt>php>sql (more info?)

Hi,
Using MySQL
Is there an easy solution to count deleted records in a table?
For instance: I want to delete all records "Jones" in the table "names"
$query = "DELETE FROM names " ."WHERE host LIKE '$keyword[$i]'";
echo "$count records deleted";

Help much appreciated

 >> Stay informed about: Count deleted records 
Back to top
Login to vote
Captain Paralytic

External


Since: Jan 14, 2008
Posts: 199



(Msg. 2) Posted: Wed Oct 01, 2008 5:26 am
Post subject: Re: Count deleted records [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 1 Oct, 10:14, "H@C0" <n....TakeThisOut@fish.net> wrote:
> Hi,
> Using MySQL
> Is there an easy solution to count deleted records in a table?
> For instance: I want to delete all records "Jones" in the table "names"
> $query = "DELETE  FROM names " ."WHERE host LIKE '$keyword[$i]'";
> echo "$count records deleted";
>
> Help much appreciated

http://uk2.php.net/function.mysql-affected-rows

 >> Stay informed about: Count deleted records 
Back to top
Login to vote
Captain Paralytic

External


Since: Jan 14, 2008
Posts: 199



(Msg. 3) Posted: Wed Oct 01, 2008 5:26 am
Post subject: Re: Count deleted records [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 1 Oct, 11:58, "H@C0" <n... RemoveThis @fish.net> wrote:
> >http://uk2.php.net/function.mysql-affected-rows
>
> Thanks for the link. It was helpfull.

That's why I posted it.
 >> Stay informed about: Count deleted records 
Back to top
Login to vote
name

External


Since: Oct 06, 2007
Posts: 15



(Msg. 4) Posted: Wed Oct 01, 2008 7:25 am
Post subject: Count deleted records [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>http://uk2.php.net/function.mysql-affected-rows

Thanks for the link. It was helpfull.
 >> Stay informed about: Count deleted records 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
getting records from 2 tables - I have 2 tables each with a column called 'item' I want to list all the records from both tables where items like '%screws%' Each table currently holds less than 500 trial records This is the raw SQL I tried which sends the server into an infinate loo...

Saving versions of changed records - I am using a mysql database to store data that is inserted into a web page. I have an admin site that lets someone edit the data in that table thus changing the web site. I would like to save each changed record somehow so it is possible to "resto...

PHPtriad v2.2.1 removal - When I fist started using apache/php/mysql I used phptriad [a wonderful piece of kit] to get me up and running. I've used this ever since. I'm think inow of 'upgrading' to laters versions of all three applications, and have found various tutorials/Ho...

MySQL regular expression to match a imploded item - Hello I need to use MySQL's REGEXP (POSIX compliant) to search registries where one field is an imploded set of integer values separated with pipes "|". I need to match one of these imploded values directly on a sql select. $sql = "SELECT...

Weird mysql_connect problem - Hello. My mysql_connect just started to give me following error today, Fatal error: Call to undefined function: mysql_connect() in ..../database_functions/db_functions.inc.php on line 11. So it seems that my php no longer finds php-mysql module...
   Database Help (Home) -> PHP SQL All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]