Error in php please stop it
I think “stript” does not exist. It’s why the second alert echo. And use if(!empty($_POST[‘name’]) is better.
I think “stript” does not exist. It’s why the second alert echo. And use if(!empty($_POST[‘name’]) is better.
$query = mysql_query(“select `subject` from `markssub1` where `sname`=’$user’ AND `sid`=’$id'”); $subjects = []; while($row = mysql_fetch_array($query)) { $subjects[] = $row[‘subject’]; } foreach($subjects as $subject){ echo $subject . ‘\n’; }
Sub queries used for the IN clause can’t return multiple columns, so you can’t have SELECT reportsTo, COUNT( * ) AS count inside it. You probably want to join the subquery instead, something like this: SELECT firstName,lastName,temp.count FROM employees INNER JOIN ( SELECT reportsTo, COUNT( * ) AS count FROM employees GROUP BY reportsTo ) … Read more