Jump to the post that solved this thread.
Solved: 5 Years, 9 Months ago Need help with database
#1
Solved: 5 Years, 9 Months ago
Hello, I currently have a table named mybb_servers with a category of status inside it which just holds off.

I want to write a script that when its run, changes whats held to ono.

So far I have:

// Require the Global file

define('IN_MYBB', 1);
require_once "./global.php";

// Write to DB

$db->write_query("INSERT INTO ".TABLE_PREFIX."servers (status) VALUES
(ono);

I have not tested this yet in case it messes anything up, could someone please just let me know if this is the correct method on doing it?

Thanks in advance.
Reply
Jump to the post that solved this thread.


Messages In This Thread
Need help with database - by Nineteh - 2015-09-13, 10:01 PM
RE: Writing to the database - by chack1172 - 2015-09-13, 10:14 PM
RE: Need help with database - by Nineteh - 2015-09-13, 10:16 PM
RE: Need help with database - by chack1172 - 2015-09-14, 12:43 PM
Database : Need Help - by Nineteh - 2015-09-13, 10:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)