how to use PHP variable in MYSQL query?
Posted by:
vlado
Date: March 16, 2007 07:33PM
Hello,
I have this code:
$username = $_POST['username'];
...and I need to use this variable in a MySQL query like this:
$query = "SELECT * FROM users WHERE username = '________' ";
I used many options and it didn't work. Could you help me?
Subject
Written By
Posted
how to use PHP variable in MYSQL query?
March 16, 2007 07:33PM
February 01, 2008 12:15AM
November 13, 2008 02:52PM
December 20, 2008 04:57PM
February 07, 2009 09:05AM
February 07, 2009 10:48PM
February 12, 2009 03:10AM
February 12, 2009 03:34AM
February 26, 2009 11:15AM
February 28, 2009 11:32PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.