Tutorial created by The Flying Fox, Blue Heaven Designs
Categories: Data Bridge, MySQLi Server Behaviors, MySQL, PHP
Updating you MYSQL to MYSQLi
Creating hidden fields based on empty recordset fields
If you have updated to MYSQLi, you have made a wise decision.
But some of your code doesn't work, don't fret, there is always an answer
You have hidden fields based on your recordset
Some fields are empty but you need to show the rest of the data. No worries
Your code should look like the following code:-
*** MYSQL CODING ***
<?php if($row_recordsetName['columnName'] != "") { ?>
your data to be shown if field is populated
<?php } ?>
Just replace the first line of your code with the following:-
*** MYSQLi CODING ***
<?php if($recordsetName->getColumnVal("columnName") != "") {?>
It's as easy as that.
Andy
Comments will be sent to the author of this tutorial and may not be answered immediately. For general help from WebAssist, please visit technical support.
Sign in to add commentsYour friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.