Questions tagged as 'php'

3
answers

Laravel 5.4 localhost: 8000 does not work

At the moment of putting php artisan serve everything is fine, until I address my localhost:8000 and it shows me the following: Warning: require_once(C:\xampp\htdocs\EEPAT/public/index.php): failed to open stream: No such file o...
asked by 04.07.2017 / 23:49
1
answer

How can I make a table perform the functions of deleting and modifying? Without having to make 2 independent tables

I'm just starting to use PHP and the forms issue, so I still have questions about how to use the functions. HTML code <legend>ELIMINAR</legend> <table class="table table-striped" summary="Tabla generica"> &...
asked by 26.06.2017 / 09:56
3
answers

How to subtract between 2 hours in PHP

I'm using Codeigniter and I want to subtract it in the view. <?php $cadena = strtotime($seguimiento->horaInicio); $cadena = date("H:i", $cadena); echo $cadena; $cadena2 = strtotime($seguimiento->horaTermino); $cad...
asked by 04.07.2018 / 15:11
3
answers

Php as a function of javascript

Good evening, someone to guide me, I want to execute PHP code from a function in js, I can do that. I have tried and it just throws the result in an input text, but it does not send me the alert I can do this, Thanks in advance. function f...
asked by 12.06.2017 / 03:47
1
answer

No MysqlInd does not work fetch_assoc or get_result ()

I do not have mysqlInd then it does not work fetch_assoc sample Fatal error: Call to undefined method mysqli_stmt :: fetch_assoc () ni get_result() Following this solution I'm trying to store all the columns in the queried...
asked by 20.06.2018 / 14:14
2
answers

How can I separate a string by characters? PHP Jquery

Good afternoon Titans of programming, I have a problem, I'm taking from the database a string which gives me the following value 1101000100000000 , I explain what this value is for, each character is a state 0 = Cerrado and 1 = A...
asked by 07.06.2018 / 20:56
2
answers

Create PHP color search

I want to make the users of my application able to search for images by color. I have a table of images that stores the colors in hexadecimal as a string type. +----+-----------------+---------------+ | id | name | color | +...
asked by 08.03.2017 / 21:12
2
answers

How to validate a switch and insert it into the database if the data in my db is Boolean?

I have a form to which I enter the data of the staff, but to give it a more elegant appearance in view of the user I have inserted a switch component to 'validate' if that 'character' will be active or inactive, which will be saved as true or fa...
asked by 03.03.2017 / 23:01
1
answer

Problem with mysql sentence in php

It does not give me any errors but it does not upload me to the database. If I put quotation marks of a '' I get a syntax error in $ name but if I put "" it does not give me an error but it does not upload anything to the database either....
asked by 23.10.2017 / 10:03
3
answers

Combine prepared transactions and queries

I am studying the subject of transactions and queries prepared in PHP. Testing I have created a code to combine transactions with prepared queries. It would be something like that (imagine that the connection is already established by PDO): tr...
asked by 01.02.2018 / 01:48