Questions tagged as 'php'

1
answer

Redirection 301 friendly url

Create a friendly URL like this: RewriteRule ^productos Productos.php [NC,L] but now I want to make a 301 redirect to midominio.com/Productos.php so that whenever I type Productos.php redirects me to midominio.com/p...
asked by 10.07.2018 / 02:49
1
answer

Error in showing data when adding a where in a MySQLi query?

It does not reflect the data when adding a where in a MySQLi query, if I delete the WHERE the data is reflected. <?php $stmt = $con->prepare("SELECT id_world,hour,date_matches,local,visitor,active FROM world WHERE active=?...
asked by 05.07.2018 / 03:58
1
answer

problem to relate tables with foreign in laravel

I do not know why it says registry table, if registration is called my database ..     
asked by 28.08.2018 / 00:14
2
answers

Blocking when using AJAX making multiple queries to MySQL

I could not determine a good title for my problem but it is the following one, I am doing a small page to make queries to a database, the idea is that while the user writes in an input the results are shown in a table , for that I am implemented...
asked by 28.08.2018 / 15:52
1
answer

2 connections to Mysql in the same PHP

I have a problem with connections to mysql currently from a PHP I establish connections to mysql in the following way <?php $date = strftime( "%Y-%m-%d %H:%M:%S"); //FECHA function conectarse($host,$usuario,$password,$BBDD){ $link...
asked by 27.07.2018 / 19:53
1
answer

Error with the function "function bind_param () on boolean"

I have an error with a php line, and I can not find the error. function existingEmail($Email){ global $mysqli; $stmt = $mysqli->prepare("SELECT id FROM users WHERE Email = ? LIMIT 1"); $stmt->bind_param("s", $Email); $stm...
asked by 25.07.2018 / 20:39
1
answer

Problem with include_onde () when calling my db

I have this line of code include_once('./config/dbh.inc.php) to include the database to a data upload file but I get this error: Warning: include_once(./config/dbh.inc.php): failed to open stream: No such file or directory in C:\xampp\h...
asked by 20.06.2018 / 15:22
2
answers

How to pass values to a PHP on the same page and keep them selected

In this case I am sending values (of a select and a number), the values pass normally, but the problem is that when I select one, the other one is deselected, but what I would like is that they be selected (if is that you select the two), as you...
asked by 18.06.2018 / 20:16
2
answers

Print button if a value is empty

I have a table that shows the records of orders delivered, and to finish the registration there is a "Add referral" button to save the referral in the database. I want to do that when the table reloads and if the referral has value that does not...
asked by 19.06.2018 / 15:20
1
answer

How can I navigate this JSON

I've been trying to traverse this JSON but it gives me the blank value when doing echo. { "Score": { "GameKey": "201811102", "SeasonType": 1, "Season": 2018, "Week": 11, "Date": "2018-11-18T13:00:00", "AwayTeam": "DAL...
asked by 22.11.2018 / 20:38