questo è il mio file install.php:
tutto mi crea, ma quando va ad inserire questi tre, mi da quell'errore lì.codice:<?php include("../inc.php"); $query = file_get_contents("database.sql"); $stmt = $db->prepare( $query ); $stmt->execute(); $query = "INSERT INTO `pages` (`url`, `title`, `content`, `active`,`data_reg`) VALUES ('about', 'Chi sono?', '".file_get_contents("../pages/about.php")."','1',Now());"; $stmt = $db->prepare( $query ); $stmt->execute(); $query = "INSERT INTO `pages` (`url`, `title`, `content`, `active`,`data_reg`) VALUES ('downloads', 'Downloads', '".file_get_contents("../pages/downloads.php")."','1',Now());"; $stmt = $db->prepare( $query ); $stmt->execute(); $query = "INSERT INTO `pages` (`url`, `title`, `content`, `active`,`data_reg`) VALUES ('links', 'Links', '".file_get_contents("../pages/links.php")."','1',Now());"; $stmt = $db->prepare( $query ); $stmt->execute(); ?>
Vedendo bene l'errore si è fermato alla frase:
dell'uso del computer,
ed ha trovato ' e si è bloccato.
idea?

Rispondi quotando