mercredi 10 juillet 2019

return from 2 oci_parse

Can I, and if so, how to do next: I want with an if/else, to check if first statement is true, and if so (else), it will display another select from another table.

<?php 
session_start();
include 'connect.php';
if(isset($_SESSION['user'])) {
   $s = oci_parse($conn, 'select * from users where username =: user');
echo "something";
}else {
echo ($conn, 'select * from company where company_id =: ABC');

oci_execute($s);
?>


Aucun commentaire:

Enregistrer un commentaire