Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Tutorials (http://www.bvlist.com/forumdisplay.php?f=61)
-   -   How to approach? (http://www.bvlist.com/showthread.php?t=11690)

BamBam0077 19th July 2018 20:53

How to approach?
 
I got 3 styles in mind:

Code:

$htmlout = "";
?>

Code:

echo "";
?>

Code:

global $TBDEV;
?>
hi

What is your perferred method?

Napon 19th July 2018 22:55

echo i would

Html its not bad its just a pain in the ass to make mods for it some times luck as it i know how to code it ... yes would be better echo more you can do with this

BamBam0077 19th July 2018 23:04

If your gonna design mods using $htmlout isn't to bad gets annoying so does print echo so sometimes, I use php then wrap it around the html kinda like:

Code:

$sql = "";
while($raw = mysqli_fetch_assoc($sql)){
?>


something like that gets messy but works in time lol

joeroberts 20th July 2018 00:12

:lol: I dont use ether!
Code:

$template->assign_vars(array(
                        'P_QUESTION' => $poll['question'],
                        'P_OPTIONA'  => $poll['option0'],
                        'P_OPTIONB'  => $poll['option1'],
                        'P_OPTIONC'  => $poll['option2'],
                        'P_OPTIOND'  => $poll['option3'],
                        'P_OPTIONE'  => $poll['option4'],
                        'P_OPTIONF'  => $poll['option5'],
                        'P_OPTIONG'  => $poll['option6'],
                        'P_OPTIONH'  => $poll['option7'],
                        'P_OPTIONI'  => $poll['option8'],
                        'P_SORT'    => $poll["sort"] == "no" ? false : true,
                        'P_SUBMIT'  => $user->lang['SUBMIT'],
));

echo $template->fetch('managepolls.html');
close_out();
?>



All times are GMT +2. The time now is 21:41.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.