Questions tagged as 'php'

3
answers

Paginacion en php

Good afternoon I am currently working on my project and I have run into an error in paging when consulting some data from a table with php. The point is that I can not detect the error because in the first query the information appears, but when...
asked by 19.06.2016 / 22:56
1
answer

add dynamic rows to a table with data from another table

Good morning, I need help to do the following: I need that from a modal with a table of data (extracted from my database), they are added to another table, dynamically. This is the design of my modal, showing information from my database:...
asked by 19.06.2016 / 15:53
1
answer

Uncaught Error: Call to a member function fetch_object () on boolean in - What is the error?

Good for everyone, I have a problem with this error, I am a beginner I searched and I have not found a solution. It is an appointment form and the database is in phpMyAdmin, this form is to attend an appointment then First only the appointments...
asked by 22.05.2016 / 19:19
1
answer

List of Students in PHP and MySQL

I am developing a student registration system, they have a career, semester, period. These attributes are stored in the student table as an id, race_id, semester_id, period_id, and represent a data from another table, since I have selections loa...
asked by 26.05.2016 / 04:42
2
answers

Compare dates in php

Why this example does not work for me: $fecha = new \DateTime("2016-05-17 0:0:0"); $fechaCounter = clone $fecha; $fechaLimite = clone $fecha; while ($fechaCounter <= $fechaLimite->add(new \DateInterval("P2D"))) { echo "hola mundo";...
asked by 15.05.2016 / 15:19
2
answers

Update several records of a column in a single SQL query

I want to reduce the number of UPDATEs that I make from my application to the table ventas of my database. This UPDATE sends a value to the record in the ordenadores column, as long as it matches the values passed to id and...
asked by 16.05.2016 / 21:13
2
answers

Is it possible that $ _POST only select textarea that have a value?

I have 2 web pages, one that is the main one (a form), which I am asking for some data by textarea and with a button I give them the option to generate more textarea to be able to continue writing. <script language="JavaScript">...
asked by 23.03.2017 / 12:59
4
answers

If with $ _SESSION

if(!isset($_SESSION["TIP"])){ header("location:../index.php?msg=1"); }else if(isset($_SESSION["TIP"])){ if($_SESSION["TIP"]!="Normal"){ header("location:../index.php?msg=3"); }else if ($_SESSION["TIP"]!="Gold") { hea...
asked by 13.12.2018 / 06:54
1
answer

Parse error: syntax error, unexpected (T_VARIABLE)

Help, I'm just learning PHP and HTML I can not find the error even if I already search like 1000 times The mistake that marks me is on line 11 and it is this: Parse error: syntax error, unexpected '$ Name' (T_VARIABLE) in C: \ AppServ \ w...
asked by 15.12.2018 / 02:16
2
answers

Download in Null

On my%% co_button I have a "Descargar excel" that leads to the following function in onclick : function downloadExcel(status) { $.ajax({ url: "http://localhost/WareHouse/reporte.php?status="+status, type: "GET", succ...
asked by 14.12.2018 / 22:44