Questions tagged as 'php'

2
answers

error with msqli_num_rows

I'm quite new to the subject of programming and I'm having problems when it comes to programming my website's search engine. This is the page where you tell me the error is: require_once ('../bbdd/bbdd.php'); $search = ''; if (isset($_POS...
asked by 20.04.2017 / 12:43
6
answers

How to destroy a session started in php

Which is the easiest way to destroy a Sesión , which even if they go back in the browser, does not allow them to enter after they have left. This is the code I have to verify the session started: <?php include("conexion.php");...
asked by 19.04.2017 / 18:49
3
answers

How to download Excel file from the WEB server?

I have an Excel 2007 file (xlsx extension) in a server directory (external to the web root), the question is: How can I download it from a web link?    For more clarity the file is e: \ clients \ company \ prueba.xlsx       I have a website...
asked by 18.04.2017 / 19:04
3
answers

show only days without saturdays, Sundays and holidays

know of a function of how to only show the days of the current month without counting Saturdays, Sundays and holidays of the country of Colombia I found this object to detect the holidays. class festivos { private $hoy; private $festivos;...
asked by 21.03.2017 / 15:39
1
answer

Problems with sqlsrv_errors in php

I am using PHP 5.6 on IIS 10 with SQL Server 2014, and I have the following function to make inserts, updates and deletes to the database: <?php public function ejecutarSQL($sql,$parametrosSQLServer=array()){ $bandera=false; $msg=""...
asked by 07.03.2017 / 20:25
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 / 22:31
1
answer

Error to know who is connected as FaceBook

Hello friends I have a very strange error with my code to see who is connected but this works when you want there is one that comes online and there are others offline and the weird thing is that there are others that do not even leave anything...
asked by 07.03.2017 / 01:48
2
answers

Generate in textbox a date calculated adding field DAYS and CURRENT DATE

I have a system of fines in which the days of fines must be placed and the date on which this fine starts and finishes, it happens that when the days are placed in a separate field it may happen that the number of days does not match the start a...
asked by 23.02.2017 / 13:34
1
answer

Connect PHP linux to a database hosted on the windows (DB POSTGRESQL)?

I'm doing a project php in windows with a database engine POSTGRESQL , to test the correct operation I had to pass the project to linux (virutalbox~ubuntu) the problem is that I do not know how to connect to the databa...
asked by 22.02.2017 / 13:37
1
answer

Increase correlative with an insert

I have a table with this structure: CREATE TABLE IF NOT EXISTS 'prueba_insert' ( 'id' int(11) NOT NULL, 'asiento' int(11) NOT NULL, 'correlativo' int(11) NOT NULL, 'glosa' varchar(30) NOT NULL, PRIMARY KEY ('id') ) ENGINE=InnoDB DEFA...
asked by 22.02.2017 / 15:56