Questions tagged as 'codeigniter'

2
answers

How to show the results of a query in mysql with php in an html table?

What I need is that when executing a query to the database, this result is displayed in a table and in each column what corresponds, is done with php and mysql what happened to them what I was doing $query = 'SELECT DISTINCT per.PERSC_Nombr...
asked by 17.04.2017 / 21:56
1
answer

Download image from the name saved in the Codeigniter ajax database?

Currently with a plugin upload the image to my server, with this plugin (Dropzone.js) carturo the path of this file. I do all this to avoid having to upload the tax file to the database and I only keep the name. Example upload file capture...
asked by 17.04.2017 / 06:13
2
answers

Connection of SQL SERVER 2012 with Codeigniter

Hello everyone, I am developing a system with CI, Mysql and Sql Server 2012, I am configuring in php 5.6.30 and I put all the exemptions in php.ini and nothing I get this error when I pick it up and that's in my databse, php $db['sqls...
asked by 10.04.2017 / 17:55
1
answer

How do I load selects with jQuery, Ajax and Codeigniter

As it does, this file is to load the library of jquery to be able to use ajax and the jquery code where we will say that when the select with id country changes of option, in the change event table pp_countries ------------------ id country_na...
asked by 30.03.2017 / 23:50
5
answers

Print value out of foreach

I have generated a list that is generated in the following way: foreach ($productos as $p) { echo '<tr>'; echo '<td>' . $p->codigoProducto . '</td>'; echo '<td>' . $p->categoriaNombre . '</td>...
asked by 06.04.2017 / 01:41
1
answer

Redirect with or without bar (/) slash at the end in Codeigniter

I use the codeigniter framework for development, the problem is that I have the following url http://localhost:8080/proyecto/index.php/home/ , with this url everything works from 'wonder' everything is loaded correctly, but if I use this u...
asked by 13.03.2017 / 14:37
1
answer

How to receive codeigniter variables without having to load the view?

To edit the data of a person I have a button which when pressed takes that id and sends it not by ajax but directly to the controller with the id to make the validation and bring the data ... What I want is for that data to show me in a modal...
asked by 07.03.2017 / 23:31
1
answer

codeigniter queries

I have an error in queries with codeigniter, I do not know how to eliminate those inverted quotes that are generated when passing the variable $ id2, and I do not recognize the variable $ id2 as a number. function Consulta_iClientesall($id2)...
asked by 12.06.2017 / 18:45
1
answer

Codeigniter Login

I recently started developing an application using CodeIgniter and the following problem came up: I have a login form that is part of a navigation bar, the idea is that if the user indicates wrong login data, an error message will be printed...
asked by 12.02.2017 / 03:18
1
answer

Get the length of the variable stored in the database table with codeigniter

It turns out that in my database I have a table called votes , in which within the column option I store a and b Then I want to get the total amount of 'a' stored in the table as well as the total amount of 'b' stored in the table....
asked by 22.12.2016 / 21:42