User Profile
Collapse
-
I have issues at the point where it is supposed to insert into the database... it flag an error "error uploading to the database" Canyou guys help me... Thanks -
Errors inserting into database
Code:?php session_start(); $connection=mysqli_connect("localhost","root","root","") or die("Error Connecting to Database"); //$db = mysql_select_db("database") or die("Error Selecting Database"); if (!$connection) //if not connection { echo "could not connect"; } else { //authenticate inputs if
-
Hi Alexsts,
I have corrected all the things you said but am still having the same errors...
Code:Error Save [UPDATE admin SET surname = 'adam'othernames = 'apple'gender = 'male'username = 'admin'password = 'password'WHERE id = '7']
Leave a comment:
-
Thannks guys,
But am still not able to resolve the issues. I am trying to view the PDF inline let me show you the edited vasion am working with.
Code:<?php $server = 'localhost'; $user = 'root'; $pass = ''; $db = 'database'; // Connect to Database $connection = mysql_connect($server, $user, $pass) or die ("Could not connect to server ... \n" . mysql_error ());
Leave a comment:
-
Updating database
Code:<?php $objConnect = mysql_connect("localhost","root","") or die(mysql_error()); $objDB = mysql_select_db("databasetable"); $strSQL = "UPDATE admin SET "; $strSQL .=",surname = '".$_POST["surname"]."' "; $strSQL .=",othernames = '".$_POST["othernames"]."' "; $strSQL .=",gender
-
Code:<?php //Function to send email via smtp function sendMail($message, $subject, $recipient) { require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch $mail->IsSMTP();
Last edited by Rabbit; Jun 2 '13, 04:53 AM. Reason: Please use code tags when posting code. Second warning.Leave a comment:
-
Registration that sends details to two e-mails
Code:<?php if(isset($_POST['email'])) { require_once 'functions.php'; // EDIT THE 2 LINES BELOW AS REQUIRED $email_to = "bolarinwaab@gmail.com"; $email_subject = "Registration Information"; function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found
-
Orally,
I am trying to display the full document with a plugin.
Frinavale,
How do I insert an iframe am a bit new in php programingLeave a comment:
-
View PDF & Doc Files Without Downloading them
Hello guys,
I have been able to work on this code in this article uploading files into MySQL database using php and it is working well.
But now I want to be able to allow users just view the PDF or doc files without having to download them.
Please I need help on this.
ThanksLast edited by Frinavale; May 30 '13, 01:34 PM. Reason: Moved question off of the article thread into a thread of its own. Put a reference to the article that it was moved off of and fixed grammar.
No activity results to display
Show More
Leave a comment: