Can anyone help??
I want to 2 sql command in a php file.
The query is run in the search book, i want the query to get info from the loan table, if this table is empty then to display the details in the book table?
Please help!!
Can anyone help??
I want to 2 sql command in a php file.
The query is run in the search book, i want the query to get info from the loan table, if this table is empty then to display the details in the book table?
Please help!!
run the first query (loan) then do this
if(mysql_num_rows($loanquery1) > 0){
//loans
}else{
//books
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.