Skip to content

Instantly share code, notes, and snippets.

@fmundaca
Last active December 16, 2015 09:58
Show Gist options
  • Save fmundaca/5416408 to your computer and use it in GitHub Desktop.
Save fmundaca/5416408 to your computer and use it in GitHub Desktop.
pollo's question
public function insertarNuevoTicket($usuario=null, $servicio=null, $componente=null, $finicio=null, $descripcion=null, $tipo_ticket=null, $nuevo_id=null) {
$stm=$this->pdo->prepare("INSERT INTO tickets VALUES( ".$nuevo_id.", '".$usuario."', '".$descripcion."', ".$tipo_ticket.", now(), ".$servicio.", ".$componente.", timestamp IS NULL, 0, 1, 0, 0);"); $query = "INSERT INTO tickets VALUES( ".$nuevo_id.", '".$usuario."', '".$descripcion."', ".$tipo_ticket.", now(), ".$servicio.", ".$componente.", NULL, 0, 1, 0, 0)";
echo "<br>".$query."<br>";
$stm->execute();
$row=0;
$row=$stm->rowCount();
return $row;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment