Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- php file ko sir. gagamitin ko sana sa for google drive pagconnect ng android app ko tolaptop
- <?php
- //This script is designed by Android-Examples.com
- //Define your host here.
- $hostname = "localhost";
- //Define your database username here.
- $username = "Real";
- //Define your database password here.
- $password = "1234567890";
- //Define your database name here.
- $dbname = "library";
- $con = mysqli_connect($hostname,$username,$password,$dbname);
- $StudentNo = $_POST['studentno'];
- $StudentName = $_POST['studentname'];
- $ContactNo = $_POST['contactno'];
- $Title = $_POST['title'];
- $Author = $_POST['author'];
- $Subject = $_POST['subject'];
- $CallNo = $_POST['callno'];
- $Sql_Query = "insert into studreserve (studentno,studentname,contactno,title,author,subject,callno) values
- ('$StudentNo','$StudentName','$ContactNo','$Title','$Author','$Subject','$CallNo')";
- if(mysqli_query($con,$Sql_Query)){
- echo 'Loi';
- }
- else{
- echo 'Try Again';
- }
- mysqli_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement