Jump to content

im a beginner. array/form help.


stu_09

Recommended Posts

iv basically got a very simple array

 

$clubs = array(

"1" => "Leeds United",

"2" => "Wolverhampton Wanderers",

                etc etc

 

$points = array(

array(club => "Leeds United", points => "138"),

array(club => "Wolverhampton Wanderers", points => "95"),

                etc etc

 

and iv used a foreach statement to put the data into a table.

 

and now was wondering if it was possible to create a form to change the value of an element in the array.

iv said im beginner so this may not be well explained.

 

thanks

iv basically got a very simple array

 

$clubs = array(

"1" => "Leeds United",

"2" => "Wolverhampton Wanderers",

                etc etc

 

$points = array(

array(club => "Leeds United", points => "138"),

array(club => "Wolverhampton Wanderers", points => "95"),

                etc etc

 

and iv used a foreach statement to put the data into a table.

 

and now was wondering if it was possible to create a form to change the value of an element in the array.

iv said im beginner so this may not be well explained.

 

thanks

 

Is there any database involved with this, or is it just the array?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.