Questions tagged as 'php'

1
answer

Sort Array of a file_get_html

I have this strange case, I hope you help me. I am trying to sort the result of an array Extracted with DOM but it does not work for me Code: include('../simple_html_dom.php'); $html = file_get_html('http://Google.com/'); $links =...
asked by 31.01.2016 / 14:31
1
answer

How do I show a value of the BD in a select that is loaded with countries?

I have a select that I charge with the countries, and from mySQL I recover a value. First charge all the select, but then how do I make the select show me the selected country that comes from the bd? It is understood that in the BD store the "pa...
asked by 19.07.2017 / 16:53
2
answers

How to make Select option save the entire string of characters and not just the first word?

I use this code <select name="escuelaprocedencia" class="form-control"> <option value="">- Selecciona -</option> <?php $conn = mysql_connect("localhost","radx","sands"); mysql_select_db("softn_cms",$conn);...
asked by 28.11.2018 / 07:25
1
answer

Problem with class extends in PHP

I have a problem with a class, in which I extend the Conn class which is my database connection. The error is    Class 'Conn' not found in ... <?php class User extends Conn{ private $nombre; private $username; public fun...
asked by 25.11.2018 / 15:30
2
answers

Error when upgrading laravel 5.3 to 5.4

When upgrading to laravel 5.4 the following error occurred: Does anyone have any ideas? I can not even access the main route. I followed all the steps of the upgrade but no idea why this happens, I'm upgrading from version 5.1, 5.2, 5.3...
asked by 27.11.2018 / 14:29
2
answers

Object of class Conn could not be converted to string in

The following error is presented to me when designing queries to the database, I enclose the source code: Validations.php: <?php session_start(); if(isset($_SESSION['usuario'])){ header('Location: vistas/home.php'); } if($_SERVER['REQ...
asked by 26.11.2018 / 04:22
1
answer

Syntax Error jQuery v3.1.1 "el.querySelectorAll (" * ,: x ");" // line 1317

At the moment of opening the console and reloading the page, it sends me directly to the debugger and shows me line 1317 in red and remains loading until the console is closed. I do not think the problem is in jQuery. I do not think he's the...
asked by 28.11.2018 / 00:37
2
answers

Show colors taken from a php database

I have a web application, which has a form for registering new users; Each user is assigned a unique color, taken from BD (MySQL) . I have a users table and a table colors, having two registered users, I want to show the color assigned...
asked by 21.12.2018 / 18:38
1
answer

Problem with Alert fade in (bootstrap), only shown once

I'm trying to perform a bootstrap alert. it is displayed correctly when the response is received correctly, or some error. but when I perform another action that involves another ajax response, this one no longer shows me the alert. Here is m...
asked by 26.12.2018 / 20:28
1
answer

Select a selected: true from another Select

For some reason you do not select me on the second Select. I have not asked the question without checking before, but it does not work for me. I have a Select that depending on what I choose, I will select by default any of the options that I al...
asked by 27.12.2018 / 19:56