Re: [PHP-DB] Session start

2010-05-14 Thread Luiz Alberto
regards, Luiz Alberto On Fri, 2010-05-14 at 17:47 +0100, Barry Zimmerman wrote: I have a problem with my system, not sure how I can fix this one. A user has a log in page and takes them to different pages, now each of these pages has a check to make sure they are logged in with the following

Re: [PHP-DB]how to handle exception in php

2010-05-02 Thread Luiz Alberto
Dear Bavithra, I would suggest you the following solution $sql = SELECT x FROM y; $rs = mysql_query ($sql) $num = mysql_numrows($rs); while ($i $num){ z = mysql_result($rs, $i, 'x'); $i++; } I hope that above solution help you. Luiz Alberto On Sun, 2010-05-02 at 10:56