Questions tagged as 'mysql'

1
answer

Scrip to fill in 2 related database tables in Laravel

Good morning, I am currently doing a system to manage a library and I am looking for a method to fill in two related tables, for example: I have in my database the table books and the table authors both related by their respective id. Indivi...
asked by 06.12.2016 / 00:36
1
answer

Do not select the database ... mysql_select_db () expects parameter 1 to be string [closed]

<div class="columnader"> <?php session_start(); $servidor="localhost"; $usuario="root"; $pass=""; $based="pruebastarento"; $conser=mysql_connect($servidor, $usuario, $pass);...
asked by 01.06.2017 / 16:47
4
answers

Page loses styles

Someone could help me guiding me on how to know which is the problem for which my page loses the css style ... is a news page that I am creating, uploads data through Ajax when doing scroll until the end, infinite scroll type, it worked fine, bu...
asked by 18.11.2017 / 18:49
3
answers

mysql query with php form variable

Error: Part of the PHP code: //Habiendo conexión, la base de datos puede no existir o ... mysqli_select_db ($conexion, $basedatos) or die ("No se encuentra la base de datos"); mysqli_set_charset ($conexion,"utf-8"); //Haremos una consul...
asked by 04.11.2017 / 18:21
1
answer

Problem Database

Good! I need you to help me know how to upload correctly or what to do with this problem in my database: I uploaded my website to the host of 000webhost.com and everything goes well in fact I leave the link of my page: My website The problem i...
asked by 10.09.2017 / 18:56
2
answers

How to extract a database query (MYSQL) to a PHP page

I would like to know how I can extract the information collected in a php query variable, to see it in my html document to query the database. ANNEX: PHP-HTML CODE: <!DOCTYPE html> <html> <head> <title>CRITICO&...
asked by 20.05.2018 / 23:06
4
answers

Is it possible to use values separated by commas to insert in a single column in MySQL?

Reviewing the documentation syntax on INSERT INTO ... , which to me judgment is not entirely clear, it would seem that it is possible to insert a list of values in the same column. {VALUES | VALUE} (value_list) [, (value_list)] ......
asked by 24.07.2018 / 03:51
1
answer

hello I can not find my error Parse error: syntax error, unexpected end of file in C: \ xampp \ htdocs \ caddy \ grades.php on line 89 [closed]

   Parse error: syntax error, unexpected end of file in C: \ xampp \ htdocs \ caddy \ grades.php on line 89 This line is the last in my code maybe forget to close something but I already check and I do not see it, the fact is that I want to...
asked by 20.06.2017 / 20:43
1
answer

Identify the field in a consula inner join mysql

The following code executes an INNER JOIN query select * from reservation INNER JOIN pacient ON pacient.id_history LIKE '%2%' GROUP BY pacient_id ORDER BY pacient_id DESC limit 0,12 It turns out that when consulting the id there is a sli...
asked by 09.07.2017 / 23:21
1
answer

Error SQLSTATE [HY000]: General error: 1366 inserting CVS with PHP Mysql?

I have a page that lets you import CVS to Mysql database, but when in the CVS there is a symbol that occupies 4 bits instead of 3, I get this error: SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\x96 0014...' And the impor...
asked by 27.04.2017 / 09:39