RE: [PHP] Is There No Hope At All???
| From: | Brian Paulson | Date: | Thu, 24 Aug 2000 15:11:20 +0000 |
| Subject: | RE: [PHP] Is There No Hope At All??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13452@lists.php.net to get a copy of this message | ||
It is you java script that is not working
Try this
place this part at the top
changing the height and width to what you need.
<script language="javascript">
function open_window(url) {
mywin =
window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0
,scrollbars=1,resizable=0,width=380,height=380');
}
</script>
<a href=javascript:open_window('all you information about the horse in here
')">horses name</A>
let me know if that works
Thank you
Brian Paulson
Sr. Web Developer
1-800-279-6397 X207
bpaulson@chieftain.com
*************************
>-----Original Message-----
>From: Ben Ocean [mailto:beno@cnw.com]
>Sent: Thursday, August 24, 2000 9:28 AM
>To: David Newcomb
>Cc: php-general@lists.php.net
>Subject: Re: [PHP] Is There No Hope At All???
>
>
>At 01:12 PM 8/24/2000 +0100, you wrote:
>>Can you show us the generated page?
>
>Essentially, the query generates a page with a list of horses hyperlinked
>with *.php3?blahblahblah...* However, when you click any horse, it
>generates another page with the details of the *last* horse in the
>list. If
>you are interested in helping me further and would like more
>clarification,
>I would invite you to visit this link:
>http://AmericanSaddlebredHorse.com/
>and click *Find a Horse*. Select among the criteria, but *do not* select
>just the color (I've been playing with that one).
>Thank you,
>BenO
>
>
>>----- Original Message -----
>>From: Ben Ocean <beno@cnw.com>
>>To: <php-general@lists.php.net>
>>Cc: <hwg-languages@hwg.org>
>>Sent: Thursday, August 24, 2000 11:11 AM
>>Subject: [PHP] Is There No Hope At All???
>>
>>
>> > Hi;
>> > I *desperately want* this freakin' PHP script to open up a
>new, maximized
>> > window, by communicating in an intelligent and civilized way with
>> > Javascript. As mentioned before, this worked *flawlessly* on another
>> > server, but because some unknown devil has possessed my new server, it
>> > won't work here. Okay, *fine*. If I have to *rework* this
>freakin' script
>> > from scratch, I will, but what the HECK should I do??? I've
>tried pulling
>> > the Javascript out of the *while* statement and calling it from the
>>header:
>> > it don't make no diff. Frankly, I think this is absolutely
>*absurd*, but I
>> > *have* to make it work because the client saw it working once and
>>*insists*
>> > on it working again. Nightmares, nightmares... Here's the
>offensive code,
>> > and any help would really be appreciated.
>> > TIA,
>> > BenO
>> >
>> > elseif ($genderz !=9) {
>> > echo "<span class=\"resultsHeader\"><h1>Here's Your
>>Horses!</h1></span>";
>> > echo "<span class=\"lead\">";
>> > echo "Click on any horse. It will open a new window. To see another
>> > horse from this selection, simply close down that window and you'll be
>> > right back here!</span>";
>> > echo "<span class=\"results\">";
>> > $result = mysql_query("SELECT id, gender, color, name, birth, price,
>> > performance_one, performance_more, height, description FROM
>horse ORDER BY
>> > price");
>> > $total_rows = mysql_numrows($result); $counter = 0;
>$countertwo = 0;
>> > while($counter < $total_rows):
>> > $id = mysql_result($result,$counter,"id");
>> > $genderee = mysql_result($result,$counter,"gender");
>> > $namee = mysql_result($result,$counter,"name");
>> > $coloree = mysql_result($result,$counter,"color");
>> > $pricee = mysql_result($result,$counter,"price");
>> > $birthee = mysql_result($result,$counter,"birth");
>> > $performance_onee =
>>mysql_result($result,$counter,"performance_one");
>> > $performance_moree =
>> > mysql_result($result,$counter,"performance_more");
>> > $heightee = mysql_result($result,$counter,"height");
>> > $descriptionee = mysql_result($result,$counter,"description");
>> > if ($genderee == $genderz) {
>> > ?>
>> > <a href="#a" onClick="horseWindow()">
>> > <script language="Javascript1.2">
>> > function horseWindow() {
>> > newWindow = window.open("Your_Horse.php3?name=<? echo
>> > $namee; ?>&color=<? echo $coloree; ?>&gender=<? echo
>$genderee;
>> > ?>&price=<? echo
>> > $pricee; ?>&birth=<? echo $birthee;
>?>&performance_one=<? echo
>> > $performance_onee; ?>&performance_more=<? echo
>> > $performance_moree; ?>&height=<?
>> > echo $heightee; ?>&description=<? echo $descriptionee;
>> >
>>?>","","toolbar=1,menubar=0,width=800,height=600,scrollbars=1,stat
>us=0,locat
>>ion=0,directories=0,left=0,top=0");
>> > }
>> >
>> >
>> > </script>
>> > <?
>> > echo mysql_result($result,$counter,"name");
>> > echo "</a><br>";
>> > $countertwo = $countertwo + 1;
>> > }
>> > $counter = $counter + 1;
>> > endwhile;
>> > echo "</span>";
>> > if ($countertwo == 0) {
>> > echo "<span class=\"sorry\">I'm sorry, but there are no
>> > horses that
>> > fit your criteria. click the "Back" button on this browser
>>window
>> > and try another search.</span>";
>> > }
>> > }
>> >
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>> > For additional commands, e-mail: php-general-help@lists.php.net
>> > To contact the list administrators, e-mail:
>php-list-admin@lists.php.net
>> >
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>>For additional commands, e-mail: php-general-help@lists.php.net
>>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>