The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to insert values into mysql in vb3.5
Could someone please tell me how to insert values into a table for php in vBulletin 3.5
i tried Code:
INSERT INTO tablename VALUES ('$myvalue'); i also tried Code:
INSERT INTO " . TABLE_PREFIX . "mychat VALUES ('$message'); What is the correct way of doing this in vBulletin 3.5 |
#2
|
|||
|
|||
Are you using this in a PHP-script or standalone?
If in a script, please post a snippet. |
#3
|
||||
|
||||
Quote:
ie. if i wanted to insert something into the vbulletin datastore manually from the Vbulletin Query Tool in the Admincp The schema of this table dictates 2 (columns/fields) which are Title and Data INSERT INTO datastore VALUES ('test','whatever') Would insert into the Title field 'test' and 'whatever' into the Data field. In a php file using Vbulletin I would do something like $vbulletin->db->query_write("INSERT INTO datastore VALUES ('test','whatever')"); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|