Help with populating MySQL

Hello friends after watching many videos on youtube, I have not been successful in connecting. Could you teach me how to properly fill out the Script

Captura da Web_12-11-2023_14430_panel.000webhost.com

archive

PHP Script

Password 35219966@Aa

Could someone teach me how to fill in the parameters
$DB_ADDRESS="";
$DB_USER="";
$DB_PASS="";
$DB_NAME="";

//SETTINGS//
//This code is something you set in the APP so random people cant use it.
$SQLKEY="secret";

PHP Script
Mysql.aia (2.3 KB)

Replace

$DB_ADDRESS="";
$DB_USER="";
$DB_PASS="";
$DB_NAME="";

with

//DATABSE DETAILS//
$db_host = "localhost";
$db_name = "put_user_here";
$db_pswd = "put_password_here";
$db_login = "put_name_here";
mysqli_set_charset($conn, "utf8"); 

//SETTINGS//
//This code is something you set in the APP so random people cant use it.
$SQLKEY="secret";

This is how I manage to connect in 000webhost

Plese follow the setup instructions, see the notes in bold

Setup

  • Put the PHP code on your web server
  • Set the SQLKEY in your app and in the PHP code, they must match for this code to work
    Note: Don't use special characters, see also here.
  • Setup your database connection information in the php script
  • Try out the code

Taifun

i am also facing error 400 , i tried to tried to change password without special character but that is impossible , i created a password that contains a special character , now i am facing error 400
this image is for changing password
2023-12-18 - 11-44-23 - 000Webhost - Databases

I will have to do some tests to find a solution
Meanwhile you can try this

Taifun

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.