Not stupid at all. That change made it work perfectly. Thanks a million, you have made me very happy and now I can post what I wanted on the webpages.
Cheers!...
User Profile
Collapse
-
Hello Ronald, thanks for your reply. You have hit the nail on the head, thats exactly what I want to do.
I tried your post and it either displays the error of "no data available" or if I comment out that error line it displays nothing at all with the echo in the areas on the page I want that particular text to show.
Here is the complete connection I used;
[php]session_start() ; //
include_once("i nclude/mysql.inc.php") ;...Leave a comment:
-
Hello nert, thanks for the reply. Yes, i can try to explain a little more.
I have a MySQL database and can display the data in one of the tables fields (the fields in this table are id, fpageName and fContent)
The fpageName stores the page name (example home page) and the corresponding field in that table (fpageContent) stores the text that was entered into the database field using an admin area for that page.
I have...Leave a comment:
-
-
{SOLVED} MySQL query and post
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;
...Code:$myConn = connect_db(); $strSQL = "SELECT * FROM tpages WHERE fPageName='[B]home[/B]'"; $result = mysql_query($strSQL); $row = mysql_fetch_array($result); $strContent
No activity results to display
Show More
Leave a comment: