Questions tagged as 'php'

1
answer

Security of a form that sends to a controller the name of the table of the database that he has to use

I have a form that sends the following information to the controller: <form method="GET" action="index.php"> <input type="hidden" name="nombreTabla" value="Colegios"> <input type="text" name="alumnoID"> <input...
asked by 18.04.2018 / 17:19
0
answers

How to traverse an array to insert data from an HTML table to MySQL

I am new in this of the fixes, and I want to know how to go through them correctly to make an insertion of data based on the contents of a table, how should the code be to execute the corresponding queries?: SaveFactura.php <?php $htmlCo...
asked by 23.04.2018 / 02:38
1
answer

How can I block an ip to a redirect php file?

This is my redirect file in php <?php header("Location: https://www.ejemplo.org/anuncio1.php"); ?> What code do I need so that when a person with an ip. for example 192.168.1.1 can only be redirected once a day or once per hour to that...
asked by 18.04.2018 / 20:40
1
answer

connection odbc php

Thanks for your help colleagues, I'm just beginning in the world of programming, I appreciate your help. I'm doing a search menu with php with odbc connection. The connection file is as follows: <? $dsn = "PG_EXCEL"; $usuario="postgres";...
asked by 18.04.2018 / 21:56
1
answer

In SQL, does SET time_zone work for a table or the entire database?

When exporting a MySQL table, this was the result: -- phpMyAdmin SQL Dump -- version 4.4.10 -- http://www.phpmyadmin.net -- -- Servidor: localhost:8889 -- Tiempo de generación: 18-04-2018 a las 21:18:37 -- Versión del servidor: 5.5.42 -- Versi...
asked by 18.04.2018 / 19:55
0
answers

Sending emails with Codeigniter

I'm stuck with this, I have the following driver: function prueba_envio_email() { $config = Array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.googlemail.com', 'smtp_port' => 465, 'smtp_user'...
asked by 04.04.2018 / 17:17
0
answers

problems updating data with php and mysql

I am working with the loadata but mysql if you accept the "" but not php, so I decided to insert all the raw data (with loadata but using only varchar fields) in a table for later on those fields to do operations, my problem it is in the last co...
asked by 05.04.2018 / 01:17
0
answers

Notice: Undefined variable: userid in

I'm running a code but it marks these errors:    Notice: Undefined variable: userid in   C: \ xampp \ htdocs \ Edu \ profile.php on line 69       Notice: Undefined variable: followerid in   C: \ xampp \ htdocs \ Edu \ profile.php on line 69...
asked by 06.04.2018 / 05:16
0
answers

Menu that does not take me ajax

I have a problem with a dependent menu made with the YII framework, what I need is that when I enter a value in a dropdown and change another two dropdown, but it only takes me a few. this is my controller: public function actionAjaxListado...
asked by 04.04.2018 / 18:20
0
answers

Send data from a form on the same page

I wonder if it is possible to send data from a form on the same page with all the code. Separately it works perfectly for me, but what I need is for the data to be sent in the same file and refreshed. I leave my code here. <?php //...
asked by 06.04.2018 / 22:42