What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Delete entry from MySQL Database - Failing

Delete entry from MySQL Database - Failing
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. Delete entry from MySQL Database - Failing
ok short and sweet. The following code will not delete the entry from the database and nor Dane or myself can figure it out. Help me please :)

code:
<?

    $pid = ($post);

    $link=mysql_connect ("localhost", "izayne_admin", "matty") or die ('I cannot connect to the database because: ' . mysql_error());
    mysql_select_db ("izayne_news");

    $query = "SELECT * FROM IzzNews";
    $result = mysql_query($query, $link);
    $num = mysql_numrows($result);
    $query = "DELETE FROM IzzNews WHERE NewsNum=".$pid;

?>

This post was edited on 08-22-2004 at 06:34 AM by matty.
08-22-2004 06:33 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Delete entry from MySQL Database - Failing - by matty on 08-22-2004 at 06:33 AM
RE: Delete entry from MySQL Database - Failing - by WDZ on 08-22-2004 at 06:40 AM
RE: Delete entry from MySQL Database - Failing - by matty on 08-22-2004 at 06:42 AM
RE: Delete entry from MySQL Database - Failing - by Mippo on 08-22-2004 at 06:45 AM
RE: Delete entry from MySQL Database - Failing - by matty on 08-22-2004 at 06:54 AM
RE: Delete entry from MySQL Database - Failing - by bach_m on 08-22-2004 at 02:25 PM
RE: Delete entry from MySQL Database - Failing - by WDZ on 08-23-2004 at 12:01 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On