Solved

DELETE record not working

Posted on 2007-03-25
3
169 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

807 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