Welcome to WebmasterWorld Guest from 22.214.171.124
I am a php/mysql beginner.
My design: a box with one FAQ gives the option to read "more", upon clicking "more" a new resized (smaller) browser window opens to display all FAQ.
I found some code that does the resizing. It works well outside the php code, yet upon integrating it into the php code it doesn't work. "more" displays fine, yet nothing happen after clicking it. Is it maybe the ";" within the resizing code snippet? Your help is so very much appreciated.
$query = "SELECT question,answer FROM faq WHERE faqid=1";
$result = mysql_query($query) or die('Sorry, could not get faq at this time');
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
echo"<p class=\"last\"><span>A.:</span> $answer<br>
<a href=\"content/faq.php\" onClick=\"popup = window.open('content/faq.php', 'PopupPage', 'height=200,width=500,scrollbars=yes,resizeable=no'); return false\" target=\"_blank\">more >></a></p>\n";