Questions tagged as 'php'

1
answer

Show different PHP wordpress layout if there is or there is no featured image

How can I do to show an article with a totally different layout for articles that have a prominent image and another layout, for articles that do not have a prominent image?     
asked by 27.09.2018 / 04:00
1
answer

Divide text into several texts

I need to separate a text into parts (array). Text similar to this:    Lorem ipsum pain sit amet, consectetur adipiscing elit. Donec eget   magna faucibus, fermentum nibh dapibus, dictum.       Integer eleifend lorem nec velit tincidunt, eu...
asked by 26.09.2018 / 11:41
1
answer

When uploading to the server there is a query that does not work

I was working on a web site, now I upload it to the server because the programs that I have left need this upload on the server. When uploading it to the client's server, everything works perfectly, except for a page that does not load querys. T...
asked by 28.09.2018 / 05:33
1
answer

AJAX with PHP Finder that consults BBDD

I'm doing a kind of search engine, in which while you press a key, an AJAX request is made to consult it in the DB. The point is that I still do not know much about AJAX and it does not work for me. At the moment I am testing with any text inste...
asked by 28.09.2018 / 17:32
1
answer

Display data from a SQL Server 2008 stored procedure in PHP

Good afternoon everyone, I need to make 3 graphs with data from a SQL Server 2008 database, this data is subtracted from 3 stored procedures respectively and since the solution is only one page with the 3 graphics joined in 1 large one, I dec...
asked by 30.09.2018 / 19:40
1
answer

'Register' button does not direct me to PHP file

I have been working on a form with HTML; I made the validations with Javascript, but when I clicked the 'Register' button, I was not directed to the PHP file. I hope you can help me, thank you in advance! 1.This is my HTML code. <body...
asked by 29.09.2018 / 05:07
1
answer

REMAIN TIME AND SHOW TOTAL - MYSQL and PHP

I have the following question and you can not help me. I have this table in the BD, it is a record of assistances that keeps the time of entry to work, time of entry to lunch, lunch, work output. In the table there is stored data in...
asked by 29.09.2018 / 18:03
3
answers

Determine prime numbers with multplicar table

It remains for me to establish that the multiplication table of the prime number appears <?php for($i=1;$i<=100;$i++) { if(primo($i)) echo '<div style="color:green;font-weight:bold;">' . " ".$i." es un primo ". "<b...
asked by 06.10.2018 / 09:14
4
answers

Access the data of this Json with PHP

[{ "GameId": 53614, "Season": 2018, "SeasonType": 1, "Day": "2018-09-28T00:00:00", "DateTime": "2018-09-28T14:10:00", "Status": "InProgress", "AwayTeamId": 16, "HomeTeamId": 20, "AwayTeamName": "CHW", "HomeTeamName": "MIN...
asked by 28.09.2018 / 22:01
1
answer

I do not receive the data sent from javascript (fetch) to php

I try to do a mini project to practice the use of the fetch (), the idea is to make a search engine which consists of typing a data in an input, when typing it will show information that contains part of that data entered. The thing is that I ha...
asked by 29.09.2018 / 02:44