I have just finished making a .php file that is supposed to search mysql database. I works all right, I mean... it can print all data in a table, but since I want it to look nice, and not just ordered in table, I don't know how to do it.
I already know how it should look like, and how it would be possible in html, but since this is inside <php> brackets and inside WHILE LOOP, for some reason when I enter this:
Code: Select all
echo "<div style="padding:25px"> [i]some text, variables or values[/i] </div>";Now... if I just type plain:
Code: Select all
echo "<div> [i]some text, variables or values[/i] </div>";Do you know maybe if it is a rule that I can't introduce CSS styles inside PHP brackets?
P.S: I really didn't know where did this subject belong to, PHP code or CSS, so I am sorry if I mistakenly missplaced this.