php - Return value of oci_parse -
What if, if I want to execute some commands inside, then if a row returns no query.
& lt ;? Php include_once ('config.php'); $ Db = oci_new_connect (ORAUSER, ORAPASS, "localhost / xi"); $ Sql = "Select from table_1 *, where id = 3"; $ Result = oci_parse ($ db, $ sql); Oci_result ($ result); If () {} else {}? & Gt;
You can use:
/ / Parse / If you do not have any rows then do something ...} (// o__fetch ($ your_statement)) {... do something when there are some rows}
Comments
Post a Comment