Questions tagged as 'php'

2
answers

Why are CSS styles not updated?

It happens to me sometimes that I have to eliminate the datos de navegación , cookies , caché , and everything so that I just update the styles that you modify in CSS , which are in another folder as you already know. I u...
asked by 09.07.2018 / 08:44
1
answer

Problem with a query to the database from Eloquent / PHP

I'm doing a SELECT query to my database, but I do not get what I want I've been reading the framework documentation, but I have not found the answer. This is what I have: public function getUpdate(){ 1-$id = $_GET['id']; 2-var_dump($i...
asked by 06.07.2018 / 03:42
2
answers

How to ask the user a confirmation to delete object?

I have an inconvenience that when the user wants to delete a post it is deleted without further ado, but I want to ask the user some confirmation if he wants to delete it, I am working with php, eloquent, twige illuminate, for now I have this pa...
asked by 07.07.2018 / 14:41
1
answer

store information in a foreach cycle

I have a foreach cycle to go through all the states and I need that all the states are stored in the variable but only the last state is being stored, how can I do so that it does not substitute the value for each iteration? here the controller...
asked by 18.12.2017 / 15:42
4
answers

Error inserting MySQL data with PHP

Can someone help me solve this error? the error that throws me is the following:    "Warning: mysqli_query () expects parameter 1 to be mysqli, null given   in ... " <?php include 'odbc.php'; /*datos personales*/ $nombre = $_POST['nom...
asked by 09.12.2017 / 06:05
2
answers

Popup window message in PHP

I know that a tool called JOptionPane exists for Java that shows you a pop-up window, be it a message, a question, a confirmation, etc. In Java, to show a message, use: JOptionPane.showMessageDialog (); How could a pop-up window appear in...
asked by 19.12.2017 / 11:02
3
answers

Basic PDO query

I'm starting with PDO and I have a problem I'm following a course which I'm copying everything at the bottom of the letter but it does not return data when doing a print_r I returned a 1, and in the database I have 3 users already...
asked by 11.07.2018 / 05:55
2
answers

Delete a row from my table

I want to delete a row from my table and I want to do it by means of a form in which I say the id of that row. Why do you tell me that I have not defined the value? I mean, is not it picked up like this? $valor = mysqli_real_escape_s...
asked by 14.09.2018 / 17:09
1
answer

Holidays in Colombia

In this link link I found the following class to calculate holidays: <?php class Festivos { private $hoy; private $festivos; private $ano; private $pascua_mes; private $pascua_dia; public function getFestivos($ano...
asked by 12.09.2018 / 21:12
1
answer

How can I make a variable depending on the url?

I'm trying to get this php redirect depending on the variable $ to have the include, and try to change preg_match by array but it just throws me 500 error, which could be and how I could make it work, thanks. <?php include('url.php'); $urls...
asked by 25.08.2018 / 15:55