Solved

DELETE record not working

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Permalink issue in Wordpress archive 1 32
Update database from a form 8 35
Site hacked - decoding the PHP? 15 55
MySQL Grouping 2 19
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.

930 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

12 Experts available now in Live!

Get 1:1 Help Now