LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-19-2004, 05:57 PM   #1
got_nix
Member
 
Registered: Oct 2004
Location: Jamaica
Distribution: Ubuntu 6.0.6 (Dapper Drake)
Posts: 59

Rep: Reputation: 15
Angry L.a.m.p Problems


K I did my reseach got all the required stuff, installed apache2, mysql and php made sure they all start up each timei boot up fromt he runlevel in yast. and it sucessfully parses php scripts heres where the headache comes in, i'm unable to use myql functions, for example here a script that i use to create a connection to a dbase and return the connection.

PHP Code:
function connectToDatabase() {
    
$conn=mysql_connect("localhost""root""");
    if(!
mysql_select_db("minimailer"$conn)) {
        return 
FALSE;
    }
    return 
$conn;

this returns the error

Code:
Fatal error: Call to undefined function: mysql_connect() in /srv/www/htdocs/minimailer/functions.php on line 3
now the funny thingi realizes is i have phpMyAdmin installed and it is able to access he mysql dbase fine and create new tables etc [ the usual stuff you would do with MyAdmn ] now what I'm thinking is if phpMyAdmin can do it why cant I. what would be the reason that i can do normal phpfuncctions but as long as it has to do with mysql functions it doesnt work.

i thought about the mysql packages so i installed the one that i saw related directly to php which in yast was php-mysql. so what could be ma problem. i've been slaving over this all day. Help will certainly be appreiciated.
 
Old 12-19-2004, 06:11 PM   #2
got_nix
Member
 
Registered: Oct 2004
Location: Jamaica
Distribution: Ubuntu 6.0.6 (Dapper Drake)
Posts: 59

Original Poster
Rep: Reputation: 15
oh i can t believe i left this out. i'm using suse 9.1
 
Old 12-25-2004, 12:52 PM   #3
got_nix
Member
 
Registered: Oct 2004
Location: Jamaica
Distribution: Ubuntu 6.0.6 (Dapper Drake)
Posts: 59

Original Poster
Rep: Reputation: 15
thank god that i'm not a moron cause apparantly there was no hope help for me here pertaining to lamp devel. i was able to fix my problem though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ethernet Adsl Modem Driver Problems And Install Problems... akhilnair Linux - Hardware 12 11-28-2004 08:19 AM
cisco 350 wireless problems and suse x-server problems incognito9 Linux - Wireless Networking 5 10-14-2004 07:53 AM
Problems with OSS while trying to avoid problems in ALSA (scratchy sound) GT_Onizuka Linux - General 1 02-05-2004 11:55 PM
Problems, problems, problems. Lets start with the soundcard Kre8ive Linux - Newbie 5 08-07-2003 01:20 AM
Problems, problems, problems. Lets start with the ES 1868 AudioDrive Kre8ive Linux - Newbie 1 08-06-2003 07:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration