Skip to content
  • Home
  • About
Search
Close

Problems on Information and Computer Technology

Masalah ICT dan solusinya…ada disini!

Month: January 2015

Store mysql query result in an array

January 7, 2015 ictproblemsLeave a comment

This example is to store id’s from event table into an array variable.

$finals = mysql_query(“SELECT id FROM event WHERE efinal=’Y'”);

while ($rowfinal = mysql_fetch_array ($finals)) {
$arr_final[] = $rowfinal[‘id’];
}

Posts navigation

Newer Posts

Categories

RSS OTO.DETIK.com

  • An error has occurred; the feed is probably down. Try again later.

RSS

  • RSS - Posts

Meta Tags

  • Create account
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Posts Calender

January 2015
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Dec   Feb »
Create a free website or blog at WordPress.com.
Back to top
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Problems on Information and Computer Technology
    • Already have a WordPress.com account? Log in now.
    • Problems on Information and Computer Technology
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started