Questions tagged as 'php'

2
answers

Onsubmit with JavaScript and PHP

I'm learning a bit with JavaScript and PHP. The case is that I have a form ( form ). Once filled in you have two processes. One is PHP, which collects the $POST of the html with if(isset($_POST['submit'])) and processes...
asked by 13.07.2018 / 10:00
2
answers

Character counter in input with PHP

Hello, I'm creating a script where the user is asked for an Input where he can put a word or phrase and that decreases the number of characters. pero me sale del todo bien <?php if(isset($_POST['enviar'])){ if(isset($_POST['texto'])){ $tex...
asked by 13.07.2018 / 01:20
1
answer

compare if one value is less than another in a jquery table

Good morning, I need help to do the following: I need to compare if a value of one column is less or greater than another column within a table. I have advanced the following code: $('.a').on('click',function(){ var trPrinci...
asked by 24.07.2016 / 23:46
1
answer

Do not save the data in the database

The database 5 tables: client, room, history, staff and user. In the user table is the ID which also happens for the room as user_id, I make my normal form and it appears that the room has been created, but it does not show it or save it, fro...
asked by 31.07.2018 / 02:13
2
answers

Syntax PHP error ""

// retrieve selected results from database and display them on page $sql = 'SELECT * FROM publicaciones LIMIT ' . $this_page_first_result . ',' . $results_per_page; $result = mysqli_query($conexion, $sql); while ($row = mysqli_fetch_assoc($resu...
asked by 04.07.2018 / 11:12
1
answer

Help for while php

I am needing help to do a while or for or a correct way to repeat content <?php mysqli_select_db($conexion, $database_conexion); $query_DatosCategorias = sprintf("SELECT * FROM categorias WHERE estado>0"); $DatosCategorias= mysqli_query...
asked by 30.06.2018 / 15:10
1
answer

Error UPDATING Duplicate entry '1' for key 'PRIMARY'

I'm trying to update a record in the database and I get this error: <h1>A Database Error Occurred</h1> <p>Error Number: 1062</p> <p>Duplicate entry '1' for key 'PRIMARY'</p> <p>UPDATE 'compra'...
asked by 28.06.2018 / 15:28
1
answer

Does not recognize when changing javascript variable to php using ajax

I am here in this opportunity to pose a small problem that I have been turning a long time ago. It turns out that I'm developing a small, private chat, 1 to 1. The interface is simple and has a select and option to change user. Use websock...
asked by 21.06.2018 / 03:33
1
answer

How to pass data from a controller to a module included with @include Laravel Blade?

I am developing a web with Laravel and I need to pass the data that comes from a controller to a module called seciones.blade.php that is in a folder called includes , so that the structure is like this: includes/secciones.blade.p...
asked by 21.06.2018 / 00:08
1
answer

Undefined variable in PHP

What kind of colleagues I need your help, I have been alleviating an error that has overwhelmed me for many hours and I can not solve it before it worked but my PC formats and it does not work anymore, it sends me an error when I try to create a...
asked by 20.06.2018 / 06:19