Questions tagged as 'pdo'

1
answer

problem with namespace and PDO [duplicate]

asked by 30.10.2017 / 13:02
0
answers

Two databases with PHP PDO?

I'm trying to make a connection to two databases with PDO ta like this. Config.php <?php class config{ var $host = 'meuhost'; var $usuario = 'meuusuario'; var $senha = 'minhasenha'; var $db = 'banco1','banco2';...
asked by 15.11.2017 / 17:47
1
answer

Inserting, editing, removing and displaying data Asynchronously

I have a CRUD in PHP developed with the MVC standard, all the interaction with the database is done with PDO, my challenge is, to pass all the data requests asynchronously using Ajax and Json. I have only theoretical knowledge about asynchronous...
asked by 09.12.2017 / 17:52
0
answers

Connection to external database [closed]

I created a database on 000webhost and I created a connection with PDO to access it from my localhost on vertrigo <?php //CONSTANTES define('HOST', 'databases.000webhost.com'); define('USUARIO', 'meuusuario'); define('SENHA', 'minhasenha');...
asked by 09.10.2017 / 05:47
0
answers

SQL Server drives recognition for db connection in PHP [closed]

I am having trouble connecting to the SQL Server database. I can not install the drives to be recognized. On the internet I've tried all sorts of things and nothing worked. I downloaded the drives on the Microsoft website, I put it in the php ex...
asked by 01.09.2017 / 15:24
1
answer

Menu, NAV Bootstrap dynamic submenus with PHP PDO Mysql

Good evening. I need to put together a dynamic, three-table menu that needs to be interconnected, but I'm lost. Here's a part of the organization chart below: Atthemoment,Ihavethefollowingcode:<liclass="dropdown"> <a href="#" cl...
asked by 26.09.2017 / 03:46
1
answer

How to select an option in select less laborious way?

I have a page called editarpublicacao.php which receives id through GET . One of the two <select> for example contained in the page, is similar to that of the companies: <select name="company" data-plac...
asked by 29.09.2017 / 17:43
4
answers

MySQLi vs PDO - Which is the most recommended to use?

With mysql_* entering the deprecated state, the PHP documentation recommends using the PDO and MySQLi. Which do you recommend for use? PDO seems to be more suitable for working with object-oriented only than at the same time I saw...
asked by 06.03.2014 / 18:10
1
answer

Multiquery PHP PDO - SQL Server 2012 - IIS 8.5

Is there a problem in running multiple queries with the same PHP PDO code? Example: <?php // Retorna $con include 'conexao.php'; // Suponhamos que dbo.minha_tabela tenha apenas três campos, sendo um deles a chave-primária auto increm...
asked by 11.01.2017 / 19:04
0
answers

PHP with PDO returning BLOB records with foreach

Good afternoon guys, I'm new here (first question), but Stack has already helped me in many situations. Here's the problem: I'm developing an application and on a certain page there is a user profile page. On this page, a div that displays...
asked by 05.01.2017 / 20:39