Questions tagged as 'php'

4
answers

validate a number with javascrip

Note: validate letter by letter and work well, but the problem is when the user pastes the data with numbers and letters I only have to receive a string of 11 digits, but when I put a letter it passes the validations that I have, how do I solve...
asked by 11.08.2018 / 01:01
0
answers

Error in prepare () of a query prepared mysqli in PHP

Good morning everyone, I have the following function: function mostrar_producto_carrito($conexion){ try{ $sentencia = $conexion->prepare("select p.nombre,c.cantidad,(p.precio*c.cantidad) as total from producto p inner join carri...
asked by 10.08.2018 / 21:59
2
answers

I can not connect my html form to the database

I leave my code of the form and the connection .. <? php $conectar=@mysqli_connect('localhost','root',''); if (!$conectar) { echo "No se conecto a la base de datos"; }else{ $base=mysqli_select_db('optica'); if (!$base) {...
asked by 21.08.2018 / 22:57
0
answers

I have problems with codeigniter and its api rest

I would like you to give me a possible solution regarding what is mentioned in the image, because I have been looking for documentation and I have not found anything. If that were the case, I would appreciate it very much.     
asked by 22.08.2018 / 03:08
1
answer

Myslqi query of two tables with sum of records

Good to have if I can explain everything; I have two tables in the BD: productos +----+----------+--------+ | id | producto | estado | +----+----------+--------+ | | | | | | | | +----+----------+...
asked by 20.08.2018 / 07:08
2
answers

Show input according to privileges

I have a user form and password that sends the data to the following checklogin.php <?php session_start(); ?> <?php $host_db = "localhost"; $user_db = "database1"; $pass_db = "mypass"; $db_name = "usuariodatabase"; $conexion = new mys...
asked by 12.08.2018 / 23:48
0
answers

How to fix the error Uncaught exception 'PHPExcel_Reader_Exception'

I am trying to send two values to two cells in an excel ALREADY CREATED, which has the name query.xlsx ... but it turns out that I get the following error: Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could not open consulta....
asked by 10.08.2018 / 17:36
1
answer

because it does not redirect the php form remotely

I am a total novice in programming and on this website. I am working a page with php with password for access to another page. within the site, when doing the tests In Localhost it works well, but when I work with my server it does not redirect...
asked by 10.08.2018 / 19:20
0
answers

Find a MANIFEST file?

I'm doing the adaptation of a web page to OFFLINE that is inside a web app. I have created the .manifest file inside the public folder (the application is being developed in Laravel 5.2 .) Implemented in a local XAMPP server ), the proble...
asked by 10.08.2018 / 16:16
0
answers

Time Intervals with Mysql

Hello friends I have a problem that I have been struggling with in the last few hours, it turns out that I have to graph the conversations that have not been answered, and these are the catalog from mysql, in a way: one day, 3 days, 1 week, a...
asked by 08.08.2018 / 20:58