'; if($_GET['user_id']!=''){$userid=$_GET['user_id'];} else{$userid=$_POST['user_id'];} $sql='select * from users INNER JOIN licenses on licenses.user=users.id INNER JOIN classes on licenses.class=classes.id where users.id="'. $userid.'" and classes.id!=0'; $result=mysql_query($sql,$con); while ($row = mysql_fetch_array($result)) { $myclassid=$row['id']; $myclassname=$row['name']; } $sql="select * from classes"; $result=mysql_query($sql,$con); $_SESSION["userurl"]=$_SERVER['QUERY_STRING']; echo "
"; echo''; echo ""; echo ""; echo""; echo""; while ($row = mysql_fetch_array($result)) { $desc=$row['user_description']; echo""; } echo "
CLASSESSELECT
All Plans
My Plans
".$row['name']."
"; mysql_close($con);