Solved

DELETE record not working

Posted on 2007-03-25
3
172 Views
Last Modified: 2013-12-13
Code doesn't delete a record

everything else works.

code:  www.new-song-lyrics.com/delete-song.txt

0
Comment
Question by:weikelbob
3 Comments
 
LVL 20

Accepted Solution

by:
steelseth12 earned 250 total points
ID: 18789415
it should be $query1="DELETE  FROM register1 WHERE id='" . mysql_real_escape_string($_GET['var2']) . "'";

without the *
0
 
LVL 19

Assisted Solution

by:BrianGEFF719
BrianGEFF719 earned 250 total points
ID: 18789420
$query1="DELETE FROM register1 WHERE id='" . mysql_real_escape_string($_GET['var2']) . "'";
0
 
LVL 7

Author Comment

by:weikelbob
ID: 18790428
Got it. Thanks guys.

bob
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question