LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-30-2004, 11:20 PM   #1
mahugl
LQ Newbie
 
Registered: Jan 2004
Distribution: Fedora Core
Posts: 5

Rep: Reputation: 0
PHP is not talking to Mysql in Fedora


I have fedora and PHP and Mysql installed and PHP works Mysql works and fedora works all seperately but when I try to access Mysql through PHP nothing happens. I enter information into the fields and they go blank but nothing gets entered into Mysql. I don't get any error messages or anything like that is just goes blank. Is there something that I am missing in the installation. Any help would be appreciated even if you are guessing. Thanks
 
Old 01-31-2004, 12:13 AM   #2
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
I haven't done it myself, but I have seen references to this site:
http://www.linuxhelp.net/guides/lamp/
 
Old 02-03-2004, 01:03 AM   #3
Tafta
Member
 
Registered: Jan 2003
Location: Bandung, Indonesia
Distribution: Mandrake, SUSE, RedHat
Posts: 55

Rep: Reputation: 15
perhaps you have to let php display the error message, search for its configuration in php.ini.
If everything is done correctly (php works, mysql works) but still can't connect to mysql through php perhaps you should reinstall them (still not working? reinstall your linux. Its radical but it works sometime).
If you have better solution, tell us (people who reinstall linux to solve this problem).
 
Old 02-03-2004, 01:11 AM   #4
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
If PHP works, you can add the following to the end of your queries to get errors.

Example Query

mysql_query("Select * From Table) or die(mysql_error());
 
Old 02-03-2004, 04:55 AM   #5
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 32
hi mahugl,

just a quick question - are you embedding your PHP in web pages?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache/PHP not talking to mysql database BorgAssimilator Linux - Software 1 11-11-2005 04:12 AM
PHP 5 wont connect to MySql (fedora spacy2003 Linux - Software 0 02-07-2005 09:31 AM
php 438 and mysql 41 fedora 2 wont talk phoebebright Linux - Software 0 11-02-2004 04:49 PM
MySQL 4 on Fedora can't install php-mysql kennyg Linux - Software 8 09-21-2004 07:54 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM


All times are GMT -5. The time now is 03:03 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration