PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Can any of you give me advice on how this SQL would work?
Would it update all the columns in the database where the companyname and coursetitle are?
or would it update just one?
$status = "ONLINE";
$sql = "UPDATE courses SET status='$status' WHERE coursetitle='$_SESSION['coursetitle']' AND companyname='$_SESSION['companyname']' ";
Could you give me a hint on how to update all rows which match that criteria?
I think I will probaly have to use a loop or something but I don't really know how.