Thursday 16 August 2012

Day 4/10 Fetching data from table - Learn PHP in 10 days

Fetching data from a table is pretty easier.

How to fetch data from mysql table

Here are the important stept

  • connect to mysql server
  • select db name
  • write sql to select data
  • execute mysql_query() function 
  • save returned value in a variable/array
  • read values from the array with foreach loop

No comments:

Post a Comment