Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by breeze351
at 2024-01-06 12:27:03
Point:500 Replies:5 POST_ID:828871USER_ID:11780
Topic:
Hypertext Markup Language (HTML);;PHP Scripting Language
I'm sure someone has done this.
What I need to do is be able to connect to 2 different MySql databases on the same site. The php/html is going to be the same. My partner want's to change the data in his side of the site.
It's set up to load different databases on different servers and this does work.
Is there a way that I can get the info from the header on the web browser and then determine what data base that I should open?
What I need to do is be able to connect to 2 different MySql databases on the same site. The php/html is going to be the same. My partner want's to change the data in his side of the site.
It's set up to load different databases on different servers and this does work.
Is there a way that I can get the info from the header on the web browser and then determine what data base that I should open?
Author: breeze351 replied at 2024-01-07 11:49:59
I haven't resolved this yet.
There is one web site with a sub under it:
"langsystems.net"
"amelia.langsystems.net"
I need to change the database name to "amelia".
There is one web site with a sub under it:
"langsystems.net"
"amelia.langsystems.net"
I need to change the database name to "amelia".
Expert: duncanb7 replied at 2024-01-06 13:48:47
Thanks for your reply and explain. glad to see you have solved your question.
When or after I click submit button for my first reply post, this post has already
closed and solved. sorry I was late to answer your question. Hope help you
in next time.
have a nice day
Duncan
When or after I click submit button for my first reply post, this post has already
closed and solved. sorry I was late to answer your question. Hope help you
in next time.
have a nice day
Duncan
Author: breeze351 replied at 2024-01-06 13:38:24
I've read it the manual. I can get the end of the url. What it need to do is the the front of it.
IE:
http:\langsystems.netindex.php
or
http:\amy.langsystems.netindex.php
If I can get the line from the url, I can parse between the "http\" and the first period and get "amy" and then open the correct database.
IE:
http:\langsystems.netindex.php
or
http:\amy.langsystems.netindex.php
If I can get the line from the url, I can parse between the "http\" and the first period and get "amy" and then open the correct database.
Expert: duncanb7 replied at 2024-01-06 13:12:54
Somehow I think in other way, when you do http access on browser
and you have already known what url you want to type or go on browser.
There is a lot of $_SERVER variables you might need, please read this
http://www.php.net/manual/en/reserved.variables.server.php
Please tell us more detail of your question, so we could help you on exectly what you need.
Duncan
and you have already known what url you want to type or go on browser.
There is a lot of $_SERVER variables you might need, please read this
http://www.php.net/manual/en/reserved.variables.server.php
Please tell us more detail of your question, so we could help you on exectly what you need.
Duncan
Accepted Solution
Expert: Ray Paseur replied at 2024-01-06 12:31:20
500 points EXCELLENT
If you mean "Can PHP detect which URL was used to access a common PHP script set?" The answer is yes. Look in $_SERVER['HTTP_HOST']