Hi i'm new to php. I've 3 MySQL table and each have same column. i want to display selected data from 3 tables.every table have 50 column. i want to display only selected column.
$command="SELECT * FROM houses WHERE apartment = 2";
$result = mysql_query($command, $connection);
thanks for your reply but i don't want to select all the columns. I want to SELECT(mysql query) selected column only. user select apartment, name,town then only these field will SELECT in sql query.
thanks for your reply but i don't want to select all the columns. I want to SELECT(mysql query) selected column only. user select apartment, name,town then only these field will SELECT in sql query.
ok:
PHP Code:
$command="SELECT * FROM houses";
$result = mysql_query($command, $connection);
PHP Code:
// Loop through the results
while($row = mysql_fetch_array( $result )) {
echo "<p>;
echo $row['town'];
echo "</p>
}