• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Need a little help

OzatuZana

Active member
Banned User
Oct 5, 2018
669
192
43
India
catbox.me
I found this nice looking login page [Website] and I follows each steps careful but still shows error.
Code:
[09-May-2019 16:01:20 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/dhruboz/Indokagure/form-login/config.php:2
Stack trace:
#0 /home/ozatuzana/Indokagure/form-login/login.php(2): include()
#1 {main}
  thrown in /home/ozatuzana/Indokagure/form-login/config.php on line 2

Can some please please tell me, what is the issue ?

Website: https://indokagure.com/form-login/login.php
https://indokagure.com

Pass + username is: admin
 
Last edited:
I found this nice looking login page [Website] and I follows each steps careful but still shows error.
Code:
[09-May-2019 16:01:20 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/dhruboz/Indokagure/form-login/config.php:2
Stack trace:
#0 /home/ozatuzana/Indokagure/form-login/login.php(2): include()
#1 {main}
  thrown in /home/ozatuzana/Indokagure/form-login/config.php on line 2

Can some please please tell me, what is the issue ?

Website: https://indokagure.com/form-login/login.php
https://indokagure.com

Pass + username is: admin
I need to see the code in config.php and login.php
 
  • Like
Reactions: Babak
I need to see the code in config.php and login.php
I used same codes as the tuition
Code:
<?php
mysql_connect ('localhost', ozatuzana_login', 'ozatuzana_login'); // adjust it with your mysql password and username
mysql_select_db ('ozatuzana_login'); // the name of the database that we use you
?>
 
@Babak
There is none
open and add this
PHP:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
 
I used same codes as the tuition
Code:
<?php
mysql_connect ('localhost', ozatuzana_login', 'ozatuzana_login'); // adjust it with your mysql password and username
mysql_select_db ('ozatuzana_login'); // the name of the database that we use you
?>
Try this:


PHP:
<?
function conexion_bd()
{
   $result = mysql_connect("localhost", "user", "password")  or die ("Error al conectar");
   //mysql_set_charset('utf8', $result);
   mysql_query ("SET NAMES 'utf8'");
   if (!$result)
      return false;
   if (!mysql_select_db("name_of_DB",$result))
      return false;

   return $result;
}

?>

Check the username and password on your host.
 
  • Like
Reactions: Babak
Try this:


PHP:
<?
function conexion_bd()
{
   $result = mysql_connect("localhost", "user", "password")  or die ("Error al conectar");
   //mysql_set_charset('utf8', $result);
   mysql_query ("SET NAMES 'utf8'");
   if (!$result)
      return false;
   if (!mysql_select_db("name_of_DB",$result))
      return false;

   return $result;
}

?>

Check the username and password on your host.
Did not worked

Here is the codes if you want
https://indokagure.com/form-login.zip
 
@OzatuZana

I presume in the download link you posted, you have removed all the personal data? If you want to PM me the actual files and tell me the database name you created, I'll have a look at it for you.

I need to see exactly what is in your config.php so I can see where it is wrong!

TassieNZ
 
Last edited:
  • Like
Reactions: Babak
Hi @OzatuZana

If you get this error on a new hosting with PHP 7.0, then you are using deprecated libraries.
mysql_connect — Open a connection to a MySQL Server
Warning
This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used.

More here: http://php.net/manual/en/function.mysql-connect.php

Simplest solution:
Downgrade your PHP version below the 7.0.

Hardest solution:
Transform the PHP code to use MySQLi or PDO_MySQL extension.
 
  • Like
Reactions: Babak
I found this nice looking login page [Website] and I follows each steps careful but still shows error.
Code:
[09-May-2019 16:01:20 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/dhruboz/Indokagure/form-login/config.php:2
Stack trace:
#0 /home/ozatuzana/Indokagure/form-login/login.php(2): include()
#1 {main}
  thrown in /home/ozatuzana/Indokagure/form-login/config.php on line 2

Can some please please tell me, what is the issue ?

Website: https://indokagure.com/form-login/login.php
https://indokagure.com

Pass + username is: admin
Hello,

I can see you're having some issues, I would love to help but I hate back and forth messages for days, especially that I am very busy these days. Just send me logins and links and tell me the story in full and I will fix it.

Give me Cpanel too if you can. Send it via private message. If you're worried, speak to your hosting provider to create a 2nd Cpanel acc with limited access for me.
 
Hello,

I can see you're having some issues, I would love to help but I hate back and forth messages for days, especially that I am very busy these days. Just send me logins and links and tell me the story in full and I will fix it.

Give me Cpanel too if you can. Send it via private message. If you're worried, speak to your hosting provider to create a 2nd Cpanel acc with limited access for me.
I will send you the things you needed
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock