First this line:
PHP Code:
$q = "select barang, warna from table1" where barang='meja'";
remove the " after table1. Now this line:
PHP Code:
$q2 = "select barang, warna, harga, jumlah from table2 where where barang='{barang}' and warna='{warna}'";
Never actually gets used, $q2 gets replaced later on with:
PHP Code:
$q2 = str_replace($before, $after, $child_query);
__________________
PHP Code:
<?php echo "Hello World"; ?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
|