Questions tagged as 'php'

3
answers

Paging in the photo gallery

Good night everyone, I need help in the following code snippet and a gallery of photos and I need to do the pagination of 9 in 9 photos already tried everything and I could not if they can help me there <!DOCTYPE html> <body> <?...
asked by 16.09.2017 / 05:16
1
answer

Does not download the XLS worksheet

The system was in a reseller and I had to migrate to a VPS with Cpanel, the script to generate the XLS was working fine, opened and downloaded, but now it just opens on the screen What do I need to enable to work properly? $html = '<tab...
asked by 18.09.2017 / 18:20
1
answer

Doubt in an onclick Javascript event

I have this javascript code to add and remove the added lines. function adicionar() { var itm = document.getElementById("itens").getElementsByClassName("div-bloco-form")[0]; var cln = itm.cloneNode(true); var inputs = cln.getElemen...
asked by 27.04.2017 / 16:39
1
answer

Run mysql search after opening Modal

Galera, yesterday with the help of Bruno here on the page I managed to solve my problem of creating the modal, but today I have a new difficulty that I could not get over. Next to my modal opening with the opening through the normal click. Bu...
asked by 03.08.2017 / 03:17
1
answer

Conditional on has_post_thumbnail

Well I'm setting up a theme that some posts will be displayed a thumb and some not, but I need to put a conditional on the code that when it has thumb pull the config of thumb and when it does not have a simple post. However the current way it i...
asked by 01.08.2017 / 21:29
1
answer

Sitemap Mysql PHP divided into result quantities

<?php header("Content-type: text/xml"); echo'<?xml version=\'1.0\' encoding=\'UTF-8\'?>'; echo' <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoca...
asked by 01.08.2017 / 17:38
1
answer

Prohibit the insertion of repeated data

I need to type a text in an input on the form, it validates there even if this record already exists, that shows the result to the user and that does not allow to send the form without changing what is repeated. form and js: <form role="f...
asked by 12.04.2017 / 17:49
1
answer

Search in the bank from option [closed]

I need that when selecting an option in a option , a search in the database without leaving the page and showing what was returned through this search and filling fields with the results. I already have the layout mounted and the script for the...
asked by 12.04.2017 / 21:09
1
answer

How to compress files and directories in php

Hello, I need to compress files and folders together, for example, I have a folder named teste and it has several files and subfolders (with more subfolders inside) , and would like to pack all of this with php. So far I only have th...
asked by 23.03.2017 / 15:36
1
answer

Help setting up WAMP Server

I have a problem with the WAMP server, where I can not access my project by LocalHost when I click directly on the project name, only if you type "localhost / project_name" . Does anyone have any tips to configure?     
asked by 22.03.2017 / 17:08