Answer the question
In order to leave comments, you need to log in
How to implement the formation of html code from script conditions?
The essence of this is
let's say there is a code
<?test?>Text1<?else?>Text2<?/test?>
<?else?>Text2should be cut out.
Answer the question
In order to leave comments, you need to log in
1) Yes you can, it's free. transfer the database, files, change the ns domain and you are all on a different hosting, just buy the domain yourself and not through the hoster
2) You need OpenServer on it, install everything on your PC, then transfer the database and files to the hosting.
Example:
views/index.php :
<?php if (condition): ?>
Текст1
<?php else: ?>
Текст2
<?php endif; ?>
We write to the HTML template (example):
<?=if($a>0)?"переменная больше нуля":"переменная не больше нуля"?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question