Questions tagged as 'php'

2
answers

Should I complete this directive or not? php echo dirname (__ FILE__); ?

This I found as an example on the internet to know the path where I am in Linux (where you have the file to get the absolute path): <?php echo dirname(__FILE__); ?> Now my question is: what do I have to complete what is in parentheses...
asked by 02.05.2016 / 22:23
2
answers

Add an "id" to an element created in PHP

I'm starting with PHP and I have a doubt, maybe a little basic, but the truth is that I can not solve it. What I'm trying to do is create something like a traffic light where the images are changed every so often, depending on the color they hav...
asked by 06.11.2016 / 02:05
1
answer

Undefined property and call to a member function on null in codeigniter

I'm doing a project with php and codeigniter but I get an error my codes are as follows: database.php       $active_group = 'default'; $query_builder = TRUE; $db['default'] = array( 'dsn' => '', 'hostname' => 'localho...
asked by 04.10.2016 / 23:46
1
answer

Error Message, handling functions with POO and PHP .. Fatal error: Call to a member function fetch_all () on a non-object in

class OperacionesAlumno{ private $server = 'localhost'; private $usuario = 'root'; private $pass = ''; private $bd = 'dbvasco'; public function Conectar(){ $conexion = mysqli_connect('localhost','root','','intranet'); mysqli_set_charse...
asked by 29.09.2016 / 21:42
1
answer

Is there any way to put php code in contact form 7 to make my trackin?

I have some Landing Page in html code, now I am thinking about passing them to wordpress, in contact.php I have a php code that takes some values, I would like to know if I pass it to wordpress those php codes that I have in the contact Can I pu...
asked by 29.09.2016 / 17:12
1
answer

Query with WHERE statement in CodeIgniter does not work

I am trying to make simple queries to a MySQL database from CodeIgniter. For that I have a view called "Menu", here I will fill it with 3 categories: Meals (2), Drinks (1) and Desserts (3). In the database I have 2 tables, producto and...
asked by 22.03.2016 / 20:07
1
answer

jQuery Autocomplete in CodeIgniter, unable to resolve

Good If I autocomplete , but I want to save the value of the code, id and descripcion in the corresponding fields, I see that console.log shows {label: "3321", value: "3321"} , which values is the code you select, as it woul...
asked by 23.03.2016 / 04:07
3
answers

Memory error when importing data in MySQL from an Excel excel file

This is receiving the following error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2 bytes) in C:\xampp\htdocs\servisa\Excel\reader.php on line 482 I have to read a very large Excel file (13 mb, 9...
asked by 12.04.2016 / 00:18
1
answer

Autocomplete with JQuery UI -Function Select

Good, as I do so that the values of the array that returns me are loaded in the inputs, I see that the Select function of the autocomplete has a problem, console.log(ui.item) appears Object {label: "22222", value: "22222"} , when I...
asked by 06.03.2016 / 23:37
2
answers

Problem with PHP conditions

This is my problem, I'm doing a form to record resolutions, it turns out that one of the conditions must be that there can not be two active resolutions at the same time, so I did this: $ques = "SELECT COUNT(*) as total FROM resolucion WHERE e...
asked by 01.12.2018 / 04:38