Hello John,
Thanks, I've modified my code, and the solution is very simple
function get_dbfield_data(){
$conn=dbconn(); // mysql connection function
$result=mysql_query("SELECT Field1,Field2 FROM table_name WHERE Condition);
$row=mysql_fetch_array($result);
return $row;
}
// End function
- Original Message -
From: "Erick Wellem" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 6:44 AM
Subject: [PHP-DB] Retruning an array from a row
> Hello All,
>
> How can I return and print an array from a user defined functi
Hello All,
How can I return and print an array from a user defined function from
a database from a row like this, *just one row*, but it contains more
than 1 columns:
+++
| Field1 | Field2 |
+++
| Data1 | Data2 |
+++
I want the output will be: Dat