Questions tagged as 'php'

1
answer

how can I save all the data within a table with php

<?php if (isset($_POST['buscar'])) { $grado=$_POST['grado']; $sec=$_POST['seccion']; $query="SELECT * FROM estudiante WHERE Grado='$grado' AND Seccion='$sec'"; $resultado=$conexion->query($...
asked by 14.10.2018 / 04:57
2
answers

How to obtain the incremental auto value in sql server 2012?

Hello everyone diculpen by this question may be something unusual or absurd, but I am looking for the autoincrementable value of a table. In MySQL it's this SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '...
asked by 14.11.2018 / 03:08
1
answer

Create an array with date and time data in php

I have to create an array in PHP with information that comes from a json. Currently I have my code that creates an array where it keeps the date "10-15-2018" with its total number of messages. Now I need to modify my array to be able to ca...
asked by 22.10.2018 / 03:07
1
answer

I can not run php artisan serve

I have been trying to run my site that is published on the web but I was giving this error:    chdir error (): No such file or directory (errno 2) however I did what I got in this post from SO , I ran again% e_co% and now it shows me ano...
asked by 06.10.2018 / 19:39
1
answer

Format to show Query response in MySQL

I would like to know if there is a way to get the last two weeks and its amounts in SQL, I explain: The following query brings me the last two weeks with its quantities of the same product: $first = strtotime('last Monday -14 days');...
asked by 01.09.2016 / 14:54
2
answers

Undefined index in php and SQLite3

I need help with an error, I am inserting data in a table called "posts" but it gives me the news that in certain fields where null is allowed, it says "Undefined index ... in ....... .... " I do not understand why this error occurs if these f...
asked by 12.02.2016 / 04:51
1
answer

PHP help does not recognize pdf type

$ _ FILES ["file"] ["type"] does not work with pdf, any other type such as jpg or png or csv recognizes them type pdf appears blank, I am working with php 5.6.31 Any other solution to recognize the type pdf would be very helpful, thanks     
asked by 07.05.2018 / 04:15
1
answer

Mysql forces me to fill in fields not null suddenly [mysql mode strict]

PHP PDO or MYSQL is forcing me, from one day to the next, to save fields not null of a table, before, if it was an integer, mysql automatically put a 0 . Let me explain. I have this table: clients id int auto incremental not...
asked by 25.04.2018 / 15:58
1
answer

Mysql and php dates

I need to bring some data from a person table, especially the birth field, but I need at birth to only show me the year and I can not do it, it throws me empty. How else can the problem be solved? Note: Placing only the query to test it on...
asked by 04.04.2018 / 20:31
2
answers

How to use serialize in a form with File type input?

I have a form in html to register a product for it use ajax, when I make a serialize to the form I get all the fields of the same except for the field of type file that with FormData (), I can get this field but I like to know there is a way wit...
asked by 30.03.2018 / 12:30