Jump to content

[SOLVED] my_sql_real_escape_string problems


darkfreaks

Recommended Posts

ok can someone tell me if i escaped it right because now on the index page i get cant connect to $user @ localhost using password YES.


<?php

$collect_user = mysql_query("SELECT * FROM progress_users WHERE name = '$NAME' AND password = '$PASS'",
	mysql_real_escape_string($NAME),
	mysql_real_escape_string($PASS))or die(mysql_error()); ?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.