> Hi,
> How could I retrieve data from MySQL and put it to data array? here is
example
>
> Table Sale
> Field1 --> Date
> Field2 --> Sale Amount
> -----------------------
> Date Sale Amount
> 1/1/2001 1000
> 1/2/2001 2000
> 1/3/2001 3000
>
>
> $data_array=array (
> array('1/1/2001',1000),
> array('1/2/2001',2000),
> array('1/3/2001',3000)
> )
> Which command I need to use in PHP?
>
> SF

have a look here:
http://www.php.net/manual/en/ref.mysql.php

mysql_fetch_row()
mysql_fetch_assoc()
mysql_fetch_array()

jason




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

  • array Sommai Fongnamthip
    • Jason Brooke

Reply via email to