$delq = "DELETE FROM '$tablename' WHERE id='$id'";
will this work?
will this work
Moderator: General Moderators
Re: will this work
What makes you think that's anywhere near the amount of information we need to give you an answer?
Re: will this work
sorry
all i wondered was is the fatc that the variable $tablename sitting inside the string would work becaus ei cant seem to get it to any ideas?
all i wondered was is the fatc that the variable $tablename sitting inside the string would work becaus ei cant seem to get it to any ideas?
Re: will this work
Without any PHP variables - just plain SQL - what does a DELETE query look like? You can use whatever names you want.
Re: will this work
I have an idea - why don't you go and test it and find out?
Re: will this work
Would seem like the sensible thing to do.jackpf wrote:I have an idea - why don't you go and test it and find out?
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: will this work
I predict it will compain about the quotes around '$tablename' when it should be backticks
Re: will this work
It probably will. So use backticks 