Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001072

RE: [PHP] :( From: Erick Calder (e <email protected>)
Date: 07/29/01

your code works for me. it would be helpful to know how your code doesn't
work. does it pop the window at all?

couple of suggestions: use "onClick" instead of "onclick" - if I recall
correctly case matters in Javascript event names depending on your browser.
also, you don't need to use the "javascript:" specifier within event
handlers. additionally you might want to quote the handler code.

- e

-----Original Message-----
From: LDL Enterprise [mailto:webmaster <email protected>]
Sent: Sunday, July 29, 2001 12:48 AM
To: *PHP-General mail list
Subject: [PHP] :(

     I cannot figure out why this button does not work any suggestions
are appreciated. Thanks.

$table = "inventory";
$sql = "SELECT * FROM $table where category='$category'";
$result = mysql_query($sql);

while ($myrow = mysql_fetch_array($result))
{
printf("<tr><td border=1 bgcolor=#A0AAB9><font face=Lucida Sans Unicode
size=4><form><input type=button value=%s
onclick=javascript:window.open('view_pict.php?picture_id=%s.gif','MyWind
ow','width=450,height=600,menubar=no,scrollbars=yes,toolbar=no,location=
no,directories=no,resizable=yes,top=0,left=0')></form></font></td></tr>
\n", $myrow["product"], $myrow["product"]);
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>