Jump to content

MySQL-related question


Bisa

Recommended Posts

With some help Im now able to add rows into my table but how do I drop rows? the only thing I can find is the "drop_table" and thats not what I want...

all help/suggestions are welcome
Link to comment
Share on other sites

[!--quoteo(post=376935:date=May 25 2006, 10:03 AM:name=Bisa)--][div class=\'quotetop\']QUOTE(Bisa @ May 25 2006, 10:03 AM) [snapback]376935[/snapback][/div][div class=\'quotemain\'][!--quotec--]
With some help Im now able to add rows into my table but how do I drop rows? the only thing I can find is the "drop_table" and thats not what I want...

all help/suggestions are welcome
[/quote]

you can do it the hard way with phpmyadmin

or use this query

$sql = "DELETE FROM the_table WHERE id = '$whatever_your deleting";
$result = mysql_query($sql);

obviously replaceing the_table and whatever_your deleting with whatever you tables and variables are
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.