Re: php3 / php4
| From: | Marc Dondlinger | Date: | Sun, 19 Nov 2000 13:48:23 +0000 |
| Subject: | Re: php3 / php4 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26131@lists.php.net to get a copy of this message | ||
Hi again
I found out what the problem was . Due to a missing } it works again
but i got another wicked php error now ..
Warning: 1 is not a valid MySQL-Link resource in /web/virtual/quake/www/index.php on line 121
I don't know what it means , since my code was perfectly working with php3 ...
This error comes up on different places , like .. on my frontpage it doesn't come up like it
does on another php page where it reads out the same stuff ...
here's the code :
--------------------
<?php
mysql_connect("127.0.0.1", "highpwr", "q1w2e3") or
die("Couldn't connect to database.");
mysql_select_db("quakebase");
$result = mysql_query("SELECT * FROM internationallinks ORDER BY linkname ASC");
$number = mysql_numrows($result);
$i = 0;
WHILE ($i < $number){
$data = mysql_fetch_array($result); ?>
- <A href="<?php echo $data
["linkurl"]; ?>" target=_blank><?php echo $data ["linkname"];
?></A><br>
<?php $i++; } mysql_close(); ?>
--------
thanks
Marc Dondlinger (aka HiGhPwR)
highpwr@quakeXtreme.com / highpwr@quake.lu
http://www.quakeXtreme.com / http://www.quake.lu
----- Original Message -----
From: Marc Dondlinger
To: php-general@lists.php.net
Sent: Sunday, November 19, 2000 12:26 PM
Subject: php3 / php4
Hello Php coders
I'm sorry but i really need your help. I wrote my homepage in php3 code andf it was working
properly but now my webserver got updated from php3 to php4 and my page is not working anymore at
all.
I get now a "parse error on line xxx" but xxx represents no line at all , it's the
last line of my html code where no php is in at all ...
Any ideas what it could be ?
thank you very much
Marc Dondlinger (aka HiGhPwR)
highpwr@quakeXtreme.com / highpwr@quake.lu
http://www.quakeXtreme.com / http://www.quake.lu