mattd8752 Posted January 14, 2007 Share Posted January 14, 2007 I want to have mysql drop all records where key = 000001 & file=af.txtIf anyone could post this code, or the functions required to do that it would be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/34152-mysql-query/ Share on other sites More sharing options...
GingerRobot Posted January 14, 2007 Share Posted January 14, 2007 [code]<?php$sql = "DELETE FROM `yourtable` WHERE `key`='000001' AND `file`='af.txt'";mysql_query($sql)or die(mysql_error());?>[/code]Im assuming thats what you were after. Link to comment https://forums.phpfreaks.com/topic/34152-mysql-query/#findComment-160635 Share on other sites More sharing options...
mattd8752 Posted January 14, 2007 Author Share Posted January 14, 2007 Yeah thanks, I just haven't used php for a while. Link to comment https://forums.phpfreaks.com/topic/34152-mysql-query/#findComment-160638 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.