- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Hey Oompa-Loompas! I'm Sheila Mae. But I rather have you calling me Shing. I'm 17 years old and there's no need to ask if it's true. I study at Informatics International College, 2nd yr College. I live somewhere I won't tell. JMDM ♥ He's one of the…
15 Posted Topics
Hello there, I'm having a problem on this one. I want to update my records, but when I click save, the specific fields/record is null. instead of updating/edit. These is my PHP code for admin_view.php (This is the form where you can choose a specific record/field that you are going … | |
Hello there, anyone can help me with my problem? my problem is, i want to display a "please complete all the fields" when the user inputs incomplete data in the textboxes and i want to display it in the same form. im new in php. These are my codes [CODE]<?php … | |
Hello there, can anyone can help me with my problem, i want to update a record, but im getting an error. this is my code [CODE]<?php // connect to the database include('connect-db.php'); // check if the form has been submitted. If it has, process the form and save it to … | |
Hello there, anyone can help me about my problem, i want to display an error message when the user inputs invalid username and incorrect password. and i want to display it in the same form. im new in php. These are my codes: [CODE] <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $db=mysql_connect('localhost','root','') … | |
Hello Good day everyone, anyone can help me with error " Undefined index: is_ajax" I've encountered it. Im new in AJAX and im trying to use it on my login page. This is the code for my main.php [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta … | |
[CODE]<?php // connect to the database include('connect-db.php'); // check if the form has been submitted. If it has, start to process the form and save it to the database if (isset($_POST['submit'])) { // get form data, making sure it is valid $employeeno = mysql_real_escape_string(htmlspecialchars($_POST['txtempno'])); $employeename = mysql_real_escape_string(htmlspecialchars($_POST['txtempname'])); $position = mysql_real_escape_string(htmlspecialchars($_POST['txtpos'])); … | |
[CODE] <?php // if there are any errors, display them $error=''; if ($error != '') { echo '<div style="padding:4px; border:1px solid red; color:red;">'.$error.'</div>'; } ?> [/CODE] [CODE]<?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="dbriomra"; // Database name $tbl_name="login"; // Table name $error=''; // Connect … | |
[CODE]<?php // if there are any errors, display them if ($error != '') { echo '<div style="padding:4px; border:1px solid red; color:red;">'.$error.'</div>'; } ?> <form action="" method="post"> <input type="hidden" name="id" value="<?php echo $employee no; ?>"/> <div> <p><strong>ID:</strong> <?php echo $employee no; ?></p> <strong>Month: *</strong> <input type="text" name="firstname" value="<?php echo $month; ?>"/><br/> … | |
Hello there, can anyone help me? i want to put a restrictions in my application form. for example, "Please complete all the fields" and here's my code: [CODE]<?php $posapp = $_POST['txtapplied']; $fname = $_POST['txtfname']; $mname = $_POST['txtmname']; $lname = $_POST['txtlname']; $month=$_POST['txtmonth']; $day=$_POST['txtday']; $year=$_POST['txtyear']; $age=$_POST['txtage']; $eadd=$_POST['txtemail']; $homenumber=$_POST['txthnum']; $cpnumber=$_POST['txtcpnumber']; $address=$_POST['txtaddress']; $religion=$_POST['txtreligion']; $birthplace=$_POST['txtbplace']; … | |
Hello there, Can anyone help me in my problem? My problem is, i need to display a record in the textbox, but it's not working. the record(database) and the textboxes. Thanks :D | |
[CODE]<?php $db=mysql_connect('localhost','root','') or die('Cannot connect to MySQL!'); @mysql_select_db('dbriomra')or die('Cannot connect to database'); // Retrieve username and password from database according to user's input $login = mysql_query("SELECT * FROM login WHERE (username = '" . mysql_real_escape_string($_POST['compid']) . "') and (password = '" . mysql_real_escape_string($_POST['pword']) . "')"); // Check username and password … | |
Re: <?php $posapp=$_POST['txtapplied']; $fname=$_POST['txtfname']; $mname=$_POST['txtmname']; $lname=$_POST['txtlname']; $month=$_POST['txtmonth']; $day=$_POST['txtday']; $year=$_POST['txtyear']; $age=$_POST['txtage']; $eadd=$_POST['txtemail']; $homenumber=$_POST['txthnum']; $cpnumber=$_POST['txtcpnumber']; $address=$_POST['txtaddress']; $religion=$_POST['txtreligion']; $birthplace=$_POST['txtbplace']; $height=$_POST['txtheight']; $weight=$_POST['txtweight']; $civilstatus=$_POST['txtcstatus']; $college=$_POST['txtcollege']; $course=$_POST['txtcourse']; $year=$_POST['txtyeargrad']; $db=mysql_connect('localhost','root','') or die ('Cannot connect to MYSQL!'); @mysql_select_db('dbriomra') or die('Cannot connect to database'); $query=mysql_query("Insert into onlineapplication values ('posapp', 'fname', 'mname', 'lname', 'month', 'day', 'year', 'age', 'eadd', 'homenumber', 'cpnumber', 'address', … | |
[CODE]<?php $posapp=$_POST['txtapplied']; $fname=$_POST['txtfname']; $mname=$_POST['txtmname']; $lname=$_POST['txtlname']; $month=$_POST['txtmonth']; $day=$_POST['txtday']; $year=$_POST['txtyear']; $age=$_POST['txtage']; $eadd=$_POST['txtemail']; $homenumber=$_POST['txthnum']; $cpnumber=$_POST['txtcpnumber']; $address=$_POST['txtaddress']; $religion=$_POST['txtreligion']; $birthplace=$_POST['txtbplace']; $height=$_POST['txtheight']; $weight=$_POST['txtweight']; $civilstatus=$_POST['txtcstatus']; $college=$_POST['txtcollege']; $course=$_POST['txtcourse']; $year=$_POST['txtyeargrad']; $db=mysql_connect('localhost','root','') or die ('Cannot connect to MYSQL!'); @mysql_select_db('dbriomra') or die('Cannot connect to database'); $query=mysql_query("Insert into onlineapplication values ('posapp', 'fname', 'mname', 'lname', 'month', 'day', 'year', 'age', 'eadd', 'homenumber', 'cpnumber', 'address', … | |
[CODE]Private Sub Form_Load() Call dbConnect Call DBRS strstudinfo = "SELECT Members.StudentID, Members.LastName, Members.FirstName, Members.MI, Members.Sex, Members.Address, Members.Age, Members.Birthday, Members.[Time Returned], Members.[Date Returned] FROM Members" [B]rsstudinfo.Open strstudinfo, dbcon, 3, 3[/B] Call datafill Call disabling 'strstudinfo = "INSERT INTO Members(StudentID,LastName, FirstName, MI,Age,Address,Birthday,Time Returned,Date Returned) VALUES (" & txtmemstudid.Text & ", '" & … | |
Re: <?php $posapp=$_POST['txtapplied']; $fname=$_POST['txtfname']; $mname=$_POST['txtmname']; $lname=$_POST['txtlname']; $month=$_POST['txtmonth']; $day=$_POST['txtday']; $year=$_POST['txtyear']; $age=$_POST['txtage']; $eadd=$_POST['txtemail']; $homenumber=$_POST['txthnum']; $cpnumber=$_POST['txtcpnumber']; $address=$_POST['txtaddress']; $religion=$_POST['txtreligion']; $birthplace=$_POST['txtbplace']; $height=$_POST['txtheight']; $weight=$_POST['txtweight']; $civilstatus=$_POST['txtcstatus']; $college=$_POST['txtcollege']; $course=$_POST['txtcourse']; $year=$_POST['txtyeargrad']; $db=mysql_connect('localhost','root','') or die ('Cannot connect to MYSQL!'); @mysql_select_db('dbriomra') or die('Cannot connect to database'); $query=mysql_query("Insert into onlineapplication values ('posapp', 'fname', 'mname', 'lname', 'month', 'day', 'year', 'age', 'eadd', 'homenumber', 'cpnumber', 'address', … |
The End.