Help on touching up Admin

Discussion in 'PHP' started by dannbkk, May 25, 2007.

  1. #1
    I have put together this code from one of the tutorials found here http://www.php-mysql-tutorial.com/cms-admin-php-mysql.php
    and so far have this working;

    cms-admin.php

    I need to edit the code to suit my datasbe which has 3 tables 1 table has an image file, which will involve uploading images, how can I add this code to suit?

    Kindly awaiting suggestions and possible help on code!
     
    dannbkk, May 25, 2007 IP
  2. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to be a little more specific with what you're wanting, I'm not really understanding.
     
    projectshifter, May 25, 2007 IP
  3. dannbkk

    dannbkk Well-Known Member

    Messages:
    1,403
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Ok I have put together the code successfully from the tutorial link above, but I am stuck with adding image upload option to one of my tables in php.

    This is what I have done so far but it doesnt seem to be uploading?

     
    dannbkk, May 25, 2007 IP
  4. Paris Holley

    Paris Holley Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    here is a tutorial for you that should help

    phpfreaks.com/tutorials/36/0.php
     
    Paris Holley, May 25, 2007 IP
  5. dannbkk

    dannbkk Well-Known Member

    Messages:
    1,403
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    120
    #5
    Thanks, nice tutorial,

    But now when i try to upload the file doesnt go inside the folder?

    It gives me error message when I try to upload - "Could Not Copy, Wrong Filetype"

    Any suggestions on alter of code here please....

     
    dannbkk, May 25, 2007 IP
  6. dannbkk

    dannbkk Well-Known Member

    Messages:
    1,403
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    120
    #6
    any chance I could get someone to help me on this one...
     
    dannbkk, May 26, 2007 IP
  7. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you can't get anyone to help you, feel free to hit me up on a messenger in about 12 hours (just about to go to bed) and I'll be glad to take a look. I have this bad inability to read large blocks of code unless it's in a notepad window lol.
     
    projectshifter, May 26, 2007 IP
  8. dannbkk

    dannbkk Well-Known Member

    Messages:
    1,403
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    120
    #8
    Thankyou for your genourous offer, I have added you to my msn and have been quietly hoping you could get back to me? Your status has been set to away for the past 2 or so days.

    Awaiting reply thankyou
     
    dannbkk, May 28, 2007 IP
  9. gandaliter

    gandaliter Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Firstly, what is the code of db.inc.php, secondly, when it echos the error message, could you change $_FILES['imagefile']['name'] to $_FILES['imagefile']['type'] and post the results here
     
    gandaliter, May 29, 2007 IP
  10. dannbkk

    dannbkk Well-Known Member

    Messages:
    1,403
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    120
    #10
    problem now solved thankyou all
     
    dannbkk, Jun 5, 2007 IP