mysql_select()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
uniquneo
Forum Newbie
Posts: 10
Joined: Thu Aug 22, 2002 2:10 pm
Location: Portsmouth
Contact:

mysql_select()

Post by uniquneo »

This is the error im getting:

Fatal error: Call to undefined function: mysql_select() in /users/iwebland.com/cheatsonline/php/Sessionlogin/sessionauth.php on line 23

what do i do to get rid of this iam confused

Thanks get back to me on my email niall_hatton@hotmail.com

help much apprecaited

Or MSN

Niall Hatton thankyou webmaster at http://www.tipsandcheats.co.uk
DSM
Forum Contributor
Posts: 101
Joined: Thu May 02, 2002 11:51 am
Location: New Mexico, USA

Post by DSM »

- :oops: -
Last edited by DSM on Thu Aug 22, 2002 2:57 pm, edited 1 time in total.
DSM
Forum Contributor
Posts: 101
Joined: Thu May 02, 2002 11:51 am
Location: New Mexico, USA

Post by DSM »

looks like you are calling a non-exisistant function somewhere around line 23. Thats the really cool thing about Php, it will tell you where you screwed up, just look for it. :wink:
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Make a test file of

Code: Select all

<?php echo phpinfo();?>
Check for a block about 1/2 way down the page labelled MYSQL. It sounds to me like your PHP wasn't compiled with MySQL support.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

if so, you have to recompile your php (if possible) with --with-mysql[=DIR]
--with-mysql[=DIR]
Include MySQL support. DIR is the MySQL base directory. If unspecified, the bundled MySQL library will be used.
so, if uncertain try --with-mysql
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Um... I don't think (double checks the manual, yup) PHP has a mysql_select() function? Maybe you are thinking mysql_select_db() or mysql_query()
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

DOH - anybody knows a good oculist? 8O
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post by mikeq »

volka wrote:DOH - anybody knows a good oculist? 8O
Jesus, anybody know a good dictionary. :D
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

:oops: I never will use again the dictionary I got in school.
Is it a least old fashioned or complete nonsense?

"Ah! I will not buy this tobacconist's, it is scratched." :?
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

no function called mysql_select in PHP... :evil:
Post Reply