![]() |
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 |
Are you using this in a PHP-script or standalone?
If in a script, please post a snippet. |
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')"); |
All times are GMT. The time now is 10:54 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:
|