Hi,

I have been advised that the homepage http://www.predict.ch/ does not
work with some browser/OS combinations.
The problem seems to be the following code's lines:

$result = mysql_query($sql,$db)
or die("Please check your query and try again");

$db is defined in an included file:

$db = @mysql_pconnect("localhost","xxx","yyy");
@mysql_select_db("predict",$db);

and $sql looks so:

$sql = "SELECT " . $HTTP_SESSION_VARS["language"] . "_title as title, "
.
$HTTP_SESSION_VARS["language"] . "_abstract as abstract, " .
$HTTP_SESSION_VARS["language"] . "_content as content " .
"FROM news where showIt = 'TRUE' ORDER BY published DESC";

with $HTTP_SESSION_VARS["language"] = table_read("language");

The most visitors get the index.php4 with the query correctly shown. 2
people (Win98 or Millenium/IE 5 or 6beta) get the die procedure:
"Please check your query and try again" and I really do not understand
why. I am really confused and would like to solve this problem.
Could someone help me?
Greetings,

christian


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to