I'm pretty clumsy with the functions, and more with the use of return .
I have this code:
public function addAuthor($autor, $nacimiento, $descripcion) {
$sql = $this->db->prepare("INSERT INTO autores (Autor, Nacimien...
I have a problem with my php, apparently when I enter anything in username and password I can log in even without being a user
<?php
session_start();
require 'conexion.php';
if($_POST['proceso_ingreso']=="iniciando"){...
a question I am trying that when it logue and select in the checbox is recorded in the form this is the code I use
if(isset($_POST['recordarme']) && !empty($_POST['recordarme'])){
$dominio = $_SERVER["HTTP_HOST"];
setcookie("recordarme...
I am developing a project where you can see a directory by breaking down Folders, Subfolders and Files.
I'm really something green in this php, and I did not find any examples of how to show it
I hope you can give me some example or guidan...
I have a form inside a modal and I send the data by post using ajax.
The problem is that you can send several files at once but I get the following error:
jquery-1.11.1.min.js:4 Uncaught RangeError: Maximum call stack size exceeded
at Vc (...
I have a question, I have this class:
<?php
class DB{
//Función para conectar con la base de datos
public static function ejecutaConsulta($sql) {
$servidor = "localhost";
$dbname = "vehiculos";
$usuario = "root";
$contrasena...
I'm working on angular and I'm saving the datetime of two datetime-local with a ng-model
<input type="datetime-local" ng-model="column_Data.date_Start" placeholder="yyyy-MM-ddTHH:mm:ss" min="2014-01-01T00:00:00">
and then I am sending...
I have this query prepared in a php file.
$consulta = $conn->prepare("SELECT examen.idexamen,examen.detalles, count(*)
from examen,preguntas
having count(*) IN
(SELECT count(*) FROM preguntas
group by pregunt...
I need that when you select an option and click on the save button save me and my database but not how to program the php part.
<!DOCTYPE html>
<html>
<head>
<title>Prueba Select</title>
</head>
<body...
How about? Veran I have a little problem with some strings that are full of a unicode character.
My string is this:
$variable = "c\u0000o\u0000d\u0000e";
Which has this unicode character: \ u0000
I would like to know how I can remove all...