Questions tagged as 'php'

1
answer

How to connect JDBC (H2 Database) in PHP?

How to connect a JDBC database (specifically H2 Database) in PHP? The database is in a single file with extension .db     
asked by 17.10.2015 / 17:27
1
answer

In which part of the application is it most appropriate to reorder an array (database, server application, client code)?

Let's suppose that in a MYSQL database query, I need to pick up the last 1000 data that was posted, but within those results, the order must be growing (not descending, as would happen in ORDER BY ID DESC Limit 1000 ). The response of...
asked by 16.10.2014 / 13:41
1
answer

Order ASC and DESC according to custom_field

I have a site session (WordPress) where I add partners according to the category using Custom Post Type. It's a party hall site. Each category of custom post type represents a branch. Ex of categories: Buffet, Photographers, Etc So far so goo...
asked by 30.10.2014 / 05:12
2
answers

Error: "PHP Startup: sqlsrv: Unable to initialize module"

I'm trying to access SQL Server through XAMPP on Windows 7 64 bit but I'm not getting it, I've already followed the tutorials step by step but at the time of starting Apache it gives the error in the line below: Line that gives the error ext...
asked by 31.10.2014 / 12:13
4
answers

Pick word in the middle of a text

I need to get the word tutorial.pdf that is in the middle of the link. This word will always change according to the file you select. <a href="uploads/tutorial.pdf">tutorial.pdf</a>     
asked by 19.09.2016 / 16:03
1
answer

mysqli_result Object ()

I spent the last 3 hours trying to find the error ... maybe it is sleep, but I will put my script very complicated so someone gives me a light. $query_passaporte = "SELECT num_compra, data_compra, plano, passaporte_paypal FROM paypal WHERE 'em...
asked by 13.08.2014 / 19:13
1
answer

Cake PHP Relationship - 3 Tables

I have the following 3 tables: Status Table: id nomeEstado City Table: id idEstado //(que busca da tabela estado) nomeCidade Participant Table: id Nome idCidade Now I want to put in page Nome , Cidade and...
asked by 31.08.2014 / 20:07
2
answers

Edit categories and tags in the WordPress front end

I'm trying to set up a page for editing categories, tags, and custom taxonomies via the front end . However, I can not now find the correct function to submit the field update. The code so far: <?php /*Template Name: Page Template Edita...
asked by 11.08.2014 / 05:20
1
answer

JSON format file

And then everyone's beauty? I'm half doubt stupid, but I could not find an answer. I've been parsing a few sites and seen that instead of calling a $.AJAX request on the server to populate a dropdown data, for example, they call...
asked by 20.07.2016 / 15:02
1
answer

Laravel 5.2 with pagination

I have the following function inside the controller public function home() { $igrejas = Igreja::paginate(3); $igrejas->setPath('igrejas'); return view('admin/igrejas/home')->with('igrejas', $igrejas); } I need to be return...
asked by 02.08.2016 / 20:19