Questions tagged as 'php'

1
answer

mySQL result coming with the bars

I'm using link , and when I send something to the database, for example, if I add this HTML tag <img = src="http://link">intheeditor,andsendittothedatabase,itsaves<img==\"\" src=\"http://link\"> and that way when I select it...
asked by 20.01.2016 / 23:03
2
answers

Secure Login with Remember [duplicate]

I need help with a login script. The problem is that the session automatically expires after a certain downtime. I'd like to increase the native session limit of my pages because the user needs to stay logged in on the system all day, and...
asked by 21.01.2016 / 02:44
1
answer

Create a download link for path that is in mysql

I have the following structure in the database: reuniaoId escolaId usuarioId dataReuniao tituloReuniao pathReuniao 7 14 1 2016-01-13 AEQEQ uploads/reuniao/ata_2016_2418530_2HK73386F.pdf I need to create a download page for...
asked by 26.01.2016 / 18:15
1
answer

PHP Mailer Does Not Work Localhost

I do not understand why the PHP Mailer library does not work on my Localhost. Here's how: # Envia Emails Para Departamento Escolhido e para o Admin $mail = new PHPMailer; $mail->isSMTP(); $mail->Host = 'smtp.domin...
asked by 23.11.2015 / 14:02
2
answers

Working with directories to make a require in PHP

I have a page where I generate some information, stored in the Database. This page is within 5 folders: pasta1/pasta2/pasta3/pasta4/pasta5 . For SELECT to work, I need a require to connect to the bank. This file is in a directory...
asked by 26.11.2015 / 21:27
1
answer

Improvement in Chat application

I am developing a chat for my site where a user sends an invitation to the other user, if it accepts it will open and the system will be checking for new messages. For the system to do this, I use a while , and while it does not return...
asked by 04.12.2015 / 20:01
1
answer

How to show message on contact postback

I have a contact form where I send the information entered to my BD , I would like to leave a message to the user after submitting the form and I'm not having success, what I did was: I have div positioned above my form , l...
asked by 03.12.2015 / 18:22
1
answer

Doubt about radio button

I have a form that has two radio buttons: 1-masc 2-fem. I want when one of them has pressed, and I click on "compute" it pulls the%% of% indicated for each if . <form name="calc" method="post" enctype="multipart/form-da...
asked by 08.12.2015 / 20:34
2
answers

Is it possible to use PHP to create dynamic meta tags for SEO?

I would like to know if it is possible for me to use PHP in meta tags like description, keywords ... I already use the title: <title><?php echo $titulo; ?> . Can I do the same on meta tags? From: <meta name="DESCRIPT...
asked by 07.12.2015 / 01:24
1
answer

How to empty PHP buffer during execution

I've seen somewhere a code that configures PHP to empty the Buffer (go on-screen printing) while running script without needing to wait execution for something to be displayed. Has anyone seen or known what this command is?     
asked by 01.09.2015 / 16:08