Questions tagged as 'php'

3
answers

How to create a custom header with TCPDF?

I am generating a pdf with the tcpdf library but I want to create a header with a different height, title and image than the one that comes in it, I do not really know much about this library and I do not understand some things, I have the follo...
asked by 12.10.2016 / 19:23
1
answer

What is this error? Warning: mysqli_query (), (fetch_array, num_rows) :: expects parameter 1 to be mysqli, null given in,

function loguearDocente($user, $pass) { global $conexion; //$user = mysqli_real_escape_string($conexion, $_POST['user']); //$pass = mysqli_real_escape_string($conexion, $_POST['pass']); $sql = "SELECT * FROM users_profesores WHERE (User='"...
asked by 22.10.2016 / 19:48
1
answer

How do I get a data with condition in json? [closed]

Good!, Several time ago I am looking for a solution to my problem, I will give you an example: I have the following JSON file: { "datos": [ { "user_r": "22543341", "user_n": "15678798" }, {...
asked by 24.10.2016 / 21:47
1
answer

Avoid sending form if DatePicker is empty

Hello: I have a form with several checkboxes which I invoke with a script to show a datepicker calendar and a timepicker schedule when a checkbox is selected and I have the option to select time and date. The detail is that if I do not select da...
asked by 14.10.2016 / 18:12
2
answers

undefined index in POST in any of the 2 manners

I have a problem sending a post from any of the 2 forms. Always jump the following notice Notice: Undefined index: nombre in /Applications/MAMP/htdocs/DHproyect/clases/usuario.php on line 16 Notice: Undefined index: apellido in /Applications...
asked by 14.10.2016 / 21:02
2
answers

mysqli_query SELECT can not find items

I have a problem, in a login in php I have a line of code that checks if the user and password are correct, if so, the code continues. The error is that I enter the username and password that exist in the DB and it says as if they did not exist....
asked by 23.09.2016 / 15:50
1
answer

How to do a visit counter in Laravel 5?

I am working on Laravel 5.3 and I am looking for some package or some data to make a visit counter for both a web in general, and for every article that contains the site. I'm more interested in each article.     
asked by 22.09.2016 / 23:27
1
answer

Better or more efficient practice in php

I have two templates: header.php and footer.php. And some other pages: index.php, menu.php, page_1.php, page_2.php What is the best (or most efficient) option? OPTION ONE Index.php:    require 'header.php'       require $ page;...
asked by 27.10.2016 / 15:30
1
answer

show in a pdf only what is shown in a table

I would like to know if it is possible to show in a pdf what is on a page of a table and how to do it. For example: If I have 100 data and I have a page that shows me 10 in 10 and I select page 3 I would be showing from 21 to 30; by showi...
asked by 27.10.2016 / 15:19
1
answer

How to monitor a log with jquery or a dynamic library? [closed]

Hi, I want to monitor the information stored in a log about the events in my system. Create the .log file using phalcon I can already, but in what way I visualize it in a dynamic way that is updated without the need to update the page if not whe...
asked by 03.10.2016 / 17:39