Código PHP:
mysql_connect("localhost","base","clave") or die(mysql_error());
mysql_select_db("base_dk") or die(mysql_error());
$query = mysql_query("SELECT user_name FROM tabel_test WHERE user_name ='".$user_name."' and pass ='".$pass."'") or die(mysql_error());
$row=mysql_fetch_assoc($query);
if (mysql_num_rows($query) == 0){
print "status_var=No te haz registrado..!";
}
else {
print "status_var=Registrado";
print "statusUserName=$row['user_name']";//ESTE ME MARCA ERROR....!
}
Como seria la sintaxis..?
Salu2