[PHP] Header Location redirection parameters fail to redirect

2005-05-10 Thread Olav Drageset
I want url mysite.no to redirect to mysite.com with parameters lang=no and ctry=no, but the parameters do not follow the redirection. mysite.no/index.php is http://mysite.com/index.php?lang=no&ctry=no' ) ; exit; ?> mysite.com/index.php is mysite.com Homepage "; $lang = $_REQUEST['lang']; $ctry

[PHP] Time calculation after UNIX

2002-01-16 Thread Olav Drageset
Hi I have a database that is supposed to last more than 30 years Could someone advice me how to calculate (add and subtract) time in a maner that willl be correct after 2030 when Unix Time stop working? ragards [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] query works in mysql, but not from php

2001-11-19 Thread Olav Drageset
Hi $sql = "SELECT user FROM persons WHERE user = '$firstName' and domain = '$domainName' ; "; $result = mysql_query($sql,$connection ) or die(mysql_error()); Calling above lines from php returns: You have an error in SQL syntax near ';' at line 1 Issuing the command SELECT user FROM pe

[PHP] How to get mysql-result into a php variable

2001-11-17 Thread Olav Drageset
This is perhaps elementary, but I cannot find solution in the documentation I want to transfer to a php variable wheter I find a matching firstname in a group from mysql db function lookupFirstname ($fname, $gr, $conection) { $sql = "SELECT firstname AS matches "; $sql .= "FROM persons ";

[PHP] Transfer variable to next web-page

2001-11-17 Thread Olav Drageset
I just started.. How do you transfer a variable from one web-page to another I try to use a form like this: text for button "); ?> and catch it injoin2.phpby: $phpVariableName=htmlVariableName; echo"$phpVariableName"; This do not work. Can anyone tel me what should be done Neith