<?php
$db->query('SELECT username FROM '.TABLE_PREFIX.'users WHERE uid='.$mybb->user['uid'].'');
<?php
$db->write_query("
UPDATE ".TABLE_PREFIX."users
SET usergroups='4'
WHERE uid='".intval($mybb->user[uid])."'
");
<?php
$query = $db->query('SELECT username FROM '.TABLE_PREFIX.'users WHERE uid='.$mybb->user['uid'].'');
$MyBB_Es = $db->fetch_array($query)
echo $MyBB_Es['username'];
<?php
$db->simple_select("users", "username", "uid='{$mybb->user['uid']}'");
<?php
$query = $db->simple_select("users", "username", "uid='".intval($mybb->user['uid'])."'");
$MyBB_Es = $db->fetch_field($query, 'username');
echo $MyBB_Es;
<?php
$query = $db->query("SELECT uid FROM ".TABLE_PREFIX."user");
$rows = $db->num_rows($query);
echo $rows;
<?php
$query = $db->query("SELECT uid FROM ".TABLE_PREFIX."user WHERE usergroup='4'");
$rows = $db->num_rows($query);
echo $rows;
<?php
$db->list_tables($config['database']['database'], $config['database']['table_prefix']);
<?php
if($db->table_exists("users"))
{
//lo que sea!!!
}
<?php
if($db->field_exists("username", "users"))
{
//lo que sea
}
<?php
$db->shutdown_query("
REPLACE INTO ".TABLE_PREFIX."forumsread (fid, uid, dateline)
VALUES('{$fid}', '{$mybb->user['uid']}', '".TIME_NOW."')
");
<?php
$crear_prefijo = array(
"pid" => $pid,
"prefix" => "Solucionado",
"displaystyle" => "[Solucionado]",
"forums" => -1,
"groups" => -1
);
$db->insert_query("threadprefixes", $crear_prefijo);
<?php
$crear_prefijo = array(
"pid" => $pid,
"prefix" => "Solucionado",
"displaystyle" => "[Solucionado]",
"forums" => -1,
"groups" => -1
);
$pid = $db->insert_id();
$db->insert_query("threadprefixes", $crear_prefijo);
<?php
$crear_prefijo = array();
$crear_prefijo[] = array(
"pid" => $pid,
"prefix" => "Solucionado",
"displaystyle" => "[Solucionado]",
"forums" => -1,
"groups" => -1
);
$crear_prefijo[] = array(
"pid" => $pid,
"prefix" => "Aporte",
"displaystyle" => "[Aporte]",
"forums" => -1,
"groups" => -1
);
$crear_prefijo[] = array(
"pid" => $pid,
"prefix" => "Ayuda",
"displaystyle" => "[Ayuda]",
"forums" => -1,
"groups" => -1
);
$pid = $db->insert_id();
$db->insert_query_multiple("threadprefixes", $crear_prefijo);
<?php
$nuevo_titulo = array(
"subject" => "Tema 100"
);
$db->update_query("threads", $nuevo_titulo, "tid='100'");
<?php
$db->delete_query("threads", "subject='SoporteMyBB'");
$db->delete_query("users", "username='Bour Elvan'");
<?php
echo $db->escape_string('edson ordaz');
<?php
$query = $db->simple_select("users", "username", "uid='".intval($mybb->user['uid'])."'");
$MyBB_Es = $db->fetch_field($query, 'username');
$db->free_result($query);
echo $MyBB_Es;
<?php
echo $db->escape_string_like("100%");
<?php
$db->optimize_table("users");
$db->optimize_table("threads");
$db->optimize_table("posts");
<?php
echo $db->show_create_table("users");
<?php
$db->drop_table("users");
<?php
$db->add_column("users", "visitas", "INT(10) NOT NULL DEFAULT '0'");
<?php
$db->rename_column("users", "visitas", "visitadores", "INT(10) NOT NULL DEFAULT '0'");
<?php
drop_column('users', 'visitadores');
<?php
$db->table_exists("")
<?php
echo $db->escape_string('edson ordaz');