Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] fatal errror. From: Barry Voeten (barry <email protected>)
Date: 07/16/98

Lars Göransson wrote:
>
> Is there anyone that got a workin script to connect to mysql server. I
> cant figure out what im doing wrong.
>
> Right noe im using this script
>
> ----------
>
> <?php
>
> $mysql_connec($host:3306$user,$secret );
> $result = mysql("demo2","SELECT Namn, Efternamn from Adressregister");
> echo "<TABLE BORDER = 10 CELLPADDING = 2>";
> $total_rows = mysql_numrows($result); $counter = 0;
> echo "<TR><TD><B>Efternamn/B></TD><TD><B>Namn</B></TD></TR>";
> while($counter < $total_rows);
>
> ?>
>
> When im using this, the result is:
>
> Fatal error: Call to unsupported or undefined function () in
> /www/test/lars/sql_10.phtml on line 3

why not $c=mysql_connect(..)
with a T. And the use $c connection when wuarying.

barry

>
> Regards
> Lars
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.tryc.on.ca/php3.html

-- 
+++++++++++++++++++++++++++++++++++++++++
+  Barry Voeten barry <email protected> +
+  Netland Internet Services  Amsterdam + 
+  Web Engineering  Design  Hosting     +
+  www.netland.nl + 31 (0) 20 6943664   +

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive: http://www.tryc.on.ca/php3.html