Questions tagged as 'php'

1
answer

My calendar only displays the first scheduled appointment each day

I've set up a calendar with a calendar in PHP + MySQL, it's already 80% of the development. But, I have a problem, such as if I registered for an event for 7/20/07, this appointment is normally displayed in the calendar. If I schedule another...
asked by 17.07.2015 / 17:34
2
answers

How to generate links to bound pagination?

I have a page whose results generate a lot of links-numbers. Scenery: I have 10.000 (ten thousand) records being paged. Paging should be 30 in 30 ; However, links can not display 333 links, but only...
asked by 27.07.2015 / 20:45
1
answer

What advantages and disadvantages to use? instead of? php? [duplicate]

According to the PHP documentation it is possible to enable short_open_tag in the php.ini file, in which you can use: <? /* jon snow */ ?> instead of: <?php /* jon snow */ ?> The questions are: Is it i...
asked by 17.05.2017 / 05:24
4
answers

Select with undefined number of conditions

It's the following, I have a search field, and I want to search in places other than what is registered, type like: tenis nike shox preto . I put in the search: tenis preto . If I use a like '%tenis preto%' description it will no...
asked by 16.10.2014 / 08:30
2
answers

Analysis of the machine / server using php

I am creating a system report, I honestly did not know that PHP did this, I searched and found it did, but I did not find a useful explanation, I just found PHP SYS INFO as a reference. When I say machine I mean = server / pc / machine where...
asked by 26.12.2014 / 02:36
1
answer

Find ID in a column of delimiter-separated IDs in MySQL

I use a table called chat and inside it has a whole structure for my chat script and I'm trying to create chat in groups, so far so good. However, within the chat table there is a column named participantes where I enter the...
asked by 19.06.2014 / 23:51
2
answers

How to insert a header to each N records?

How can I insert a header to each N records? Like ... <h1>CABECALHO</h1> Cadastro 1 Cadastro 2 Cadastro 3 Cadastro N <h1>CABECALHO</h1> Cadastro .. Cadastro .. Cadastro .. Cadastr...
asked by 06.10.2014 / 05:51
2
answers

Only read the first character of a string

if ($myrow['Noticia'] !== '<' && $myrow['Noticia'] !== 'Nao') { echo "Noticia mal colocada!"; } I have this code and would like to just check the first character of the Noticias column that would be this < and if...
asked by 01.02.2015 / 21:34
1
answer

PHP at MacOsx Yosemite

Hello, when I run php --version: PHP 5.5.14 (cli) (built: Sep 9 2014 19:09:25) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies But I have another version of php in the / usr / local / ph...
asked by 23.10.2014 / 23:14
2
answers

NFe - private and public key reading applet

I need to develop a system for issuing electronic invoices. My big problem is that this system needs to meet the A3 certificate (card) and as far as I've been reading with php it's still not possible to capture the private key and publish the ca...
asked by 07.08.2014 / 21:47