Jay Blanchard wrote:
> [snip all kinds of stuff]
> <?php
> $query = "SELECT * FROM appl";
> $connection = mysql_connect("linuxsrv", "sameer", "sameer");
> mysql_select_db("rcmms", $connection);
> $result = mysql_query($query, $connection);
> ?>
> I says that mysql_connect
>
> Fatal error: Call to undefined function: mysql_connect()
> in /var/www/html/rcmms/appl.php on line 5
> [/snip]
>
> Try...
> <?php
> $connection = mysql_pconnect("linuxsrv", "sameer", "sameer");
> mysql_select_db("rcmms", $connection);
> $result = mysql_query($query, $connection);
> $query = "SELECT * FROM appl";
> ?>
This is wrong. You can't define a variable _after_ you attempt to use
it in a function.
> Connections first, database selections next, then queries and results. If
> you get an "undefined function" now there is no MySQL support in your PHP
> compile.
As you mentioned, the problem here is that he is lacking support for
mysql in his PHP build.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php