[PHP] Re: Newbie lost in array

2003-07-22 Thread sven
hi tony,
how is your table structured? is is a csv-file, a database, a html-table,
...?
ciao SVEN


Tony Crockford wrote:
 I've got brain fade today and am in need of a clue, please accept
 apologies if this is obvious.

 I have a data table:

  P_ref P_code P_Value

 I want to read the data out where P_ref='somevalue' and create
 variables for the content of P_Code with a value of P_Value

 what should I be looking for in the manual?

 TIA

 Tony



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Newbie lost in array

2003-07-22 Thread Tony Crockford
 
 hi tony,
 how is your table structured? is is a csv-file, a database, a 
 html-table,
 ...?
 ciao SVEN

Ooops!

MySQL sorry

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Newbie lost in array

2003-07-22 Thread sven
then try:

$query = 'select * from `yourTable` where `P_ref`=somevalue';
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result))
{
$rows[] = $row;
}

var_export($rows);

hth SVEN

Tony Crockford wrote:
 hi tony,
 how is your table structured? is is a csv-file, a database, a
 html-table,
 ...?
 ciao SVEN

 Ooops!

 MySQL sorry



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php