Hi,
This is a very simple one (but not simple enough that i understand it..) that i just cannot work out or find out on t'web how to do it either.
All i need to do is to display a price on a page that relates to a field in my database. It has to be real easy i'm sure.
For instance, i have a 22 row database that consists of two columns, headed 'Brofax' and SPrice'. In the Brofax column are the part numbers - such as FAXT104U1, and in the SPrice is the price, in this case 54.00.
What i'm desperately trying to do is to write my page, and in one of the html table fields, show the price for that particular product. So taking the above as an example, i want the php code to query the database for that part number and display the correct price.
In the html it might look like this;
<table>
<tr><td><font color="blue">Brother FAXT104U1</font></td></tr>
<tr><td><b>php code</b></td></tr>
</table>
So that the php code looks at the database for the price for that part number and displays it, so on the page it'd look something to this;
Brother FAXT104U1
54.00
i'm sure it's a simple bit of php code, but i just don't know how! If anyone can show me the light on this i'd be very grateful.
Cheers!
Ash