Coggle requires JavaScript to display documents.
setcookie(name, value, expire, path, domain, secure, httponly); // debe aparecer antes de tag HTML setrawcookie() ==> previene que una cookie sea encodificada
$conn = new mysqli($servername, $username, $password); if ($conn->connect_error) { // check connection $conn->close(); // cerrar conexión
$conn = mysqli_connect($servername, $username, $password); if (!$conn) { // check connection mysqli_close($conn); // cerrar conexión
$conn = new PDO("mysql:host=$servername;dbname=myDB", $username, $password); $conn->setAttribut- e(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $conn = null; //cierra conexión
$xml=simplexml_load_file("note.xml") or die("Error: Cannot create object"); echo $xml->to . "<br>";
- $parser=xml_parser_create(); - function start($parser,$element_name,$element_attrs) { - switch($element_name) {