Jump to content

[SOLVED] syntax prob


angelsRock

Recommended Posts

why state problem Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or '$' in C:\wamp\www\Property\agent-password.php on line 220

 

 

	$connection=mysql_connect($server, $user, $pass);
						if(!$connection)					
							die("Connection failed");		

						else
						{										
							mysql_select_db($db);							



				$query3="select * from all_members where email='".$_SESSION[username]."' and password='".$_POST[new]."'; ";

							$exec=mysql_query($query3);

							$num=mysql_affected_rows();

							if($num<1)
							{													
								echo'<script>alert("Sorry, submission failed")</script>';					
							}	

						}

Link to comment
https://forums.phpfreaks.com/topic/72879-solved-syntax-prob/
Share on other sites

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.