parthshukla
Programmer
hi guys, i am doing some examples from a book, and i can't work out when they say this
@ $db = mysql_connect('localhost','root','');
mysql_select_db('users');
@ $query = "select from login where user=$user and pass=password('$pass');
the first thing i don't get is what does the sign @ do...
the other thing i don't get is why haven't they put something like this in the second line..
mysql_select_db('users', $db)
i meant why haven't they included the connection to $db
and lastly what does this do, pass=password('$pass')
thanks
@ $db = mysql_connect('localhost','root','');
mysql_select_db('users');
@ $query = "select from login where user=$user and pass=password('$pass');
the first thing i don't get is what does the sign @ do...
the other thing i don't get is why haven't they put something like this in the second line..
mysql_select_db('users', $db)
i meant why haven't they included the connection to $db
and lastly what does this do, pass=password('$pass')
thanks