Re: [PHP-WIN] Dynamically update mysql field

2007-05-21 Thread bedul
u mean like this?? $id=mysql_result($result,$i,"ID"); while($temp = mysql_fetch_array($result)){ foreach($temp as $varNm =>$varVal){ $$varNm =$varVal; } /* put your table code here */ } ?> SOry just gues! - Original Message - From: "sam rumaizan" <[EMAIL PROTECTED]> To

Re: [PHP-WIN] Dynamically update mysql field

2007-05-10 Thread bedul
to alex.. that's always be my line.. asking what source code.. actualy.. that's fine to sam.. in return try this data You can change the information in any cell and submit it to mysql to update the original database. Basically when the user views his/her information he/she s

Re: [PHP-WIN] Dynamically update mysql field

2007-05-10 Thread sam rumaizan
update the data from this form into the MySQL? Aleksandar Vojnovic <[EMAIL PROTECTED]> wrote: Sorry I still don't understand. Do you wish to display/reload the data on some timeout (ala AJAX) or you actually wish to update the data from this form into the MySQL? Aleksander sam rumaizan wro

Re: [PHP-WIN] Dynamically update mysql field

2007-05-09 Thread Dan Shirah
I think what you're asking is how can you have a form pull data from your database, populate the form, but then have fields to the side so the user and update the database based on the user input. Kind of like a "Change my personal information" page. I would do it like this: 1. Write your quer

Re: [PHP-WIN] Dynamically update mysql field

2007-05-09 Thread Aleksandar Vojnovic
Sorry I still don't understand. Do you wish to display/reload the data on some timeout (ala AJAX) or you actually wish to update the data from this form into the MySQL? Aleksander sam rumaizan wrote: *Copy and paste my code in your editor and run it then you will understand what I need* *<-

Re: [PHP-WIN] Dynamically update mysql field

2007-05-09 Thread Alf Stockton
sam rumaizan wrote: Copy and paste my code in your editor and run it then you will understand what I need Why do all your field definitions contain 'name="update"' ? -- Regards, Alf Stocktonwww.stockton.co.za Fame is a vapor; popularity an accident; the only earthly certainty i

Re: [PHP-WIN] Dynamically update mysql field

2007-05-09 Thread sam rumaizan
Copy and paste my code in your editor and run it then you will understand what I need data You can change the information in any cell and submit it to mysql to update the origina

Re: [PHP-WIN] Dynamically update mysql field

2007-05-09 Thread Aleksandar Vojnovic
Of course it can be done, but please be more specific about what you wish to achieve. Aleksander sam rumaizan wrote: Dynamically update mysql field I have a function that will populate the table cells (TD) with data (information) from mysql database. What I need to do is to allow the

Re: [PHP-WIN] Dynamically update mysql field

2007-05-09 Thread Alf Stockton
sam rumaizan wrote: Dynamically update mysql field I have a function that will populate the table cells (TD) with data (information) from mysql database. What I need to do is to allow the user to update the cell information (information was pulled from mysql database) from the table cel