My code is something like this.
Code: Select all
QUERY1 = SELECT 1 made from 3 joined tables // Time of the execution is very small
for each line in query1 {
OUTPUT HTML // A lot of html code with more that 10 php vars inside
QUERY2 = SELECT 2 made from 2 joined tables // Time of the execution is very very small
OUTPUT HTML // SOME html code with more that 3 php vars inside
for each line in query2{
OUTPUT HTML// SOME html code with more that 2 php vars inside
}
OUTPUT HTML //closing HTML forms,rows,etc..
}1. echo "<table ....>$var1.....$var2.....";
2. echo "<table ....>".$var1."......".$var2.".....";
3. ?><table ....><?=$var1;?>.....<?=$var2;?>.....
Or should I use something different ?
If I will put on comments the OUTPUT HTML parts the execution time is less then : 0.05s .