Jump to content

mySQL entry delete from php


XiVoid

Recommended Posts

I'm trying to delete an entry from my database, but I always get the following error:

 

DELETE command denied to user 'dbUser' @ 'server' for table 'myTable'

 

 

The credentials that I am using allow me to insert and update this and other tables.

If I run the command in phpMyAdmin:

 

DELETE FROM myTable WHERE recordNo = 12

 

it executes perfectly.

 

But in my php code:

 

$sql = "DELETE FROM myTable WHERE recordNo = '$recordNo'";

 

returns the error.

 

I'm using my database's R/W login details.

 

Are there other credentials I should be using?

What am I doing wrong?

 

Any help would be appreciated.

Please

 

Link to comment
https://forums.phpfreaks.com/topic/41758-mysql-entry-delete-from-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.