Questions tagged as 'mysqli'

2
answers

Generate report when sending PHP form

I need help with the submission of a form and at the same time I generate the report of the data sent by it, that is to say that by pressing the save button the data is inserted (part that I already have made) but that also direct me to the gene...
asked by 21.03.2018 / 21:09
0
answers

The first else is always executed if PHP spent a while

I'm doing some verifications for a telegram bot that I'm testing, always the first "else if" is executed when it should not be, for example: I have a client whose payday is the 24th of this month, then, five days before the bot sends you a warni...
asked by 19.03.2018 / 07:52
1
answer

Can someone tell me the failure of my mysqli query?

My mistake is that when you send the form you send the echo but it does not save the sqlm insertion if you can help me I would appreciate it. if (isset($_POST["enviar"])) { $snombre = $_POST["snombre"]; $stel = $_POST["stel"]; $semail = $_POST...
asked by 06.03.2018 / 17:58
0
answers

How to bring a query to the database by Dates?

As the title says I am trying to make a query for a range of dates to the database 'Facilities', to the table 'PROYECTOF' to the field called 'Date' But I do not have much idea of how to do it since I am starting with php. My HTML code is as fol...
asked by 12.03.2018 / 15:44
3
answers

What is the error in these PHP codes? (Warning: mysqli_num_rows () exp ..) (Warning: mysqli_fetch_array () exp ...)

I'm following a tutorial to create an feed on Android. I have already created the database and I have uploaded the PHP scripts to the host, but I get these errors:    Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, bool...
asked by 30.10.2016 / 05:39
1
answer

Error updating the php5 to php7 script

Sorry for the inconvenience my dear and wise programmers well I have a small error when updating my scripts from php 5 to php 7. I was updating a small visitor counter and it gives me a lot of errors in some lines to see if you can help me th...
asked by 26.02.2018 / 02:19
1
answer

select the name of the date using sql

I want to make a query using SQL that allows me to see the records of all months by a parameter that I will send is the year how do I get the name of the month and then pass it to laravel code. here I leave the SQL code of the query SELECT mes...
asked by 26.02.2018 / 14:54
0
answers

Change values of php variables when changing the select value

I have a series of queries which all depend on the period 'FY' and in turn quarter 'Q'. What I want to do is use two selections and when the user selects the period and quarter that he wants to see, he changes the results collected from the data...
asked by 28.02.2018 / 19:01
0
answers

How to get only the fields that were updated in mysql query?

I am making a web application where every interaction that the user makes in the system saves it in a table of the database, including before and after the update. I have a code where I consult the data before the update first and store it in...
asked by 21.02.2018 / 23:57
0
answers

Do not insert all the fields in my BD

<?php $turno = $_POST['idctg_turno']; $entrada = new DateTime($_POST['hr_entrada']); $salida = new DateTime($_POST['hr_salida']); $arraydia = $_POST['idctg_dia']; $mysqli = new mysqli("localhost", "root", "", "admon"); if ($...
asked by 22.02.2018 / 10:04