User Profile

Collapse

Profile Sidebar

Collapse
aziz123
aziz123
Last Activity: Mar 27 '12, 01:21 PM
Joined: Mar 14 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi Atli's,

    Great tutorial just wondering could it be possible to demonstrate how to delete files within the list_files.php as I have tried and Dormilich has help me but still could not understand what I am doing wrong.

    As I have stated in my post I am a self learning PHP and MYSQL and would love to see a guide from you on this so that I can learn from it and compare my code as well.

    thanks
    See more | Go to post

    Leave a comment:


  • aziz123
    replied to Removing files into a MySQL database using PHP
    in PHP
    Hi again,

    I was looking at the list-files.php and I was wondering that the headers bring the data forward could i then use "unlink" to remove the file from the database or I did not understand the download phase.
    See more | Go to post

    Leave a comment:


  • aziz123
    replied to Removing files into a MySQL database using PHP
    in PHP
    as you can see in phase three line 37 get_file.php is stated
    See more | Go to post

    Leave a comment:


  • aziz123
    replied to Removing files into a MySQL database using PHP
    in PHP
    Hi,

    what I had done is that I made an error on the extension now corrected.

    what I want to achieve is that from Atli's post he had done:

    form - to upload file
    add_file.php - that adds the file to the database
    list_files.php - to view the list of files and to download the file
    get_file.php - is to gather the data shown in list_files.php

    what I want to do is also to include in...
    See more | Go to post

    Leave a comment:


  • aziz123
    replied to Removing files into a MySQL database using PHP
    in PHP
    Hi,

    I am still having the same problem and there is no error detected as far as my friend and has found out for me.

    I don't want to be a burden but could you provide the code with comments so that I can understand it and also see where I went wrong please

    e.g. I have notice that in line nine I left out the "i" in "mysql_quer y" however I though this will be the same way as the get_file.php...
    See more | Go to post

    Leave a comment:


  • aziz123
    replied to Removing files into a MySQL database using PHP
    in PHP
    in line two I added have my details and connects to the database, in line nine it executes the query? and finally, how do i enable reporting/display as I am using dreamweaver CS5.5 and PHPMYADMIN
    See more | Go to post

    Leave a comment:


  • aziz123
    replied to Removing files into a MySQL database using PHP
    in PHP
    Hi again,

    I already have linked the delete_file.php to the list_files.php

    as for the delete page the code I have done is this:

    Code:
    <?php 
    $dbLink = new mysqli('', '', '', '');
    if(mysqli_connect_errno()) {
    die("MySQL connection failed: ". mysqli_connect_error());
    } 
    
    $query = "DELETE FROM file WHERE id = ('$id')"; 
    
    $result = mysql_query($query);
    ...
    See more | Go to post
    Last edited by Dormilich; Mar 15 '12, 01:40 PM. Reason: Please use [CODE] [/CODE] tags when posting code.

    Leave a comment:


  • aziz123
    replied to Removing files into a MySQL database using PHP
    in PHP
    Hi Dormilich,
    Sorry is PK the primary key?

    how would I go about this as I was thinking to create the delete file that is linked in the list_files.php so that when open I can then view the files that I want to download or delete.

    thanks for the reply
    See more | Go to post

    Leave a comment:


  • aziz123
    started a topic Removing files into a MySQL database using PHP
    in PHP

    Removing files into a MySQL database using PHP

    Hi,

    First off I am self learning PHP and MYSQL, which I saw your guide on "Uploading files into a MySQL database using PHP" and this was great guide and responses that had came through.

    My question is how do I now remove files from the guide that you have created above,

    thanks
    See more | Go to post
No activity results to display
Show More
Working...