Question: Two issues in my php codes, one in Login.php, one in Register.php code. Two issues occur when we upload files on 000Webhost. We used 000Webhost

Two issues in my php codes, one in Login.php, one in Register.php code.

Two issues occur when we upload files on 000Webhost. We used 000Webhost to host a database for our advising app project. Project code can be found on Github. My partner uploaded two php files on 000Webhost but he got two errors, we are not sure how to solve it. Here're our php codes.

Github codes for Android Studio: https://github.com/swiftandquick/AdvisingApp

Register.php

Errors in Register.php:

Uncaught Error: Call to undefined function mysql_real_escape_string() in /storage/h4/876/951876/public_html/Login.php:4 Stack trace: #0 {main} thrown in /storage/h4/876/951876/public_html/Login.php on line 4

Login.php

Login.php errors:

Uncaught Error: Call to undefined function mysql_real_escape_string() in /storage/h4/876/951876/public_html/Register.php:6 Stack trace: #0 {main} thrown in /st

TL;DR:

Read the codes above.

Login.php error at line 4.

Register.php error at line 6.

Anyone care to help out?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!