Jump to content

daveyah2002

New Members
  • Posts

    7
  • Joined

  • Last visited

daveyah2002's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. WooHoo! Ch0cu3r. Thanks so much it's working now with that change.
  2. Hi, I have attached a couple of files. File single.txt contains the code to upload a single selected file to a server with a random name and write the name to an SQL database. I am really just stumbling around in the dark trying to modify the code (in multiple.txt) so it will upload multiple files. The code in multiple.txt isn't falling over but it still just uploads one file and writes one filename to the database. The photo form has been modified to accept a multiple file selection and the number of selected files is indicated in the browser. input type = "file" name="photo" multiple="multiple" accept="image/* Any pointers as to where I am going wrong would be appreciated. file single.txt file multiple.txt
  3. Thanks for taking the time to reply, I appreciate it. Ginerjm - not quite, it was Ch0cur that pointed out what I needed. With hindsight it looks so obvious!! Ch, I've still got half my hair left thanks to you.
  4. Hi, I'm really at a loss here. I have queried a table to get an option list, which returns what I expect but I need to then add it to some current code instead of the fixed option list presented. The syntax is beyond me. Please see attached. Any pointers would be great. OptionList.txt
  5. Hi, thanks for the replies I managed to stick the form in a separate .php template in the end, which only displays when users logged in. Appreciate your time.
  6. Hi Thanks for the reply, I did think about that but I got the impression that as it's a form search box and part of the template for the top of the page then I would need to exclude individual form elements. I could be wrong. To me that was more hassle than it's worth and easier to reproduce the top template with and without the form. I will have another look at it though. Many thanks. Thanks.
  7. Hi, just joined today. I am using a variable to chose a template dependent on when the user is logged in it shows a search box or not if they haven't. As a php beginner I just want to know if this is the correct method or should I be declaring 'template' somewhere specific. It is only used in this one file. I hope I've used the code tags correctly... <php? include_once("login_status.php") If(user_login==true){ $template="template_top.php" ...web page with search box }else{ ...web page without search box $template="template_top_NoSearch.php" } ?> <html> <?php include_once($template); ?> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.