User Profile

Collapse

Profile Sidebar

Collapse
mirasol
mirasol
Last Activity: Jul 13 '10, 04:21 AM
Joined: Jul 12 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • list_file.php

    Code:
    <?php 
    // Connect to the database 
    	$dbLink = new mysqli('localhost', '', '', ''); 
    	if(mysqli_connect_errno()) { 
    	    die("MySQL connection failed: ". mysqli_connect_error()); 
    	} 
    	  
    	// Query for a list of all existing files 
    	$sql = 'SELECT `id`, `t_id`, `name`, `mime`, `size`, `created` FROM `file`'; 
    	$result = $dbLink->query($sql);
    ...
    See more | Go to post
    Last edited by Dormilich; Jul 13 '10, 05:35 AM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • add_file.php

    Code:
    <?php 
    	// Check if a file has been uploaded 
    	if(isset($_FILES['uploaded_file'])) { 
    	    // Make sure the file was sent without errors 
    	    if($_FILES['uploaded_file']['error'] == 0) { 
    	        // Connect to the database 
    	        $dbLink = new mysqli('localhost', '', '', ''); 
    	        if(mysqli_connect_errno()) { 
    	            die("MySQL connection failed: ".
    ...
    See more | Go to post
    Last edited by Dormilich; Jul 13 '10, 05:35 AM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • what is the supply codes to list_file.php and add_file.php?
    See more | Go to post

    Leave a comment:


  • Code:
    <FORM METHOD="post" ACTION="add_file.php" ENCTYPE="multipart/form-data"> 
    	<INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="1000000"> 
    	<INPUT TYPE="hidden" NAME="action" VALUE="Upload"> 
    	 <TABLE BORDER="1" cellspacing="1" cellpadding="3"> 
    	  <TR> 
    	   <TD>Teacher
    ...
    See more | Go to post
    Last edited by Dormilich; Jul 13 '10, 05:34 AM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • i used the given codes, how to add textbox and it will be save to mysql?
    See more | Go to post

    Leave a comment:


  • mirasol
    started a topic how to upload file with textbox using mysql into php
    in PHP

    how to upload file with textbox using mysql into php

    i am new here,i just want to ask question about uploading file with textbox using mysql and php, i used the codes given by some member and my problem is i dont know how to add textbox and i want it to be saved to my table name.
    See more | Go to post
No activity results to display
Show More
Working...