[PHP] control browser with a href tag

2007-12-18 Thread Hiep Nguyen
hi friends, i have two pages: list.php and update.php list.php will have a hyper link that when click on, it will open a new window for user to update info. once user clicks update button on update.php page, i want to close update.php and return to list.php. however if user doesn't click

Re: [PHP] control browser with a href tag

2007-12-27 Thread Hiep Nguyen
Warren Vail [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i have two pages: list.php and update.php list.php will have a hyper link that when click on, it will open a new window for user to update info. once user clicks update button on update.php page, i want to close

[PHP] string vs number

2008-02-05 Thread Hiep Nguyen
hi all, i have this php statement: ? if($rowB[$rowA[0]]=='Y') {echo checked;} ? debugging, i got $rowA[0] = 54, but i want $rowB[$rowA[0]] = $rowB['54']. is this possible? how do i force $rowA[0] to be a string ('54')? thanks t. hiep -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] generate xls file on fly

2008-02-08 Thread Hiep Nguyen
On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen fwrite to the server? my goal is to have a link after the table and user can click on that link and a save window pop up to allow user to save to local disk. Yes - have

Re: [PHP] generate xls file on fly

2008-02-08 Thread Hiep Nguyen
On Fri, 8 Feb 2008, Jason Pruim wrote: On Feb 8, 2008, at 10:14 AM, Hiep Nguyen wrote: On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen fwrite to the server? my goal is to have a link after the table and user can

[PHP] generate xls file on fly

2008-02-08 Thread Hiep Nguyen
hi friends, i have a php page with the following logic: html head titleDownload/title /head table trtdTitle/tdtdAuthor/td/tr ? $sql = select title,author from book where title != null and author != null; ? ? $rs = mysql_query($sql) or die(mysql_error()); ? ? while($row =

Re: [PHP] generate xls file on fly

2008-02-11 Thread Hiep Nguyen
On Fri, 8 Feb 2008, Jason Pruim wrote: On Feb 8, 2008, at 10:14 AM, Hiep Nguyen wrote: On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen fwrite to the server? my goal is to have a link after the table and user can

Re: [PHP] generate xls file on fly

2008-02-14 Thread Hiep Nguyen
On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: let say that user searched and found 10 records, in the meantime, other users may change any of these 10 records, so if we saved mysql statement and re-run mysql statement again, the result might be different. to prevent this problem

Re: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Hiep Nguyen
On Mon, 18 Feb 2008, Graham Cossey wrote: I was wondering if someone could offer some advice please. I'm being sent data in tab delimited files which I'm trying to split into smaller files and convert to comma delimited using PHP. Now, I can replace the tabs with commas and opening the

Re: [PHP] Help on running external command

2008-02-20 Thread Hiep Nguyen
On Wed, 20 Feb 2008, Mário Gamito wrote: Hi, I need to run an eternal command from a PHP page. My code is: $username= 'lixo'; $username = 'lixo'; exec('su - vpopmail -c /var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/ . $username'); try: exec('su - vpopmail -c

Re: [PHP] setcookie

2008-03-12 Thread Hiep Nguyen
On Wed, 12 Mar 2008, Tim Daff wrote: Hi, I am learning PHP, I am trying to set a simple cookie: html head titleCookies/title /head body ?php setcookie('test', 45, time()+(60*60*24*7)); ? /body /html Firefox is returning

Re: [PHP] validating textarea using php

2008-05-13 Thread Hiep Nguyen
On Tue, 13 May 2008, Sudhakar wrote: hi i need to validate textarea of a html form using php textarea name=comments cols=26 rows=3 id=comments?php echo($comments);?/textarea presently my php code to validate the text area is if($comments == ) { $error.=brPlease enter your comments; } with