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.

Database/login code help

Featured Replies

I have a login code and I don't understand how to get certain parts of the script.

DEFINE ('DB_USER', 'YOUR DATABASE USERNAME');

DEFINE ('DB_PASSWORD', 'YOUR DATABASE PASSWORD');

DEFINE ('DB_HOST', 'localhost');

 

How would I find my database username, is it just my mysql login username?

Is my password my mysql login password?

How do I find my local host, or does that just stay the same?

I have a login code and I don't understand how to get certain parts of the script.

DEFINE ('DB_USER', 'YOUR DATABASE USERNAME');

DEFINE ('DB_PASSWORD', 'YOUR DATABASE PASSWORD');

DEFINE ('DB_HOST', 'localhost');

 

How would I find my database username, is it just my mysql login username?

Is my password my mysql login password?

How do I find my local host, or does that just stay the same?

 

 

when you set up the databse you will have given a user priviliges to the database, use that username and password. Also localhost will not have to be change unless the databse is on a seperate server from the actual website.

Ok thanks

 

If its local, their is a fair chance your username will be "root" your password may well be just blank unless you have specified one. so your code would be

 

 

DEFINE ('DB_USER', 'root');
DEFINE ('DB_PASSWORD', '');
DEFINE ('DB_HOST', 'localhost');

 

Pat

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.