supergrame
03-13-2009, 06:41 AM
First ill just past what im looking at so you know
function verify_Username_and_Pass($un, $pw) {
$conn = mysql_connect(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME) or die("there was a problem connection to the database");
$query = "SELECT *
FROM users
WHERE username = ? AND password = ?
LIMIT 1";
if($stmt = $conn->prepare($query)) {
$stmt->bind_param('ss', $un, $pw);
$stmt->execute();
if($stmt->fetch()) {
$stmt->close();
return true;
ok i get the $conn and the $query
now the part i could figure out from google or from the little knowlege I alredy have :p
its this part i do not get:
$conn->prepare($query)) {
$stmt->bind_param('ss', $un, $pw);
what is this -> is it like an array? can array's be -> and =>
sorry for the very noobie question. i di look on google but its not really something you can ask a search engine.
:)
function verify_Username_and_Pass($un, $pw) {
$conn = mysql_connect(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME) or die("there was a problem connection to the database");
$query = "SELECT *
FROM users
WHERE username = ? AND password = ?
LIMIT 1";
if($stmt = $conn->prepare($query)) {
$stmt->bind_param('ss', $un, $pw);
$stmt->execute();
if($stmt->fetch()) {
$stmt->close();
return true;
ok i get the $conn and the $query
now the part i could figure out from google or from the little knowlege I alredy have :p
its this part i do not get:
$conn->prepare($query)) {
$stmt->bind_param('ss', $un, $pw);
what is this -> is it like an array? can array's be -> and =>
sorry for the very noobie question. i di look on google but its not really something you can ask a search engine.
:)