Cita:
La llamo asi:function getmaxid(){
$con = new DBManager;
if($con->conectar()==true){
$query = "SELECT MAX(id_process) FROM process";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
if (is_array($row) == true)
{
return $rows[id_process]=$row;
}
Else
{
return 1;
}
}
$con = new DBManager;
if($con->conectar()==true){
$query = "SELECT MAX(id_process) FROM process";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
if (is_array($row) == true)
{
return $rows[id_process]=$row;
}
Else
{
return 1;
}
}
Cita:
Alguien me puede ayudar ??? <?php
$x = new cSqlclass;
$idmax=$x->getmaxid();
echo $idmax;
?>
$x = new cSqlclass;
$idmax=$x->getmaxid();
echo $idmax;
?>