Questions tagged as 'php'

3
answers

capture information from sites [closed]

How do Buscapé and other sites get information from sites? is it through the curl or an xml that the store sites make available?     
asked by 04.05.2015 / 16:07
4
answers

Check if there is a number in a string

I need to do several validations on my form, and one of them is to check if the name you typed contains number somewhere in the string is at the beginning middle or end, I already tried to use is_numeric only worked for numbers, not a m...
asked by 21.09.2016 / 19:47
3
answers

How to create an empty object in PHP?

With an array you can do this: $arrayVazio = array(); $arrayVazio[key1][var1] = "PHP"; You can do this with an object: (object)$objetoVazio = ""; $objetoVazio->key1->var1 = "PHP";     
asked by 26.05.2017 / 16:44
6
answers

Accentuation problem when retrieving records in SQL Server

When I retrieve records from a SQL database Serve with PHP errors appear in the accent. But in the bank, the accents are correct. Is there any way to handle this with PHP? I do not have permissions to change the bank collation . Collatio...
asked by 14.07.2015 / 14:15
2
answers

What does && mean! in PHP?

I'm trying to know this, but it appears nowhere. Has a space between & e!. if ( is_home() && ! is_front_page() )     
asked by 24.06.2017 / 18:44
2
answers

Format date and time with PHP

I have this page that displays the emails received from the logged in user, along with their dates. I am trying to format date display by PHP but it is not working as I expected. I need the PT-BR date to appear in the first line, and in the seco...
asked by 28.07.2017 / 20:51
0
answers

Uncaught TypeError: object is not a function. Clone html and Back button [closed]

I'm having a system problem where I need to make a back button and thought of a function to clone using and a function for the back button. But the problem is that when I log into the system I go to a menu and when I click on an option it...
asked by 02.02.2015 / 13:16
1
answer

Small Back Office [closed]

I am creating a small back office in PHP, MySQL and HTML and I have a small question. Table: IDNoticia Dia Mes Titulo Noticia Then in HTML / PHP I will echo to show the day, month, Title E Noticia but I have a doubt regarding t...
asked by 28.01.2015 / 12:46
2
answers

Save Characteristics in DB [closed]

I'm starting to work with PHP, MYSQL now and I've had a question. I am developing a classified website, the same will have categories of vehicles, real estate, electronics, etc ... My question is as follows, the guy selects car for example...
asked by 03.03.2015 / 01:46
0
answers

PHP Class PDO runs all CRUD on local server when over for web only works select [closed]

I have a problem that I could not resolve. I already researched here and found nothing like it. I have an application in PHP, using the class PDO to connect to the database. Then I have the CRUD: SELECT , INSERT , UPDATE E...
asked by 13.01.2015 / 17:59