Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

A question i have about the Mysqli set of functions

Featured Replies

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 :)

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.