Search results

  1. T

    External CSS above root folder

    the databse login file and css are all within the public_html folder. public_html/mywebsite.com is my root domain public_html/css is where i put the css files. the link worked when i used php to get the database login file but didnt work for the css. im sorry if i didnt explain it...
  2. T

    External CSS above root folder

    hi i've managed to link to my database login which is above my root folder using php. however when i try to do the same for my external css, it doesnt work. is there a way to go about doing this? thanks.
  3. T

    row_number SQL Help

    thank you very very much for the advice.
  4. T

    row_number SQL Help

    thanks. i've tried mysql_error() but it still returns the same error message.
  5. T

    row_number SQL Help

    Hi ive been trying to fix this but i keep getting the error mysql_fetch_array(): supplied argument is not a valid MySQL result resource. can someone help me with this? please. when i remove the Row_Number() OVER (ORDER BY shopname ASC) AS rownumber part the script works just fine. im trying...
  6. T

    Help setting up redirect for "not found" pages

    ok i get it. thanks alot. actually i was thinking that i didnt want users to know what web host im using so if they enter a random url that doesnt fit the x10hosting error wont show up and it will direct them to my homepage instead.
  7. T

    Help setting up redirect for "not found" pages

    sorry but im a bit confused here. if my website is www.mysite.com and people just enter a random url like www.mysite.com/sdfdsf which does not exist, they will get x10hosting error 404. so if i change this will the problem be solved? as in the user will be redirected to the homepage? thanks.
  8. T

    php include - above root directory

    im sure i got the path correct the capitalization and user and stuff. how do i change the permission thingy?
  9. T

    php include - above root directory

    i created a folder home/user/Database and i put the database login file in that folder using php include. include_once '/home/user/Database/db_connect.php'; and it gave this error. include_once(/home/user/Database/db_connect.php) [function.include-once]: failed to open stream: No such...
  10. T

    php include - above root directory

    thanks for all the help. but how do you include a file that is not under /home/user/public_html. lets says i put it in /home/user/databse folder.how do i use php include to direct the file there? if my root folder is /home/user/public_html/mysite.com and i put my database log in file above...
  11. T

    mysql insert image into database

    Yeah its heredoc. I've change the $tmpname thing and the double quotation and i get this error. fopen() expects parameter 1 to be string, array fread(): supplied argument is not a valid stream resource fclose(): supplied argument is not a valid stream resource im having another...
  12. T

    mysql insert image into database

    hi i've created a script for users to upload images. but i keep getting this error. fopen() [function.fopen]: Filename cannot be empty this is the script. <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <?php...
  13. T

    php include - above root directory

    ok i figured it out myself already. thanks anyway ;).
  14. T

    php include - above root directory

    my root folder is public_html/mysite.com. the database login file is in public_html/databaselogin folder which is outside the root folder. so the php include you wrote wont work.
  15. T

    php include - above root directory

    yes i would like to place the file outside the root folder. and use php include to put it on my site.
  16. T

    php include - above root directory

    but the php include function only allows me to include files that are in my root folder which in this case is public_html/www.mysite.com. i want to store my database login above the root folderlike public_html/databaselogin for security purposes.
  17. T

    php include - above root directory

    if i want to include a sensitive file like a database login, where should i place the file when i upload to x10hosting server? if my root directory is public_html/www.mywebsite.com do i place it at public_html/databaselogin folder? and how do i link to that file using php include? thank you...
Top