I would like a little help here in what is wrong with my sintax? I need to print the number of pages of a query result linked to the respective results take a look:
PHP Code:
if(!isset($comeco)){
    
$comeco "0"
}
$inscritos mysql_query(SELECT COUNT(Alunos_IDFROM Curso_Potensal_Alunos) ;
$paginas "$inscritos/30"I need to round this number UP 
while($paginas >= $pagnumero){
    
pagnumero++;
    if(
$comeco == "0"){
    echo(
"<font face=verdana color=black size=2><a href=\"" $PHP_SELF "?comeco=" . ($pagnumero*$comeco)> $pagnumero </a></font>");
    }
    else{
    echo("
<font face=verdana color=black size=2><a href=\"" $PHP_SELF "?comeco=" . (($pagnumero*30)-1)> $pagnumero </a></font>");
    }
}
$sql = "SELECT Alunos_IDAlunos_NomeAlunos_EmailAlunos_InstituicaoAlunos_Registro FROM Curso_Potensal_Alunos LIMIT" . $comeco . ",30";
$info = mysql_query($sql);
while(
$infor = mysql_fetch_array($info)){
                        
$id = $infor["Alunos_ID"];
                        
$aluno = $infor["Alunos_Nome"];
                        
$email = $infor["Alunos_Email"];
                        
$instituicao = $infor["Alunos_Instituicao"];
                        
$registro_academico = $infor["Alunos_Registro"];
                        echo("
<font face=verdana size=1 color=black>$aluno</font>\n");
                        echo("
<font face=verdana size=1 color=black>$email</font>\n");
                        echo("
<font face=verdana size=1 color=black>$instituicao</font>\n");
                        echo("
<font face=verdana size=1 color=black>$registro_academico</font>\n");
                        echo("
<font face=verdana size=1 color=black><a href='aluno_mais.php?id=$id'>+ info</a></font>\n");
                    } 
That's it i would be thanfull if someone could help me finishing this.
***: Joao Gabriel Branco