i am writing a html form, that simply passes data to a php one, and then to an sql database. my question is, should view be stored in php or sql (and call them from php)? i could do that. the problem is that in my views i have variables. i.e each time i call them i have different parameters in them.
因此,我的《加拿大法典》认为:
$this->query = "SELECT student.gender FROM student WHERE email = $this->email ";
如果在我的sql中表述上述观点,即可以使用“电子邮件”等变数?
so where are view better to be stored? same goes for procedures ?