I know there's a way to do this, but I'm not sure what....
I want to select information from a table in mySQL, only 2 fields in the table, `name`, and `data`, and I want it to repeat a piece of code until there's none left.... Hard to express my idea...
[poorexamplephp]
global $count
(Insert code looping until it's read all of table `query`)
$name = (insert way to call the current row's `name`field)
$dat = insert way to call the current row's `data`field)
echo $name;
echo "=";
echo $dat;
$count ++
(insert end of loop stuff)
[/poorexamplephp]
A
||
||
That... What should be `insert` 'ed?
Also, how would I query 2 out of 3 fields, or only 1?