Click here to Skip to main content
15,908,020 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionSQL Injection Prevention - How Good Are These Measures? Pin
nalorin11-Jun-08 7:55
nalorin11-Jun-08 7:55 
AnswerRe: SQL Injection Prevention - How Good Are These Measures? Pin
Bradml11-Jun-08 21:36
Bradml11-Jun-08 21:36 
GeneralRe: SQL Injection Prevention - How Good Are These Measures? Pin
Mohammad Dayyan11-Jun-08 22:57
Mohammad Dayyan11-Jun-08 22:57 
GeneralRe: SQL Injection Prevention - How Good Are These Measures? Pin
Chris Maunder12-Jun-08 0:20
cofounderChris Maunder12-Jun-08 0:20 
GeneralRe: SQL Injection Prevention - How Good Are These Measures? Pin
Bradml12-Jun-08 0:58
Bradml12-Jun-08 0:58 
GeneralRe: SQL Injection Prevention - How Good Are These Measures? Pin
Hesham Amin13-Jun-08 0:09
Hesham Amin13-Jun-08 0:09 
AnswerRe: SQL Injection Prevention - How Good Are These Measures? Pin
alex.barylski1-Jul-08 10:29
alex.barylski1-Jul-08 10:29 
QuestionSmarty Question !!! Pin
Mohammad Dayyan11-Jun-08 1:40
Mohammad Dayyan11-Jun-08 1:40 
Hi friends.

I usually use Smarty to create templates.



When I wanted to create somethings like this :

<html xmlns="http://www.w3.org/1999/xhtml">
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>Test</title> 
</head>  
<body>

<table>    
	<tr>      
		<td>&nbsp;</td>    
	</tr>  
</table>
    
<table>    
	<tr>      
		<td>&nbsp;</td>    
	</tr> 
</table>
    
<table>    
	<tr>      
		<td>&nbsp;</td>    
	</tr>  
</table>  
  
<table>    
	<tr>      
		<td>&nbsp;</td>    
	</tr>  
</table> 
   
</body>  
</html>


I created three files ( for example Header.tpl , Footer.tpl , Body.tpl )




Header.tpl :

<html xmlns="http://www.w3.org/1999/xhtml">
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>Test</title> 
</head>  
<body> 





Body.tpl :

<table>    
	<tr>      
		<td>&nbsp;</td>    
	</tr>  
</table>





Footer.tpl :

</body>  
</html>


Then I wrote this Smarty code in PHP to created above HTML file :
$smarty -> display('Header.tpl');
for ($i=0; $i<=3; $i++)
	$smarty -> display('Body.tpl');
$smarty -> display('Footer.tpl');




This way is bad, because designing template is very difficult.

Are there any ways to use Smarty and create above HTML file.

Thanks in advance

Sorry for my English. I'm a freshman .

AnswerRe: Smarty Question !!! Pin
Bradml11-Jun-08 21:37
Bradml11-Jun-08 21:37 
GeneralRe: Smarty Question !!! Pin
Mohammad Dayyan11-Jun-08 22:44
Mohammad Dayyan11-Jun-08 22:44 
GeneralRe: Smarty Question !!! Pin
Bradml11-Jun-08 22:57
Bradml11-Jun-08 22:57 
GeneralRe: Smarty Question !!! Pin
Mohammad Dayyan11-Jun-08 23:03
Mohammad Dayyan11-Jun-08 23:03 
GeneralRe: Smarty Question !!! Pin
Bradml12-Jun-08 0:55
Bradml12-Jun-08 0:55 
GeneralRe: Smarty Question !!! Pin
Mohammad Dayyan12-Jun-08 2:27
Mohammad Dayyan12-Jun-08 2:27 
QuestionImage is not being generated... Pin
xelios4-Jun-08 20:42
xelios4-Jun-08 20:42 
AnswerRe: Image is not being generated... Pin
Bradml4-Jun-08 22:58
Bradml4-Jun-08 22:58 
AnswerRe: Image is not being generated... Pin
Mohammad Dayyan5-Jun-08 9:48
Mohammad Dayyan5-Jun-08 9:48 
QuestionAny simple example to implement CAPTCHA... Pin
xelios4-Jun-08 10:53
xelios4-Jun-08 10:53 
AnswerRe: Any simple example to implement CAPTCHA... Pin
Mohammad Dayyan5-Jun-08 9:06
Mohammad Dayyan5-Jun-08 9:06 
GeneralRe: Any simple example to implement CAPTCHA... Pin
Bradml6-Jun-08 2:44
Bradml6-Jun-08 2:44 
QuestionWhat's the best PHP IDE ? Pin
Mohammad Dayyan4-Jun-08 1:38
Mohammad Dayyan4-Jun-08 1:38 
AnswerRe: What's the best PHP IDE ? Pin
xelios4-Jun-08 2:36
xelios4-Jun-08 2:36 
AnswerRe: What's the best PHP IDE ? Pin
Bradml4-Jun-08 2:36
Bradml4-Jun-08 2:36 
GeneralRe: What's the best PHP IDE ? Pin
xelios4-Jun-08 4:40
xelios4-Jun-08 4:40 
GeneralRe: What's the best PHP IDE ? Pin
Bradml4-Jun-08 22:56
Bradml4-Jun-08 22:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.