The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

won't delete the row!

This seems very textbook, but it isn't working. Once I carry over the variables (which it does do correctly) the delete query doesn't work. Anyone know why this may be? (NOTE: This is a small snippet, the actual code is much longer, so I really didn't forget the $connect variable or <?php)

$result=mysql_query("DELETE FROM links WHERE linkid=$linkid ",$connect);

doesnt the $connect point towards the connection not the database that you have selected, i would have thought that the if your going to put a variable in there it would need to be the one for the database you have selected??

I tried all of the advice you gave me (and added a deletion wildcard, maybe not such a good idea but I'm a bit desperate) but it didnt work. And the connection works fine in everything else.
thanks for trying, though
Any other ideas?

session is very tricky, be careful with it.. take care to unset variable after you don't need it anymore, because the variables are kept in it until you unset it or destroy the session, so be sure that the variables are set where there are supposed to be, and are unset where you don't need them anymore..