|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
faremusic23 Smarty n00b
Joined: 17 Sep 2014 Posts: 1
|
Posted: Wed Sep 17, 2014 9:36 pm Post subject: codigo php a smarty - ayuda |
|
|
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 |
|
|
|
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
|