User Profile

Collapse

Profile Sidebar

Collapse
abramfas
abramfas
Last Activity: Jul 19 '13, 11:41 AM
Joined: May 29 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • abramfas
    replied to Errors inserting into database
    in PHP
    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
    See more | Go to post

    Leave a comment:


  • abramfas
    started a topic Errors inserting into database
    in PHP

    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
    ...
    See more | Go to post

  • abramfas
    replied to Updating database
    in PHP
    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']
    See more | Go to post

    Leave a comment:


  • abramfas
    replied to View PDF & Doc Files Without Downloading them
    in PHP
    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 ());
    ...
    See more | Go to post

    Leave a comment:


  • abramfas
    started a topic Updating database
    in PHP

    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
    ...
    See more | Go to post

  • 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();
    ...
    See more | Go to post
    Last edited by Rabbit; Jun 2 '13, 04:53 AM. Reason: Please use code tags when posting code. Second warning.

    Leave a comment:


  • abramfas
    started a topic Registration that sends details to two e-mails
    in PHP

    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
    ...
    See more | Go to post
    Last edited by Rabbit; May 31 '13, 04:37 PM. Reason: Please use code tags when posting code.

  • abramfas
    replied to View PDF & Doc Files Without Downloading them
    in PHP
    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 programing
    See more | Go to post

    Leave a comment:


  • abramfas
    started a topic View PDF & Doc Files Without Downloading them
    in PHP

    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.

    Thanks
    See more | Go to post
    Last 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
Working...