Can anyone help me with this concatenation?
$query = "DELETE FROM runners WHERE firstname.lastname=" . $runnernames && passw=$pw;
- $runnernames has the first and last name in it with no spaces, for example: johndoe
- I am not able to get the passw included correctly in this statement
thanks!!
Need help with " and ' and concatention
Moderator: General Moderators
Re: Need help with " and ' and concatention
Code: Select all
$query = "DELETE
FROM
runners
WHERE
CONCAT(firstname, lastname) = '" . mysql_real_escape_string($runnernames) . "'
AND passw = '" . mysql_real_escape_string($pw) . "'";