Jump to content

JJBlaha

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

JJBlaha's Achievements

Member

Member (2/5)

0

Reputation

  1. I checked the htaccess and somehow these lines were added, and are causing the problem. I removed them and restarted apache and everything works. RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://1subdomain.domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://2subdomain.domain.com/.*$ [NC] ... all the others ... RewriteCond %{HTTP_REFERER} !^http://85subdomain.domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://86subdomain.domain.com/.*$ [NC] RewriteRule .*\.([a-zA-Z0-9\-]+)$ - [F,NC] How could this have been added to EVERY htaccess for every subdomain automatically?
  2. That would specifically effect LINKS to my website making it not show? A link to domain.com doesnt work, but directly typing in domain.com does work.
  3. It is my own server. Apache/1.3.37 on CENTOS Enterprise 4.6 i686. Oops, wrong forum. Can i get it moved?
  4. If you go directly to my site the page loads correctly. If you click on a link to my site it says Forbidden You don't have permission to access /index.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. This started without any changes to anything, as far as I can tell.
  5. I have a site with no domain, and I want to build the site on the server before i transfer the domain to it. The url to the site looks like http://sub.host.com/~mystuff/index.php and It will be http://www.mydsomain.com/index.php when i transfer the domain when it is ready. So my question is, is there a way where i can change one spot (like in htaccess or like a base tag or something) and have the rest of the links/images work when i change that one spot?
  6. no, i added those errors IN, there are no errors. $sql = "SELECT * FROM `random`"; $result = (@mysql_query($sql, $dbh) or die(mysql_error())); print_r(@mysql_fetch_assoc($result)); if($result) { $num = @mysql_num_rows($result); echo "num is" . $num; } prints 'num is'. this means that $result is true, but that $num has a null value. inserting into the table works, but if i try to retrieve data the variables are empty.
  7. I dont think you can help me. I tried everything you asked before I came here, the code is sound, it works on other servers. I need to know what setting on my server is causing this problem.
  8. it gives these Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in ... Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in...
  9. ive gone into phpmyadmin, done a query that works, and copied in. it is not the query, it has to be something else. what that is i have no idea. i have tried everything i can think of, nothing helps. this code works on other servers. so it has to be something with my server, but i do not know what.
  10. it is not really named table, and it is encased in ``.
  11. print_r(@mysql_fetch_assoc($result)); prints nothing if i remove the @ from anything i get a warning, but the output does not change otherwise.
  12. also i could insert into the table just fine, so i know it is not having trouble connecting to the database, just counting rows and getting information from rows.
  13. that changes nothing in the output
  14. I have a mysql code like $sql = "SELECT * FROM table"; $result = (@mysql_query($sql, $dbh) or die(mysql_error())); if($result) { echo "success!"; } This outputs 'success!'. If i then try to count the rows like this $sql = "SELECT * FROM table"; $result = (@mysql_query($sql, $dbh) or die(mysql_error())); $num = mysql_num_rows($result); echo "num is $num"; It outputs 'num is '. I get the same type of thing when i try mysql_fetch_array.
×
×
  • 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.