Jump to content

phulla

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

phulla's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Problem will be related to IE security settings and accessing data over non secure and secure connections. check your security settings.
  2. Problem will be related to IE security settings and accessing data over non secure and secure connections. check your security settings.
  3. SOLVED! I must have changed the cookie settings in Zone Alarm which were blocking and/or resetting cookies after i closed my browser. Hopefully this has solved my problem. I thank you PC Nerd.
  4. ok, not a problem, this is something i can check, which i have not done already. I have Zone Alarm installed and disabled Windows firewall..... this combi has worked in the past and i have recently updated the application... thanks.
  5. I have developed several applications with PHP all use SESSIONS and a few weeks ago all was working fine, but i [b]think[/b] after installing some Ad-Ware removal software (Lavasoft) this has somewhere, somehow caused some problems with Cookie and Session problem. If i try any of my PHP applications and try to login, the actual login function works, in that it checks the username and password and directs users to the correct logged in page, but anything controlled by sessions does not work, for example the menu. When a user logs in, sessions variables are set that determine user level and which menus should be displayed, but this is not happening. My applications running on hosted servers work fine, so it is something local to my machine and its settings, in the registry, which i have scanned using spybot, which did not find anything.... Session variables are being stored in the session directory i have set, but nothing. Can anyone help or has anyone had similar problem. Before anyone answers, I know its not a PHP session problem with my code because i have applications developed from 4 to 5 years ago which do not work locally, which were working a few weeks ago. I dont think the problem i am having is directly related to PHP because sometimes when i click on preferences in Google, i get an error suggesting i have not enabled Cookies, but i check my browser (FF v1.5.0.9) settings and all is fine. The same happens in IE. I had nowhere else to go that is why i am posting here! I have shed loads of work on and i can not continue until i get this problem fixed.
  6. My local machine i have php v4.3.10 mysql v4.1.10-nt apache v2.0.50 My uk2.net host has php v4.3.11 mysql v4.0.24 apache v1.3.33 The following code works fine locally [code] <?     if ($conn) {         $result = $dbConn->queryDB( "SELECT * FROM ajmerphull_mainnav WHERE display = 1 ORDER BY id ASC" );     } ?> <div id="nav" class="fudge">   <ul>   <?     if (mysql_num_rows($result) >= 1) {         $count = 1;         while ($row = mysql_fetch_array($result)) {             $last = ($count == mysql_num_rows($result) ? ' class="noborder"' : '');             print (             "<li". $last ."><b>[</b><a href=\"". $row['link'] ."\" accesskey=\"". $count ."\" title=\"". $row['title'] ."\">". $row['name'] ."</a><b>]</b></li>             ");             $count++;         }     }   ?>   </ul> </div> [/code] Database class [code]     function queryDB($sql) {         return mysql_query($sql) or die(mysql_error());     } [/code] I can connect to the database i have replicated on the host using phpMyAdmin and execute the SQL statement and it returns the desired result. On the host, outputing the value of $result returns a value of 1, which is correct. I can not understand what's wrong with mysql_num_rows. If i remove the if statement, i get the same error for mysql_fetch_array. I can not print_r(mysql_fetch_array($result)) to check the value. Can anybody help? You can see this live at [a href=\"http://ajmerphull.com\" target=\"_blank\"]http://ajmerphull.com[/a] Thanks
×
×
  • 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.