Hello,
my first post to the forum....
My database:
CREATE TABLE tblcd (
code INT( 6 ) NOT NULL AUTO_INCREMENT,
price VARCHAR( 8 ) ,
PRIMARY KEY ( code )
);
My form:
<input type="text" name="code1" size="20">
<input type="text" name="code2" size="20">
<input type="text" name="code3" size="20">
When submitted, I'd like to query the database code rows and return the price for each form field.
is this going anywhere?
$query = "SELECT price FROM tblcd WHERE code = ".$_SESSION['barcode'];
$result = @ ($query);
There should be a loop going all over the code fields???
thanks....