-
04-07-09 #1
Registered User
- Join Date
- Jul 2008
- Location
- at home
- Posts
- 103
- Thanks
- 6
- Thanked 0 Times in 0 Posts
mysql php help
Hi,
when I try to connect to mysql I get this error on the page
Fatal error: Call to undefined function mysql_connect() in \\web-wfwin\soho\footballonthetv.co.uk\http://www.affiliates4u.com/forums/w...\cdsbought.php on line 17
here is the test page itself, http://www.footballonthetv.co.uk/cdsbought.php
I had a look at the php.ini to check the extension=php_mysql.dll was un coloned and it seems ok, any ideas?
Emma
-
04-07-09 #2
Online shopping rocks!
- Join Date
- Nov 2004
- Location
- England
- Posts
- 2,350
- Thanks
- 43
- Thanked 140 Times in 124 Posts
You have referenced a function in your code on that line, which means the actual function must be stated somewhere in the PHP file. Functions normally go at the top of the page, or are often in a separate inc-functions.php file, which gets included in your script. A function looks like this:
function YourFunctionNameHere() {
...
}
Ask at phpfreaks.com if you need more help or see:
PHP Tutorials
Rgds
-
04-07-09 #3
Registered User
- Join Date
- May 2009
- Posts
- 21
- Thanks
- 1
- Thanked 2 Times in 1 Post
Hi Emma,
this error normally means that PHP has not been compiled with mysql support. (mysql.so extension) this does not come with PHP or MySQL distributions on certain platforms. You can check this by uploading this script to your server:
Post the link here and I'll have a look for you.PHP Code:<?php
phpinfo();
exit();
?>
Cheers
James
-
04-07-09 #4
Registered User
- Join Date
- Jul 2008
- Location
- at home
- Posts
- 103
- Thanks
- 6
- Thanked 0 Times in 0 Posts
thanks accelarator I will take a look at that.
James www.footballonthetv.co.uk/testphp.php
it's coming up
No input file specified.
???!!???
-
04-07-09 #5
Registered User
- Join Date
- May 2009
- Posts
- 21
- Thanks
- 1
- Thanked 2 Times in 1 Post
-
04-07-09 #6
Registered User
- Join Date
- May 2009
- Posts
- 21
- Thanks
- 1
- Thanked 2 Times in 1 Post
This might also help:
No input file specified | IIS Aid
-
04-07-09 #7
Registered User
- Join Date
- Jul 2008
- Location
- at home
- Posts
- 103
- Thanks
- 6
- Thanked 0 Times in 0 Posts
This is what I can see
The root of the PHP pages, used only if nonempty.
and yes it is on a windows server
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root =
; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =
; Directory in which the loadable extensions (modules) reside.
extension_dir ="C:\Program Files\PHP\ext"
-
04-07-09 #8
Registered User
- Join Date
- May 2009
- Posts
- 21
- Thanks
- 1
- Thanked 2 Times in 1 Post
Hi Emma,
Is this a local/development or production server?
If it's local, you can play around with the php.ini settings and see if that makes a difference..
Refer to this website and comments to find out the different settings you can try
No input file specified | IIS Aid
Hope this helps..
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Best PHP & MySQL
By Stellar in forum ProgrammingReplies: 13Last Post: 28-07-06, 05:27 PM -
MYSQL Help Please
By SmallBizSoftware in forum Affiliate Marketing LoungeReplies: 2Last Post: 21-03-06, 11:28 PM -
MySQL Help!
By ukyellowpage in forum ProgrammingReplies: 17Last Post: 19-02-05, 12:12 PM -
CSV -> MySQL
By shanesdomainuk in forum ProgrammingReplies: 3Last Post: 23-11-04, 01:08 PM -
MySQL
By Stuart in forum ProgrammingReplies: 8Last Post: 18-04-04, 09:22 PM


LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks