Re: [PHP] set cookie function problem

2005-04-19 Thread Ospinto
Marek, you're right. Thanks. Solved the problem "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ospinto wrote: > > ok...what does that have to do with my problem? > > The time is send in GMT, and your computer is set

Re: [PHP] set cookie function problem

2005-04-19 Thread Ospinto
ok...what does that have to do with my problem? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ospinto wrote: > > Hi, > > Can someone help me with this problem? > > setcookie('myCookie',"blah"); >

[PHP] set cookie function problem

2005-04-19 Thread Ospinto
Hi, Can someone help me with this problem? setcookie('myCookie',"blah"); works fine. but when i try to set it with an expiry time, it doesn't. setcookie('myCookie',"blah",time()+3600); I have cookies enabled on my browser of course. And the way I know the second statement is not working is cos I'm

[PHP] mod_rewrite and getting url variables

2005-04-12 Thread Ospinto
I used mod_rewrite to change http://www.mysite.com/page/1 to http://www.mysite.com/page.php?id=1 to enable a search friendly url. Everything works fine, except that when I try to get the URL variable ($id) by using $_GET, it doesn't return anything. With http://www.mysite.com/page.php?id=1 it gets

[PHP] Re: header("Location: page.php target=_parent")?????

2005-03-26 Thread Ospinto
use javascript not the header function. "Jacques" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How should I formulate the header function to replace the current frameset > page with a new one? I have tried a combination of header("Location: > page.php target=_parent"); but I get

[PHP] Re: [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Ospinto
while ($tantoData = mysql_fetch_array($tantoResult)) { $tantoEmailArray[] = $tantoData; } now all the values are stored into an array ($tantoEmailArray). to convert an array to a string and join the elements together by a delimiter, use "implode". hence: implode(",",$tantoEmailA

[PHP] Re: How to process a query form with CHECKBOX Please help

2004-12-27 Thread Ospinto
m patient_data where age_group = $ageresult; You might wanna change the "and" to "or". if it's one column in the db that has one value of the age group (young, middle, or old), i think your best bet would be "or". cheers, Ospinto. "S Kumar" <[EMAIL PROT

[PHP] Re: What to do with my array?? Advise needed....

2004-03-04 Thread Ospinto
You are trying to pass the values in the array unto the next page? Well, try the serialize() function. With this you can have a single hidden field with all the values of a huge array stored in it and passed to another page. Hope this helped. "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EM

[PHP] Re: How to convert Function into the variable?

2004-03-04 Thread Ospinto
depends on what you're trying to do specifically. for one thing, if you always want to use the file "people.txt", and have the contents of that file displayed anytime you call $content, then: function output(){ $file=file("people.txt"); foreach($file as $value) { $mycontent.=$value