TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 488
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 465
  • Total: 465

Connection ID

Started by fenris_w0lf, February 05, 2006, 10:29:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fenris_w0lf

In what (if any) TP/SMF variable do I find my connection id to the mysql database ?

Would be used in something like:

Quote$result_id = mysql_query ($query, $connection_id);

bloc

All are in Settings.php. They are called:

$db_server
$db_name
$db_user
$db_passwd

If getting a connection to another databse is the goal. In SMF/TP all you need is to call the table with the query, the connection is already open on the SMF databse.

fenris_w0lf

#2
Thanks for the reply Bloc,

but;

thats the server, db-name, user and pw - but not the connection id !? isnt that stored in any global variable ?? (I would think usually a number of some sort...)

The one you would normally do a:

mysql_close ( connection id here )

on....

fenris_w0lf

#3
I appologize. This prolly doesnt make any sense.

I'm used to a *very* different environment where most users gets theyre own spid on the database (win/hpux-sybase install) - seems this is not the case with SMF (and similar forums etc).

Ignore this topic please.

* fenris_w0lf blushes lightly  ::)

bloc


This website is proudly hosted on Crocweb Cloud Website Hosting.