Jump to content

php code to retrive data from the table and show in browser???


naveenbj

Recommended Posts

Hello Friends,

 

here is my question so is anyonecan help me will be highly appriciated!!

 

How to write php code to retrive data from the table and show in browser

---------------

 

In this question what i hav is

# I have one form and im able to send data in mysql table.

 

Nj

 

well you will need something like

 

$result = mysql_query( "
SELECT * 
FROM `table name` 
") 
or die('Query failed. ' . mysql_error());
while($row = mysql_array($result)
{
$a = ['database_feild']
}
echo $a

 

Thanks for reply!!

one simple and foolish question if you dont mind that i had a similar script  but i jst want to know about field??

I mean what fields i have to mention and how .If you can place any example  for me it would be a vry gd help for me.

--------------

Regards,

Nj

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.