Skip to content
Advertisement

Tag: mysqli

If database entry null, do not display div

I have a database with option1, option2, option3, option4, option5 as columns. Options 1-3 have data entered, however, options 4-5 are NULL. How can I set it so that a div is NOT displayed if option …

mysql query return boolean but I expect to return id

This is my query: What is wrong in this query? I’m expecting like in nested where id is compared to 108 and result will be greater than 108 but it returns boolean calling function with parameters like nextIdUserInquiry(108, $con, ‘N’); and whole function body is below and mysql error is that Call to a member function fetch_assoc() on boolean in

Php flip the echo result

I confused the method to flip the place of the echo result, below is my code while ($looptools == 0) { $mysqlihelper = ” SELECT * FROM soal WHERE nomorsoal = $numberofmysqli “; $…

Binding String using MATCH AGAINST in query

Binding to prepare statement using mysqli is working fine when I’m using query like this but it’s nott working when I’m using this query What is the right way of using MATCH() AGAINST() with a question mark in query for binding value. Answer New full code based on pastebin: The problem was fixed by replacing MATCH with LIKE and concatenating

Advertisement