Re: [PHP-DB] A Doubt

2002-08-30 Thread Metin Kale
Could you enable a session variable to keep track of it? If you have an if statement in mnop.php that calls the abcd.php page, then have that if statement also start a session and register a variable. This way, if the variable you set is equal to a certain value, then you know that

Re: [PHP-DB] A Doubt

2002-08-30 Thread Jed Verity
You could also, perhaps, write the value of $xyz to a text file when you set it mnop.php, and then access it (and eval it, if necessary) by including xyz.txt in abcd.php. HTH, Jed On the threshold of genius, Metin Kale wrote: Could you enable a session variable to keep track of it? If you

[PHP-DB] A Doubt

2002-08-28 Thread Manoj Japher
hi, I have a question. Hoping someone may help me out. Can a PHP page say file abcd.php access a variable $xyz which is used in another file mnop.php? I mean can I refer to a variable whose value has been set in some other file. The point is that the file mnop.php after finishing its

Re: [PHP-DB] A Doubt

2002-08-28 Thread Bas Jobsen
Hi, The reason is, I need to check everytime the file abcd.php is loaded, I should be able to determine that it was loaded by mnop.php If you include abcd.php in mnop.php $_SERVER['SCRIPT_NAME'] equals /mnop.php for both scripts. So you can test in abcd.php for this. -- PHP

Re: [PHP-DB] A Doubt

2002-08-28 Thread Bas Jobsen
Hi Manoj, Your reply adrress seems to be wrong: - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 553 sorry, your envelope sender is in my badmailfrom list (#5.7.1)) - Transcript of session follows - ... while talking to

Re: [PHP-DB] A Doubt

2002-08-28 Thread Bas Jobsen
Hi Manoj, echo SCRIPT document.location = 'include.php' /SCRIPT ; I think i could also use: header('Location: include.php'); // you shouldn't print anything else before the header Now your flag thing. I the first place you could check $_SERVER['HTTP_REFERRER'] gives you the page the

[PHP-DB] php doubt

2002-08-26 Thread suman
hi i am working with php on a postgres server .so i have some doubt's. my project is a student information management system on an apache web server using php and postgres as backend my doubts are 1.i wanna insert a timestamp type into db and php doesn't have such a type so i use int for