Questions tagged as 'php'

1
answer

Login with Cookie or Session in PHP5 [duplicate]

I'm implementing an administrative area on my site and have always used $_SESSION to log in. However, now I need the user login to be saved if it leaves the page.    My question: Do I need to use $_COOKIE to save $_SESSION...
asked by 29.10.2015 / 15:20
2
answers

Change the value of a parameter passed to a function

I have a dynamic form that I add several fields and I create together a div that is passed by a button that is assigned a onClick event for it passing a function that receives a parameter. This parameter is a sequential number that I crea...
asked by 29.10.2015 / 18:49
1
answer

Merge 2 mod_rewrite conditions in .htaccess

About .htaccess and mod_rewrite not understanding anything at all! The situation is as follows, I have 2 projects in different domains: This first project uses the condition below that always directs the browser to the HTTPS protocol by...
asked by 29.10.2015 / 18:02
1
answer

Shorten Google Analytics tracking URL (variables only)

I would like to shorten a URL from my WordPress site as follows: www.meusite.com/?utm_source=FONTE&utm_medium=MEDIUM&utm_campaign=CAMPANHA for something like www.meusite.com/?urlencurtada Where ?urlencurtada will recei...
asked by 06.02.2016 / 04:23
1
answer

How to return POST in the same div on which it runs AJAX

Actually there are 2 problems: 1st I have a DIV CONTENT where I open via AJAX the content in it, the same is happening type, if I click 2 times on the same link it instead of reloading the page it is simply adding the content again getting 2 con...
asked by 04.02.2016 / 23:35
1
answer

problem sending e-mail with css by phpmailer

Galera I put up an email using html and css. The email arrives perfect in several email, but in G-mail the email arrives without the css, ie just the html. Does anyone know how to solve the problem? Follow my e-mail code: $email->Body...
asked by 23.02.2016 / 14:32
1
answer

Start / End of Summer Schedule: problem with date verification of type "greater than"

Every year I have two problems, one when summer time begins and the other when it's over. Anyway, yesterday the clock was delayed in an hour that created a giant problem. The page should allow the user to access it only with a time interva...
asked by 21.02.2016 / 13:15
1
answer

Handling Mysql error

I have an insert script and would like to be able to display the user a custom message for the following message trying to register an existing record: Duplicate entry '42-1' for key 'PRIMARY'. I tried to use some examples like: mysql_er...
asked by 22.02.2016 / 21:01
1
answer

Date from Mysql for Highcharts

Good I've been here a few days back from this subject until I got something, my only problem now and convert my graph I was reading through a CSV to now read directly from MYSQL My original graphic is this: <script type="text/javascr...
asked by 26.02.2016 / 12:09
1
answer

How can I abbreviate a name for 2 words, ignoring (of, of, das, das)?

I have a user table in the system where the user's full name is registered. However, at the time of displaying those names on the system, I must use only two words of that person's name to display. And when the words das , dos , d...
asked by 01.10.2015 / 14:29