Hello, can someone tell me how can I output all fields of a row in a mysql db using php? and then write.

Recommended Answers

All 2 Replies

Member Avatar for diafol

This is lesson 101.

The mysql query you are looking for looks something like this

mysql_query("SELECT * FROM `tablename` WHERE `column_name`='value'");

If you are new to this then I would strongly suggest following a few tutorials to do things like insert/update/delete data from a database and most importantly to select data from a database. Also while loops you will find very handy for databases. You can find plenty of tutorials at http://www.tizag.com/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.