Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I am recieveing this error. i am tryin to pass the username in a link so i can use it do delete from two tables this is how ive done itCode: Select all
echo ("<p><h4>" . "<a href=editor.php?edit=" . $row['username']. ">" . $row['edit_fname'] . " " . $row['edit_lname'] . "</a>" . "</h4></p>");Invalid query: Unknown column 'jmac232' in 'where clause' Whole query: SELECT * FROM editor WHERE username=jmac232
this is my query that is returning the error
Code: Select all
$edit = $_GET['edit'];
// Formulate Query
// This is the best way to perform a SQL query
// For more examples, see mysql_real_escape_string()
$query = sprintf("SELECT * FROM editor WHERE username=" . $edit);feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]