January 28, 201016 yr Yea i have a question about using the Mysqli set of functions when i use a include file and have say this above the content in the include file <?php $content_rel = "SELECT title FROM config LIMIT 0,1"; $content_sql = mysqli_query($con,$content_rel) or die (mysql_error()); $content_display = mysqli_fetch_array($content_sql); ?> It just shows a blank page and wont show the content from the included file but if i just use the Regular mysql functions it shows the content why is this thanks in advance
January 28, 201016 yr Yea i have a question about using the Mysqli set of functions when i use a include file and have say this above the content in the include file <?php $content_rel = "SELECT title FROM config LIMIT 0,1"; $content_sql = mysqli_query($con,$content_rel) or die (mysql_error()); $content_display = mysqli_fetch_array($content_sql); ?> It just shows a blank page and wont show the content from the included file but if i just use the Regular mysql functions it shows the content why is this thanks in advance Check if mysqli is installed. if (function_exists('mysqli_query')){ echo 'installed'; }else{ echo 'not installed'; } Otherwise: - Are you actually connecting to the database - Check the connection is OK if (mysqli_connect_errno()) { echo mysqli_connect_error(); exit(); }
Create an account or sign in to comment