Questions tagged as 'php'

2
answers

Read a specific value in Json with PHP

I already researched all the sites, but I could not find a way to get the totalPage value. I'm reading Json with PHP and I need to get this value to do the pagination. The data below follows. object(stdClass) # 1(3) {...
asked by 29.10.2017 / 22:11
2
answers

I can not use foreach with object twice in the same view in laravel

I have a big problem that I can not solve because I am still a beginner in Laravel. The problem is that I'm developing a web application and I need to list the cities object in two different select, however when I add the second foreach it gives...
asked by 26.10.2017 / 20:07
2
answers

Read txt file and do javascript validations

I have a txt file that contains more than a thousand lines, each line has a number that needs to be validated by a javascript script that I have ready. I would like some script in php or javascript even read the file in txt, take line by line...
asked by 27.10.2017 / 23:32
1
answer

Error: Invalid argument supplied for foreach ()

I'm having a problem displaying my scrapbook, giving this error: Warning: Invalid argument supplied for foreach() in /###/###/###/view/list.php on line 11 The file looks like this: <div class="container marketing"> <?php for...
asked by 26.10.2017 / 18:36
1
answer

Join in the database

I'm developing software where the user selects the items in his house, selects how long he does not clean them, and at the end he fills out a form to receive an e-mail discount and clean the items. All this data goes to the bank. However,whendo...
asked by 26.10.2017 / 18:28
2
answers

Non-filtering search filter

So, I have a page with a search form pro user selecting what will appear in his table. When the user clicks the submit button, another page should appear with the table properly filtered. This is the code for the page that will open: <!-...
asked by 26.10.2017 / 17:47
1
answer

PHP Save form data to array and display in another page

Good afternoon. I'm trying to create a form whose data will be stored in an array and should be displayed on another page when people's records are finalized. I'm trying to do this with SESSION, however, I do not think I'm getting the shape d...
asked by 01.11.2017 / 16:04
2
answers

submit a form when selecting a select option, without doing page reload

I need to submit the data of a form (they are hidden) when selecting the option in select, this with ajax without reload of the page. I have the following code, which works fine, but does not send (POST) form data that is hidden: <form c...
asked by 08.11.2017 / 13:23
1
answer

how do I resolve the error Undefined property: stdClass ::

Notice: Undefined property: stdClass::$nome in C:\xampp\htdocs\peliculas\Model\Cliente.class.php on line 79 Notice: Undefined property: stdClass::$id in C:\xampp\htdocs\peliculas\Model\Cliente.class.php on line 80 How do I re...
asked by 14.11.2017 / 00:14
1
answer

Uncaught TypeError when using the Jquery Mask Plugin

I received the "Uncaught TypeError" error when using the jQuery "mask" function Mask Plugin. Herearemyincludesinthefileeditar_usuario.php.<scripttype="text/javascript" src="<?php echo $site."js/chama_ajax.js" ?>"></script>...
asked by 12.11.2017 / 00:22