Skip to content
Advertisement

Tag: echo

I want to echo all classNames that have the same userid in php

code here : I am trying to echo all instances where the userId in the classrooms table is equal to the session userId. HELP. this is the table that we are using to track the users classrooms I’m using mysqli. Turns out, my post is mostly code. So let me give some background details. I’m trying to make a table

INNER JOIN is not working, i do not get errors

$result = mysqli_query($conn,”SELECT * FROM table1 INNER JOIN `table2` ON `table1`.`id`=`table2`.`id`;”); while ($row = mysqli_fetch_array($result) ){ echo ‘name