Questions tagged as 'pdo'

1
answer

Sybase 15 and Laravel 5.1 via ODBC and error 3811

I have a database in Sybase (Adaptive Server Enterprise) and we started using the Laravel framework to transfer systems that already exist, for him (a migration in the DB can not be considered). Laravel by default can not connect to the ODBC...
asked by 11.08.2015 / 22:46
0
answers

Problem with PDO INSERT

Hello friends I am very lay in PDO and would like the help of friends to try to create an INSERT that would register a font name in the BD font table. Next, I created this code below, based on the UPDATE code that is working: <form name...
asked by 13.05.2015 / 14:42
0
answers

Save ArrayIterator in MySQL

I'm having trouble saving a list of items in ArrayInterator , where I need to save this data in the table when I click a save button. Array code: <?php ... $p = new ArrayIterator($_SESSION['PEDIDO']); while ($p->val...
asked by 12.06.2015 / 04:17
1
answer

Insert into foreign keyed tables with PDO

How to insert into tables with one-to-many relationship containing foreign key Hello everyone, I'm good with a doubt, I have a relationship between two tables in my mysql database as follows: MyquestionishowcanIgettheinsertioninthetwotablessi...
asked by 02.05.2015 / 02:13
0
answers

How to mount the Json return

I do not know how to do it or who to turn to. I need to do this json return with Jquery.Ajax I would like to pass parameters more or less like this In JAVASCRIPT I have this $.ajax({ type: "POST", url: ".....
asked by 05.03.2015 / 14:48
1
answer

SELECT with JOIN return an Object with Internal List

I would like to know if it is possible to do a select with join where the second table table will return more than one row and in that create an object with an inner list. To get clearer, see the example: Tabela Usuario: idUsuario, nome, cpf T...
asked by 06.11.2014 / 22:05
0
answers

I can not connect pod_mysql to Netware

I have a NetWare IA32 NLM 6 50 server, with Apache 2, PHP 5.0.5 and MYSQL 4. In php.ini I have already connected the PDO drivers, which are already built into PHP 5 and even then I can not communicate with MySQL: extension=pdo.so ext...
asked by 12.11.2014 / 15:53
1
answer

While in While PHP Pdo [closed]

I would like to know how to do a while within another ... Ex. I have Categories and items within the category. Categoria 1 | Item da categoria 1 | Item da categoria 1 Categoria 2 | Item da categoria 2 | Item...
asked by 28.04.2017 / 21:48
1
answer

PDO data insertion, does it work?

I am trying to create a registration page with the PDO however, it does not perform the insertion and does not present an error, what can it be? include "../pages/sqlconn.php"; $name = $_POST["name"]; $email = $_POST["email"]; $pass = $_POS...
asked by 29.05.2017 / 19:39
1
answer

Search session user record in mysql

I have a follower exchange system, where the user irar logs on the panel and use his list then created a texarea so he can put his list which is in the email @ provider: password format and then save the data in the database table and aft...
asked by 25.03.2015 / 00:34