Recent content by DubStylee

  1. D

    MySQL PHP - Parse error: syntax error, unexpected T_BOOLEAN_AND....?

    Hello, I seem to have a probem with the follow line in my PHP script that gets infomation from 2 menu box's... I cannot get it to work if (!empty($categorypost)) && (!empty($areapost)){ $both = " WHERE category = '{$categorypost}' AND area = '{$areapost}'"; } Its part of an SQL statment that...
  2. D

    PHP MySQL Search SQL Statement?

    Hello, I have a SQL statment that works if the user has selected two vales from the HTML Menu Box form (Category & Area) however, how do I make it so that, if the user submits a "blank" or "all" area value from the HTML form so it filters by category but does not filter the area...
  3. D

    PHP MySQL Search Query - Show All Results?

    Hello, I have a search page that contains two drop down menus that searchs by category & area. If it finds a row in the SQL database which contains these infomation it will return results 100% fine. How to I search for a category but with all the areas instead of a perticular area that they...
  4. D

    How to get the url of file uploaded php?

    Hello, How do I get the URL of the file uploaded into a SQL database? I use PHP to process the file thats being uploaded.. instead of: ../myads/user/image.jpg I would like : http://websitename.com/myads/user/image.php Thanks My Code: $target = '/myads/user/'.$row['username']...
  5. D

    How to get the url of file uploaded php?

    Hello, How do I get the URL of the file uploaded into a SQL database? I use PHP to process the file thats being uploaded.. instead of: ../myads/user/image.jpg I would like : http://websitename.com/myads/user/image.php Thanks My Code: $target = '/myads/user/'.$row['username']...
  6. D

    How to get the full path of Uploaded file PHP?

    Hello, I upload a file from my HTML form that I have made, which sends to a PHP script that uploads onto a folder on my webserver... How do I get the full path of the uploaded file?? ie. http://websitename.com/uploaded/filename.jpg Thanks This is the code I am using: $target =...
  7. D

    How to get the filename of uploaded file PHP MySQL?

    Hello, I have a simple upload HTML form that submits to a PHP script which uploads a file to a directory on my webserver... How do I get the filename so that i can insert into a mySQL database... Any info is much appreiated... Thanks
  8. D

    PHP form.... 2 buttons?

    I have a php form with a submit button that goes to another page which processes the forms details and adds to dabase.. (Thats working fine) However, I wish to add a button that goes to another page with runs a different script which processes the same form..... How do I do this... basically...
  9. D

    php mysql - how to i echo a url from database into a header function?

    How do I echo a url from a sql database into a webpage that has a header function/command. at the moment i use: <?php header ("Location:main.php"); ?> however i would like to get the page name from the database instead of writing it in. Thanks
  10. D

    php mysql - how to echo a url from table?

    if my user has entered the correct username and password, how to I echo the url where the user cpanel page is???? something like <?php echo 'url'; ?>
  11. D

    PHP / mySQL - Page access restricted based on database value?

    How do I restrict access to pages based on database value........ If user has submitted a single page contract form, how do I STOP the user from accessing the form again to change infomation... Thanks Thanks
  12. D

    PHP / mySQL - Save user form data progress without final submittion?

    I would like my users to be able to fill out a contract online and save their progress and come back at a later date if they havent submitted the final contract.... ANY infomation with be appreciated.... I will be using: PHP & mySQL Thanks
Back
Top