3raser Posted June 16, 2010 Share Posted June 16, 2010 I looked into this code for a while, and usually it's my brackets that give me this error. I even checked the brackets, they all match up. Parse error: parse error in C:\wamp\www\project11\clan_pages.php on line 20 <?php session_start(); $session = $_SESSION['user']; $mysql_host = "localhost"; $mysql_username = "root"; $mysql_password = ""; $mysql_database = "project11"; mysql_connect($mysql_host, $mysql_username, $mysql_password); mysql_select_db($mysql_database); $clan = $_GET['id']; if(!$clan) { echo "You haven't chosen a page to view! <a href='index.php'>Home</a>"; } else { if ($get_other = mysql_query("SELECT FROM clans WHERE clan_id='$clan'")) { $check = mysql_num_rows($_get_other) if($check) { //clan data } else { echo "Sorry, no clan exists with the ID of ". $clan .". <a href='index.php'>Home</a>"; } } } ?> Link to comment https://forums.phpfreaks.com/topic/204981-parse-error/ Share on other sites More sharing options...
kenrbnsn Posted June 16, 2010 Share Posted June 16, 2010 No semi-colon on this line: <?php $check = mysql_num_rows($_get_other) ?> Ken Link to comment https://forums.phpfreaks.com/topic/204981-parse-error/#findComment-1073132 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.