![]() |
How can I make this php code into a plugin?
Hi,
I was wondering how I can make this code into a plugin: PHP Code:
Quote:
Quote:
Code:
<!-- TrafficSurfer Stats --> Thanks, Derek |
I suggest you start by looking into vB or other hack sources and learn to approach the database the vB way.
You are now disconnecting the connection made by vB from the database, and replacing it by your own connection, making all vB queries that follow fail. |
Oh ok. Thanks.
Ok, Any idea of some urls t hat can tell me how to connect to another database in vB? |
You can use the current connection and prefix the tablenames with your database name. E.g.
[sql] SELECT * FROM dbname.tablename WHERE fieldname='lala' [/sql] |
Ok, but how would it know my database username and password?
|
All times are GMT. The time now is 07:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|