2018-09-21, 11:25 PM
I am writing my first MyBB code now.
I am trying to sort categories depending on user hyperlink click.
Might not use name(fid?) depending on index. Not sure correct parameter syntax
<?php
$Selected= $_REQUEST["subject"];
UPDATE
UPDATE
?>
So what makes more sense try and write this as php script. Or try to just send a SQL statement to the database? I doubt this would run much faster as a stored procedure.
I am trying to sort categories depending on user hyperlink click.
Might not use name(fid?) depending on index. Not sure correct parameter syntax
<?php
$Selected= $_REQUEST["subject"];
UPDATE
mybb_forums
SET disporder
= '2' WHERE disporder
= '1'; UPDATE
mybb_forums
SET disporder
= '1' WHERE name
= $Selected; ?>
So what makes more sense try and write this as php script. Or try to just send a SQL statement to the database? I doubt this would run much faster as a stored procedure.