0

My friend has asked me about fix his old php script. I have a strange problem with it.

My query:

select * from users where login='Anna Jastrząb'

$login = trim($login);
$us = mysql_query("select * from users where login='$login'");
$w = mysql_fetch_array($us);
die($w['id']);

And it doesn't work! When I die() my mysql_query and copy it to phpmyadmin, it works.

Thanks

Pரதீப்
  • 88,697
  • 17
  • 124
  • 160
Kriss
  • 83
  • 1
  • 7

0 Answers0