Cita:
<?php
$conn = mysql_connect("localhost", "root","") or die(mysql_error());
$db = mysql_select_db("braillard") or die(mysql_error());
?>
<?php
$fecha = new DateTime();
$cadena = $fecha->format('d/m');
$query = "Select count(*) from Tpers where percum='".$cadena."'";
$result = mysql_query($query) or die(mysql_error());
mysql_free_result($result);
mysql_close($conn);
?>
quiero imprimir el resultado de mi $query:
$conn = mysql_connect("localhost", "root","") or die(mysql_error());
$db = mysql_select_db("braillard") or die(mysql_error());
?>
<?php
$fecha = new DateTime();
$cadena = $fecha->format('d/m');
$query = "Select count(*) from Tpers where percum='".$cadena."'";
$result = mysql_query($query) or die(mysql_error());
mysql_free_result($result);
mysql_close($conn);
?>
quiero imprimir el resultado de mi $query:
Cita:
Ayuda Porfas"Select count(*) from Tpers where percum='".$cadena."'";