Jump to content
php.lv forumi

Parse error: syntax error, unexpected '='


millers

Recommended Posts

kas tas pa error Parse error: syntax error, unexpected '=' in C:\AppServ\www\authenticate.php on line 4

 

un no ka vinjs izcelas rekur ir authenticate.php skripts ludzu palidzat ja varat izlabojat

 

tas itka izcelas 3 linija wtf

 

 

 

@mysql_connect("localhost", "root", "pass") or die("Cannot connect to DB!");

@mysql_select_db("accounts") or die("Cannot select DB!");

$sql="SELECT loginid FROM accounts WHERE loginid=’".$login.”’ and password=’”.$password.”’”;

$r = mysql_query($sql);

if(!$r) {

$err=mysql_error();

print $err;

exit();

}

if(mysql_affected_rows()==0){

print "no such login in the system. please try again.";

exit();

}

else{

print "successfully logged into system.";

}

Edited by millers
Link to comment
Share on other sites

mounkulis, neuztver jo tā netiek izmantota kā funkcija, tjip password('asfasf').

 

A par autora problēmu andrisp ir taisnība tās pēdiņas tādas kroplīgas, vajag izmantot normālu teksta redaktoru , vai arī fonts ir pie vainas :)

Link to comment
Share on other sites

×
×
  • Create New...