Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 21st May 2007, 18:11
Ghose Sumon Ghose Sumon is offline
Junior Member
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Everyone,

My Organization is currently using Squirrelmail server. Now We are having some requirement of adding some additional info to the existing MySql database but in separate table.Now we r trying to customise some part of the code but facing the database connectivity problem. we r not able to access the database from the PHP code using Mysql_connect() function as the current system hides the database n connects using some different configuration.so please anyone help us to solve this issue..if possible provide the code also for the same.

Thanking You,
Sumon Ghose
Reply With Quote
Sponsored Links
Old 21st May 2007, 22:41
sjau sjau is offline
Local Meanie
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 Posts

Please do not use CAPITALS in the topic header. This is considered as shouting and it's not polite.

A very simple code snippet of accessing a mysql-db through php is this:


$username = ""; // Username for database here
$password = ""; // Password for database here
$db_host = "localhost"; // DB Server
$db_name =  ""; //name of your database here

// Connect to DB
        or die("Unable to connect to SQL server!");
        or die("Unable to select database!");

Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure PHP with MySQL ???? lipp9000 Installation/Configuration 12 8th April 2010 15:39
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 16:44
virtual mail boxes setup satimis Server Operation 3 25th January 2007 19:32
ubuntu ispconfig joomla .htaccess steve1084 General 8 6th January 2007 16:55
PHP & MySQL working, but AREN'T WORKING???? lipp9000 Installation/Configuration 4 21st July 2006 18:01

All times are GMT +2. The time now is 09:15.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.