Questions tagged as 'mysql'

1
answer

Ionic Framework - Web service or Mysql

An application with Ionic Framework, can access a mysql database like a conventional web application? hostnet. Or is a web service required? And what about the safety issue? The access will be totally online, without using SQlite     
asked by 28.03.2018 / 22:04
0
answers

Popular JStree with MYSQL data - Codeigniter

I have created an example of json to populate a jstree and as below, it worked. Using codeigniter, I would like to know how the database structure could be, taking into account that I need to set up a logic to grant permission for a given grou...
asked by 27.03.2018 / 21:33
2
answers

MySQL error "expects parameter 1 to be resource, boolean given in"

$query = "Select * from servico where ID_SERVICO = $id"; $result = mysql_query($query); if($row = mysql_fetch_array($result)) { $nome = $row['NOME']; if($nome == 'Marketing') { include ("servicos/marketing.php"); }...
asked by 07.08.2014 / 19:13
0
answers

Doubt about session ()

I have a question about using sessions. I'm building a dynamic query system to grab data coming from my database when I click on a link, each link passes an id through the URL. In the page where the magic happens, I get the ID by the _GET method...
asked by 03.04.2018 / 19:35
1
answer

Query in MySQL with AJAX

I created a "usuario" table in MySQL containing name and password. I established a connection with PHP and would like to query for AJAX , to validate this name and password and print a message saying whether they are v...
asked by 03.04.2018 / 15:34
1
answer

Echo respecting mysql line break

I would like to know how to make PHP echo respect the line break of a text in the database. I have a text field in the registration form like this: <textarea id="descricao" name="descricao" class="input form-control col-lg-10" row...
asked by 09.08.2017 / 19:45
0
answers

Bring the data without repeating the id

I have a table named Posts table , I have a table named Users table , I have a table with the name of Relations table . Now what happens is that this relations table works as follows: The Host user goes on the site and creates a post and...
asked by 25.03.2018 / 09:08
0
answers

recover pdf from mysql

My question is the following In my project in the part of register has an option to insert a PDF or xml file, there it uploads in the folder of the server and the path goes to the DB, everything working perfect the problem is the time to disp...
asked by 22.03.2018 / 21:36
1
answer

"Uncaught PDOException: could not find driver" error in Wordpress on localhost

I'm trying to put a site in Wordpress in Xampp (localhost) but when I run it, the following error appears: My error: link    Fatal error: Uncaught PDOException: could not find driver in   C: \ xampp \ htdocs \ phdvital \ public_html \ pa...
asked by 11.09.2017 / 22:42
1
answer

Question about query mysql

I performed a Query on the MySql database, but realized that it brought duplicate values. I did not understand at what point in the Query the problem might be, follow the query. select usuarios.nome as usuario,forma_pagamento.nome as forma, s...
asked by 23.03.2018 / 02:11