Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP config calls other config that displays the page??
Old 12-27-2007, 02:02 PM PHP config calls other config that displays the page??
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
I have a mysql database, and i need to make the config folder a varible - But i am a bit confussed as i am not sure if this can be done.
My code:
PHP Code:
<?
$hostname 
'localhost'
$mysql_user='USERNAME'
$mysql_pass='PASSWORD'
$mysql_database='DATABASE';
 
$admin_username 'USER'////////  ADMIN PASSWORD
$admin_password 'USERPASS';  ////////  ADMIN USERNAME
 
$tableCALENDAR 'webcalendar_data';
$tableSETTINGS 'webcalendar_settings';
////////////////////
////////////////////
////////////////////
Now I need to make the first 4 lines a varible, but when i did this i then put in the new config part so the pc would no what database to use. But then the origenal page didnt work.

I havent explained this very well - but if any one can help that would be great.
Rachel
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
 
Register now for full access!
Old 12-28-2007, 02:54 AM Re: PHP config calls other config that displays the page??
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Quote:
Originally Posted by coldturkey View Post
I havent explained this very well - but if any one can help that would be great.
Rachel
Well, your right about that part
Could you explain a little better? You want to have the first 4 lines in a different config file?
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to PHP config calls other config that displays the page??
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20669 seconds with 12 queries