Hi, I created database called "Homepage", and i created table called "homenews" inside of "homepage" database.
I also created two column which is "News_Name" and "News_URL".
I use dreamweaver and is works great when i retreive from databse, but i want to change to have link, let say first colmn for "news_name i put cnn, and second colmn for News_URL i put www.cnn.com, my question is that how i can write php code to create url link of "www.cnn.com" on the text called "cnn" when retreive from database!
is this is correct code!
<?php echo '<a href="'.$row_HomeNews[News_URL].'">'.$row_HomeNews[News_Name ].'</a>'; ?>
if so when why I'm getting errors!
AM



Reply With Quote

Bookmarks