treyhunsucker
Programmer
Hello,
This is a piece of code from my script:
The problem is that "echo $row[0]" echos "119 N Broadway" and the same thing inside the text box echos "119"
$row[0] echos the a2 information, I also switched everything from $row[0] to $row[a2] and had the same results.
Any Ideas?
This is a piece of code from my script:
Code:
$result = mysql_query("SELECT complete.a2, dn_records.number FROM complete, dn_records WHERE complete.c3=dn_records.number AND dn_records.number='$data1'")
or die(mysql_error());
while($row = mysql_fetch_array( $result )) {
echo $row[0];
echo "<input type=text name=clec_customer value=" . $row[0] . ">";
}
The problem is that "echo $row[0]" echos "119 N Broadway" and the same thing inside the text box echos "119"
$row[0] echos the a2 information, I also switched everything from $row[0] to $row[a2] and had the same results.
Any Ideas?