maxudaskin Posted July 30, 2007 Share Posted July 30, 2007 For a cron job would I have to use: A: <?php $conn = mysql_connect('removed','removed', 'removed'); mysql_select_db('removed',$conn); $delete = "TRUNCATE TABLE logins"; mysql_query($delete,$conn) ?> or $conn = mysql_connect('removed','removed', 'removed'); mysql_select_db('removed',$conn); $delete = "TRUNCATE TABLE logins"; mysql_query($delete,$conn thanx in advanced Link to comment https://forums.phpfreaks.com/topic/62415-cron-jobs/ Share on other sites More sharing options...
Nakor Posted July 30, 2007 Share Posted July 30, 2007 <?php $conn = mysql_connect('removed','removed', 'removed'); mysql_select_db('removed',$conn); $delete = "TRUNCATE TABLE logins"; mysql_query($delete,$conn); ?> You need to include the start and end tags for PHP. Link to comment https://forums.phpfreaks.com/topic/62415-cron-jobs/#findComment-310687 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.