I am trying to find the best way to combine 2 columns in a MySQL Db call into
one by using an array. Iíve tried array_push, implode, explode, array_merge and
extract all with no luck. I feel I am close but have read all I can and still am
hitting a dead end.
I need to select a Title and Alternate title from a table, and then list the
results by BOTH the Title and Alternate Title. So the list that gets echoed out
would be a combined array of the Title column and the Alt_Title column. The idea
is to have each item listed twice, once by itís title and once by itís alternate
I can not find a way to merge the 2 separate columns.
Hereís what Iím trying to do:

$result = mysql_query("SELECT Title, Alt_Title, Size, Price, More, Comment
ORDER BY title");

//magically combine the title & alt_title into on nice variable called
//or whatever
while ($db = mysql_fetch_array($result))
echo ď$TitleĒ;

Reply via email to