epiz_31134436 is my username and my website is this one pesospc.epizy.com
I am making a system which will be presented at my professors on Friday and I finished coding in xampp and my codes has perfectly executed the system locally (phpmyadmin)
so my adviser said that I should post it on a free webhosting website. When I uploaded the php files, I changed the dbname, password, hostname and the user on my functions.php and I also import my sql into the new DB from here.
functions.php
<?php
define('DBINFO','mysql:host=XXXXXXX;dbname=epiz_XXXXXXXXX');
define('DBUSER','epiz_31134436');
define('DBPASS','XXXXXXXXXXXX');
function performQuery($query){
$con = new PDO(DBINFO,DBUSER,DBPASS);
$stmt = $con->prepare($query);
if($stmt->execute()){
return true;
}else{
return false;
}
}
function fetchAll($query){
$con = new PDO(DBINFO, DBUSER, DBPASS);
$stmt = $con->query($query);
return $stmt->fetchAll();
}
?>
Everything went smoothly on the admin panel, whatever I uploaded data in the local I can see them (Graphs list of student etc.). But the problem here is when I go to registering a new student, I can’t add anymore in signup.php. I may have change a few things in here but what could have gone wrong in this file? Please let me know. I’m really tired fixing this one knowing my group mates cant help me.