Código PHP:
Fatal error: Call to undefined function: conexionl() in /home/rymchile/public_html/php/Personal/excel.php on line 4
Código PHP:
<?php
include("../conexion.php");
$sql="select * from ingreo_personal order by FECHA desc";
$result = conexionl($sql);
$count = mysql_num_fields($result);
for ($i = 0; $i < $count; $i++){
$header .= mysql_field_name($result, $i)."\t";
}
while($row = mysql_fetch_row($result)){
$line = '';
foreach($row as $value){
if(!isset($value) || $value == ""){
$value = "\t";
}else{
$value = str_replace('"', '""', $value);
$value = '"' . $value . '"' . "\t";
}
$line .= $value;
}
$data .= trim($line)."\n";
}
$data = str_replace("\r", "", $data);
if ($data == "") {
$data = "\nno matching records found\n";
}
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=clientes.xls");
header("Pragma: no-cache");
header("Expires: 0");
echo $header."\n".$data;
?>
lo mismo me pasa con el eliminar
Código PHP:
Parse error: syntax error, unexpected $end in /home/rymchile/public_html/php/Personal/borrar.php on line 8
Código PHP:
<?php
include("../conexion.php");
$link=Conectarse();
$rut=$_GET['rut'];
mysql_query("delete from ingreo_personal );
?>
si me pueden ayudar