Re: Deleting a Record.

From: Rob (talon2lm_at_yahoo.com)
Date: 11/24/03


Date: Sun, 23 Nov 2003 20:03:46 -0700

Still nothing....
Not even an error message...

Thanks,
Rob
"Jochen Daum" <jochen.daum@cans.co.nz> wrote in message
news:86q2sv8ld0302f1rq9tj59ivsuf20po5m7@4ax.com...
> Hi Rob!
>
> On Sun, 23 Nov 2003 19:06:41 -0700, "Rob" <talon2lm@yahoo.com> wrote:
>
> >Thanks for the Help on the other problems...all resolved.
> >One last (hopefullly) problem I can't seem to get around for this
> >program...why isn't this deleting the row i want? It does nothing. Now
error
> >messages either. HELP!
> >
> >$link = mysql_connect("localhost");
> >if(! $link)
> > die("Could not connect to MySQL");
> >
> >$database = "PC_Store";
> >mysql_select_db($database)
> > or die ("could not open $database: ".mysql_error() );
> >
> >$result = mysql_query("DELETE FROM inventorydata VALUES('$ProductID')");
> >
> >The $ProductID variable is brought in from a menu choice on a diffrent
page,
> >it is also the primary of the table...so it should delete the whole row
> >right?
>
> Try
>
> "delete from inventorydata where field = '".$ProductID."'"
>
> Have a look at www.mysql.com for sql syntax
>
> HTH, Jochen
> --
> Jochen Daum - CANS Ltd.
> PHP DB Edit Toolkit -- PHP scripts for building
> database editing interfaces.
> http://sourceforge.net/projects/phpdbedittk/



Relevant Pages

  • Re: PHP / MySQL Threaded Discussion: One Query
    ... one self referencing query for a whole tree ... Jochen Daum - Cabletalk Group Ltd. ... PHP DB Edit Toolkit -- PHP scripts for building ... database editing interfaces. ...
    (comp.lang.php)
  • Re: help with mySQL and ORDER BY
    ... Jochen Daum - Cabletalk Group Ltd. ... PHP DB Edit Toolkit -- PHP scripts for building ... database editing interfaces. ...
    (comp.lang.php)
  • Re: Help with US Holidays
    ... >Grandparents Day seems to be giving me some trouble. ... Jochen Daum - Cabletalk Group Ltd. ... PHP DB Edit Toolkit -- PHP scripts for building ... database editing interfaces. ...
    (comp.lang.php)
  • Re: Deleting a Record.
    ... >program...why isn't this deleting the row i want? ... Jochen Daum - CANS Ltd. ... PHP DB Edit Toolkit -- PHP scripts for building ...
    (comp.lang.php)
  • Re: Code generator
    ... > HTH, Jochen ... > Jochen Daum - Cabletalk Group Ltd. ... > database editing interfaces. ...
    (comp.lang.php)