Cambie todo a mysqli y sigue sin funcionar
Código PHP:
<?php
$id = $_GET["id"];
$sql = "select * from tabla where id = ". $id;
$server = 'localhost';
$user = 'xxx';
$password = 'xxx!';
$db = 'xxxx';
$conexion = new mysqli($server, $user, $password);
//echo $sql;
mysqli_select_db($db,$conexion);
$res = mysqli_query($sql,$conexion);
$registro=mysqli_fetch_array($res);
$cheks = $registro['cheks'];
$cheks = split(",",$cheks);
$cheks2 = $registro['cheks2'];
$cheks2 = split(",",$cheks2);
//print_r($cheks);
mysqli_close($conexion);
?>