Questions tagged as 'php'

2
answers

No select error with PHP + MySQLi

I'm trying to use a query to pull a specific ID from another page. I can get ID through $_GET , I printed the query to see if it was right, even though it did not show me what error it was. Code: <?php $mys...
asked by 31.05.2016 / 06:21
3
answers

How can I check if a variable is in date format?

Well, I want to check if a $ x variable is in the date format (yy-mm-dd), how can I do this with PHP?     
asked by 18.02.2017 / 01:24
2
answers

How can I add an array inside an array?

I need a multidimensional array that will be composed of information from the database, but I'm not able to add this information. I can not explain very well, so I'll show you. As soon as I want it: Array ( [0] => Array (...
asked by 15.02.2017 / 19:45
2
answers

How to use "include / require" in CodeIgniter in the right way?

I'm migrating from PHP to CodeIgniter , and would like to know how to use include or require right in my code?     
asked by 04.03.2017 / 05:03
2
answers

Doubt JS with input type file

Good evening, I need some help on the input part, I have a <input type="file" id="filesend" name="file" multiple/> How do I make a script that automatically detects when the user places a file in the input and sends $_POST['f...
asked by 02.12.2015 / 00:56
1
answer

Display / Hide "Terms of Use" by clicking checkbox

How do I checkmark a site's content when I check it? For example, I want to make a terms of use system, whereby clicking on "I accept the terms" will release the button to proceed with the content. I made the following form, I created a co...
asked by 14.11.2015 / 22:36
3
answers

Do an independent search of the order of the keywords

I have a database in which I need to search based on the keywords, regardless of the order. See the full table below: +----+-----------------------+ | id | description | +----+-----------------------+ | 1 | joão de santo cristo | |...
asked by 04.03.2017 / 06:05
2
answers

PHP condition for not displaying image when it does not exist

My problem is as follows. I have a table with several product images, but not all products I have 5 images (total BD columns). what I wanted was to "undo" the html line when the image does not exist. I tried this code <?php  if (!empty($ima...
asked by 01.12.2015 / 17:43
2
answers

Check if user changed POST request

I have a javascript application that runs on the client side, in this application the user can trigger events that communicate with the server of my site through a POST request. However, I need to ensure that the user does not have forged the...
asked by 12.11.2015 / 12:39
2
answers

Insert data from one table into another

Well, I'm breaking my heart with this problem, I've had some time and I wanted your help. I have a code that inserts data into the venda table: <?php if(isset($_POST['send'])){ $venda = $_POST['num_venda']; $d...
asked by 01.12.2015 / 17:41