On 08-Sep-05, at 2:54 PM, mbranco1975 wrote:
> I made a script (form) to post new data to mysql table, but when i saw
> the records in the table, i can't see the last record, only when i
> force the refresh page, the new record appera.

You probably have fields sharing a common name. The same logic as  
variables would apply to it.

So ,

$a=1;
$a=5;
echo $a; // 5, all values other than the first are lost.

To solve the problem, use unique names for form elements. If you need  
to group elements with a common name, then append the form element  
name with []. This would indicate the field element would store an  
array of values.


Peace,
Shoan.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/CefplB/TM
--------------------------------------------------------------------~-> 

The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to