Jump to content

Frankice

Members
  • Content Count

    17
  • Joined

  • Last visited

Everything posted by Frankice

  1. I'm happy to find this forum, the database have been updated after I removed the email field in the database .Thank you so much I appreciate your time.
  2. I understand your point on the hiring aspect. Here is my connection Sir, <?php // database connection config $dbHost = 'localhost'; $dbUser = ''; $dbPass = ''; $dbName = ''; $dbConn = mysqli_connect ($dbHost, $dbUser, $dbPass) or die ('MySQL connect failed. ' . mysql_error()); mysqli_select_db($dbConn,$dbName) or die('Cannot select database. ' . mysqli_error()); function dbQuery($sql) { $result = mysqli_query($dbConn,$sql) or die(mysql_error()); return $result; } ?>
  3. Please Please can you add the mysqli_error to my code here if (isset($_POST['submit'])){ $date = $_POST['date']; $location = $_POST['location']; $time = $_POST['time']; $track = $_POST['track']; $activity = $_POST['activity']; $details = $_POST['details']; { $query = "INSERT INTO package(date,location,time,track_code,activity,details)VALUES('$date','$location','$time','$track','$activity','$details')"; $check = mysqli_query($dbConn,$query); if($check) { header('location:success_package'); exit; } else { $error = '<div class="alert-warning" style="height:60px;
  4. Please Can I send you link to the website I'm building Sir?
  5. When I submit the form it goes to the $error instead of success and it doesn't update in the database.
  6. Thank you, I showed the full part incase is needed my problem is to insert the datas on the database. Is still giving me error Sir.
  7. Thank you sir, Here is the place I'm having issue.
  8. Okay Sir, I'm still a newbie. I'm trying it out now, so much thanks for your concern.
  9. Please what can I do, I'm stumped? Is there any way you can help me fix it Sir?
  10. Sir, I just want my data to submit to the database. Please why can't the code submit the data the database?
  11. Thank you sir, for now I'm concerning for the code to work properly like submitting the data to my database. My other file adding user works fine but this file having almost the same code is not submitting just giving me this error. Notice: Undefined variable: error in /home/psdelive/public_html/admin/add package.php on line 118 Sir, I can give you the link to help me look into it.
  12. <?php include('../connection.php'); session_start(); if (isset($_POST['submit'])){ $date = $_POST['date']; $location = $_POST['location']; $time = $_POST['time']; $track = $_POST['track']; $activity = $_POST['activity']; $details = $_POST['details']; { $query = "INSERT INTO package(date,location,time,track_code,activity,details)VALUES('$date','$location','$time','$track','$activity','$details')"; $check = mysqli_query($dbConn,$query); if($check) { header('location:success_package'); } else { $error = '<div class="alert-warning" style="height:60px;"> <p style="l
  13. I'm facing database submission issues, please can someone with a good heart help me. Below is my code I don't know what I did wrong it won't submit mydata to the database it gives me error. Notice: Undefined variable: error in /home/psdelive/public_html/admin/add package.php on line 118 <?php include('../connection.php'); session_start(); if (isset($_POST['submit'])){ $date = $_POST['date']; $location = $_POST['location']; $time = $_POST['time']; $track = $_POST['track']; $activity = $_POST['activity']; $details = $_POST['details']; {
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.