Hello guys
I currently have established a connection to a MySQL database and succesfully display the text from the table into a field on a .php page using this
[PHP]<?=$strContent? >[/PHP]
and this as the db query;
Currently I have these in the FPageName table in the MySQL database ;
home
about
referral
events
faq
The text in the field fContent for home displays nicely however I also would like to display a second pages fContent value which is in the same table (tPageName) but its in the field called referral
I have tried various connection strings but cant figure it out. I get one or the other to display but not both. Can anyone help me. I am not that good obviously with MySQL database queries and displaying data.
Thanks in advance!
I currently have established a connection to a MySQL database and succesfully display the text from the table into a field on a .php page using this
[PHP]<?=$strContent? >[/PHP]
and this as the db query;
Code:
$myConn = connect_db(); $strSQL = "SELECT * FROM tpages WHERE fPageName='[B]home[/B]'"; $result = mysql_query($strSQL); $row = mysql_fetch_array($result); $strContent = $row['fContent'];
home
about
referral
events
faq
The text in the field fContent for home displays nicely however I also would like to display a second pages fContent value which is in the same table (tPageName) but its in the field called referral
I have tried various connection strings but cant figure it out. I get one or the other to display but not both. Can anyone help me. I am not that good obviously with MySQL database queries and displaying data.
Thanks in advance!
Comment