per ora ho risolto così se qualcuno lo sà fare meglio mi faccia sapere

Codice PHP:
<?php

require "paginazione/include/config.inc.php";
require 
"paginazione/include/dbms.inc.php";
require 
"paginazione/include/paginazione.inc.php";

$webpage basename($_SERVER['PHP_SELF']);
$page = (!isset($_GET['page']))? $_GET['page'];
$result mysql_query("select * FROM  video ORDER BY id DESC");
$max_results 5;//numero di elementi da visualizzare per pagina.
$total_results mysql_num_rows($result);
$total_pages ceil($total_results $max_results);
$from = (($page $max_results) - $max_results);
$result=mysql_query("select * FROM video ORDER BY id DESC LIMIT $from$max_results ");

// convertiamo in array utilizzando la & come separatore
//$array = explode("?",$linkvideocorretto);
//$linkvideocorretto2=$array[0];

while ($row mysql_fetch_array($result))

{
    
$linkvideo $row['videourl'];
    
$linkvideocorretto=$linkvideo
    
$linkvideocorretto=str_replace("watch?v=""embed/"$linkvideocorretto);

        echo     
"<table width=\"100%\" border=\"0\" cellspacing=\"6\" id='tabella_richieste'>";
        echo         
"<tr>";
        echo       
"<td><iframe width=\"200\" height=\"150\" src=\"$linkvideocorretto\" frameborder=\"0\" allowfullscreen></iframe></td>";
        echo        
"<td><table width=\"100%\" height:\"100%\" border=\"0\" cellspacing=\"6\">";
        echo              
"<tr>";
        echo            
"<td  height:\"10%\" id='tabella_td'>"$row['videotitolo'] ."</td>";
        echo              
"</tr>";
        echo              
"<tr>";
        echo            
"<td  height:\"80%\" id='tabella_td'>"$row['videodidascalia'] ."</td>";
        echo              
"</tr>";
        echo            
"<tr>";
        echo            
"<td  height:\"10%\" id=\"link_cancella\"><a href = 'paginazione/cancellaEvento.php?id=" $row['id'] . "'>CANCELLA EVENTO</a></td>";
        echo              
"</tr>";
        echo            
"</table></td>";
        echo         
"</tr>";
        echo        
"</table>";
    
}

echo 
pagination_3($total_pages$page$webpage);


?>