I want to start a php class file from server side.
Posted: Sat Dec 23, 2006 1:31 am
I want to start a php class file from server side which should delete records from the table which are one month older.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Yes, but all you need to use is a function.. Most of the time there is no point to creating a class for 1 function.sankarsubramanian wrote:is it possible
Code: Select all
<?php
$db = mysql_connect($host, $user, $pass);
$result = mysql_query('DELETE FROM table WHERE date < ' . $one_month_ago);
?>[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:4. All users of any level are restricted to bumping (as defined here) any given thread within twenty-four (24) hours of its last post. Non-trivial posts are not considered bumping. A bump post found in violation will be deleted, and you may or may not receive a warning. Persons bumping excessively be considered as spammers and dealt with accordingly.