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.

Getting warning; Use of undefined constant

Featured Replies

<?php
include_once 'parts/top.php';
?>

<?php
if(empty($_POST["username"]))
{echo "Username is empty <br>";}
elseif (empty($_POST["password"])) 
{echo "Password is empty ";}

include_once 'parts/dat.php';

$verbinding=mysql_connect($llocalhost,$lusername,$lpassword);
if(!verbinding)
{echo "Niet verbonden";}
else
{echo "Verbonden";}

?>

<?php
include_once 'parts/bot.php';
?>

 

This is the current script.

Ussual it should connect but when it connects I get;

Use of undefined constant $naam

 

This is in mine dat file;

$llocalhost="localhost";
$lusername="";
$lpassword="";

 

So where is the mistake that I made?

Edited by Renaissance-Design
Please use the code button or tags to format your code.

  • Author
:huh: :huh: :huh: How can I have overseen that small issue that it should been "if(!$verbinding)"

Edited by kensha

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.