Page 2 of 2
Posted: Fri Oct 29, 2004 11:44 am
by Diod
yep, i am the root user.. as i run the db on my own comp

Posted: Fri Oct 29, 2004 11:45 am
by andre_c
can you post the whole block of code in which you have your delete statement? Right now you delete statement seems correct.
Posted: Fri Oct 29, 2004 11:46 am
by Diod
Posted: Fri Oct 29, 2004 11:49 am
by andre_c
can you echo $_GET['id'] right before you use it in your delete query and see if it matches the row you're trying to delete?
( and you really should use mysql_escape_string( $_GET['id'] ) )
Posted: Fri Oct 29, 2004 11:53 am
by Diod
yep, it echos it(oh and the query does work in phpmyadmin if you are gonna ask that)
Posted: Fri Oct 29, 2004 12:18 pm
by Diod
hmm
but when i do
Code: Select all
$query = "DELET.E FROM news WHERE id='".$news_id."'";
echo $query;
it doesnt echo
Posted: Fri Oct 29, 2004 1:11 pm
by Diod
Please, can anyone help me with this... im trying to figure it out for a week now...
Posted: Fri Oct 29, 2004 1:20 pm
by andre_c
Diod wrote:hmm
but when i do
Code: Select all
$query = "DELET.E FROM news WHERE id='".$news_id."'";
echo $query;
it doesnt echo
then something is seriously wrong.
do you have error_reporting turned on?
Posted: Fri Oct 29, 2004 2:06 pm
by Diod
yep i tryed it with error_reporting('E_ALL') and it doesnt report a thing
Posted: Fri Oct 29, 2004 3:33 pm
by Diod
nm someone helped me out