Questions tagged as 'php'

5
answers

How to show data obtained from an object in angularjs?

I just made a query to my database which I return object These store them in localstorage localStorage.setItem("Tickets", JSON.stringify(response)); and in another function I call them like this: var headshot = loc...
asked by 11.10.2016 / 20:37
2
answers

How to consult the database in angularjs?

I'm working with angularJS, a project created with YEOMAN-Generator! and I need to consult a database. I thought I could integrate php with a simple query but it still does not leave me. As I did? Well, here's the code: Inside th...
asked by 11.10.2016 / 17:57
3
answers

Can you install Node.js in a Shared Hosting Service?

I am doing a project with Php but I need to use Node.js to add more functionalities to the project, but this is hosted on a shared server, and I had a question. Can Node.js be installed on a shared server? and if this is not how I can work using...
asked by 12.10.2016 / 23:04
5
answers

sql problems for booking inquiries

I am creating a small web booking application for boats, where the client can check which ones are available and, based on this information, reserve one from the list. My PHP query script is this (also here ): <?php error_reporting(E_AL...
asked by 13.10.2016 / 10:52
1
answer

Save fix in PHP database

I have an arrangement that I sent by AJAX to PHP to insert it into the database, the arrangement arrives to me in the following way: $datas = Array ( [0] => Array ( [0] => Array...
asked by 10.08.2016 / 23:31
3
answers

How to export all wordpress post to an XML file with php?

I would like to know if anyone knows how to export all the posts from my site in wordpress through PHP code, which will take data such as the title of the post, prominent image, content, put it in its respective label and save it in an XML file...
asked by 10.08.2016 / 04:30
1
answer

Use variables outside of $ sheet-each () - Laravel Excel

I have a function that imports an Excel with the Laravel-Excel library, and within that function in the $ sheet-> every (function ($ row)) {} I am adding the records in an array that I have declared inside the function but outside the $ sheet-...
asked by 09.08.2016 / 09:32
2
answers

Error with $ _SERVER ['$ PHP_SELF']

I have a CRUD but when I insert it, I get the following error:    "Forbidden access!   You do not have permission to access the requested object. The object is protected against reading or the server can not read it.   If you believe that t...
asked by 06.08.2016 / 17:09
1
answer

Indefinite variable PHP_SELF

I'm doing a small example to identify when a page is reloaded for the second time, use php v5.7.14 PHP: <?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { echo "primera vez"; } else { echo "mas de primera"; }?> HTML: <...
asked by 07.04.2017 / 15:51
2
answers

Compare variables in Blade [closed]

I need to make a comparison between 2 variables: Controller: $files = \File::files('images'); foreach ($files as $file) { $info[] = pathinfo($file); } $books = File::where('status', 1)->select('name')->get(); return view('catal...
asked by 15.07.2016 / 04:25