Solved

DELETE record not working

Posted on 2007-03-25
3
157 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
Comment Utility
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
Comment Utility
$query1="DELETE FROM register1 WHERE id='" . mysql_real_escape_string($_GET['var2']) . "'";
0
 
LVL 7

Author Comment

by:weikelbob
Comment Utility
Got it. Thanks guys.

bob
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now