menu search
brightness_auto

Recent questions tagged mysql

This is my code, it's running fine on the local server i.e., clock_out time is updated in the DB but while running this code on an online server, clock_out shows 00:00:00. <?php session_start(); $name = $_SESSION['name']; $clocked_in = $_SESSION['clock_in']; date_default_timezone_set('Asia/Kolkata'); $clock_out = date("h:i:sa"); $duration = $_POST['duration']; $con = mysqli_connect("localhost", "abc", "password", "signup"); $query = "update clock set clock_out = '$clock_out', duration = '$duration' where name = '$name' AND clock_in = '$clocked_in'"; mysqli_query($con, $query); mysqli_close($con); ?>
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
0 answers
I've made a database using phpMyAdmin , now I want to make a register form for my site where peaple can register .I know how to work with input tags in HTML and I know how to insert data into a database but my problem is that I don't know how I can connect to the database that is already made in phpMyAdmin.
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
2 answers
To see more, click for the full list of questions or popular tags.
eForumAfrica, where you can ask questions and receive answers from other members of the community. Find the answer to your question, help others by answering their questions.

702 questions

631 answers

25 comments

2.5k users

...