Search results

  1. lostcommander

    mysql_query(select) result improperly empty

    // Connect to the database. $dbconn = mysql_connect('localhost',$user,$password); if (!$dbconn) { die('DB connection failed: ' . mysql_error()); } $dbselection = @mysql_select_db($database); if (!$dbselection) { die('DB selection failed: ' . mysql_error()); } // Get the list of s from...
  2. lostcommander

    PHP mysql_query failure

    And as soon as I took out some extra /* */ blocks, I get the data that IS supposed to be there! Spectacular, thank you very much!
  3. lostcommander

    PHP mysql_query failure

    Okay, if I use: then the die statement does NOT get triggered and the page loads (albeit without the data it should have from MySQL). Also, if I add: then it produces: "Resource id #5" "Array" BTW, thank you VERY much for your help!
  4. lostcommander

    PHP mysql_query failure

    This is TOTALLY the time to start asking me "is your computer plugged in?" questions, because I think it's pretty obvious I've forgotten something pretty basic... Also, the last time I did this kind of stuff was about 3 years ago in PHP4, so if there were any major changes relevant to this...
  5. lostcommander

    PHP mysql_query failure

    Nope, my table is not "table". My user and password aren't named after themselves either. I know those weren't the trouble though. Now, putting localhost in quotes. I mean, it makes sense in hindsight, but I never considered it, lol... *sigh* unfortunately, that does not seem to have fixed it...
  6. lostcommander

    PHP mysql_query failure

    Okay, I've been beating my head against this for too long and I don't see anything either wrong with my code or of use in searching the forums. I'm sorry as I'm sure this is either a typo or programmer error (e.g. mixing string concatenation . vs + earlier - wrong language, dur...) on my part...
  7. lostcommander

    mod_rewrite outside of public_html?!? & dir hiding

    Mmm, good info, Mission. I had not even considered the possibility that internal redirects were responsible for .tld => .tld/ => .tld/index.html... That is quite interesting and I may find a use for that at some point. In the mean time... THANK YOU LADY ANNA!!! That is EXACTLY what I was...
  8. lostcommander

    CMS joomla 15.

    I am currently using Joomla. What do you mean by: Does the site timeout? Do you get 404 Errors when attempting to navigate to a page? What file(s) have you uploaded? Did you make the website somewhere other than on your x10Hosting account?
  9. lostcommander

    mod_rewrite outside of public_html?!? & dir hiding

    Darn the English language and it's multiple meanings... lol. Clearly, from my short experience with this, you are correct that this is tricky. I am really confused as to WHY it is tricky though. I included the [L] "Last" flag on the last rule, so it should make the second change and then STOP...
  10. lostcommander

    mod_rewrite outside of public_html?!? & dir hiding

    I am not trying to prevent directory indexing. I am trying to hide the directory name from visitors. I would like to be using a CMS. I would like to be able to change which CMS I am using, so I would like the entire CMS to reside in its own folder, spread out into the base directory. I would...
  11. lostcommander

    mod_rewrite outside of public_html?!? & dir hiding

    Thank you very much. The RewriteBase thing just went straight over my head the first time(s) I read it. Now that I have an example of exactly what happens when you DON'T use it, it's use is very clear! I still need some access to the directory I hid, I just don't want any visitors to see the...
  12. lostcommander

    mod_rewrite outside of public_html?!? & dir hiding

    I am trying to hide a directory using mod_rewrite such that: visitor asks for mysite.tld/dir/anyfile.ext visitor gets redirected to mysite.tld/anyfile.ext I tried to do this through .htaccess and mod_rewrite using: RewriteRule ^dir/{1}(.*)$ $1 [R] Unfortunately, what this is doing is...
Top