Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

codigo php a smarty - ayuda

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Spanish
View previous topic :: View next topic  
Author Message
faremusic23
Smarty n00b


Joined: 17 Sep 2014
Posts: 1

PostPosted: Wed Sep 17, 2014 9:36 pm    Post subject: codigo php a smarty - ayuda Reply with quote

hola muy buenas tardes, me gustaria que me ayudaran hacer este codigo PHP a " .TPL " .
OJO: EN MI SMARTY NO FUNClONA LA ESTENSION {php} {/php} por eso pido ayuda en este hermoso foro, con la unica intension que me lo hagan.. por favor ayudenme !! se les estaria muy agradesido


<?php
include("conetar.php");
?>

<?php

$cons = mysql_query("SELECT * FROM countries") or exit ("Se produjo un error");
if (mysql_num_rows($cons)){
?>
<select style="width:204px">
<option value="">Select Country</option>
<?php
while ($r = mysql_fetch_array($cons)){
?>
<option value="<?php echo $r['short']; ?>"><?php echo $r['country']; ?></option>
<?php
}
mysql_free_result($cons);
?>
</select>
<?php
}
else{
echo "No se encontraron países";
}
?>
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP