Questions tagged as 'php'

1
answer

LEMP Script for Ubuntu / Debian

Is there a script to install the entire LEMP stack in Ubuntu / Debian in the style of CentOS (Centmin Mod)?     
asked by 10.08.2016 / 15:09
2
answers

Error: Call to a member function XXXX () on array

I have a class with a function that returns an array function buscarPorComplejo($idComplejo){ $sql = "SELECT * FROM XXX where id_complejo = '$idComplejo' "; $rs = mysql_query($sql) or die("Error en la Busqueda -cabanas-"); $reg = 0; wh...
asked by 09.08.2016 / 21:10
1
answer

How to show details of a product without reloading the page

Good, I am trying to make my kardex or history of entry and exit of my product. But I have a problem. I do not want that when going to see the details of a product the page requires recharging. But hide the first table ( producto.php ) where all...
asked by 16.07.2016 / 11:44
3
answers

Why does Undefined index mark me in PHP Using $ _FILES for Images?

Well my problem is that I'm trying to store images in my database in mysql this using the php language and you show me this notification Notice: Undefined index: file-1[] in C:\xampp\htdocs\Hidtruth\PHP\configuracion\save.php on line 8 H...
asked by 17.08.2016 / 18:16
1
answer

PHP: Error Database not selected

Excuse me, I have this little problem that I could not solve, I have a web system which I want to update at a certain moment through mysql_query, but it tells me that I do not have the selected bd This is the code to connect to the database a...
asked by 14.08.2016 / 20:16
1
answer

how to digitally sign a pdf with php (symfony2)?

Good morning. My question is how can I digitally sign a pdf file (or what libraries should I use). I am working under the php symfony2 framework. Thank you in advance.     
asked by 12.08.2016 / 16:52
1
answer

highcharts - show total sale per day

I need to know how to add the sales of my table by date. That for each date, the values of the total field are added, so that I can show it in my graphic report. This is my table: This is what I have advanced: <?php require_onc...
asked by 06.07.2016 / 04:02
2
answers

Error inserting data into MySQL using PHP and AJAX. (NO jQuery)

PHP class where I connect to the Database <?php class Buscador { var $host = 'localhost', $user = 'root', $pass = 'chachin', $db = 'employee', $conexion = 'Se conecto', $conexion_i = "No se Conecto correctament...
asked by 07.07.2016 / 02:29
1
answer

Laravel | Fill in 2 MySQL tables at the same time

I am working on an application in Laravel, and I have 3 MySQL tables: ( role-users-permissions_users ), I need to know how to fill 2 tables in a single register ie the user registers, a id is saved as a primary in the table " users ", and that...
asked by 02.07.2016 / 17:24
1
answer

Auth :: login ($ user) laravel

I'm using Auth::login($user); to log in manually using fluent / querybuilder    Example $count = DB::table('users') ->where('username', '=', $username) ->where('password', '=', $password)...
asked by 06.09.2016 / 20:58