Questions tagged as 'php'

2
answers

problem with php switch

Hi, I'm new to programming. I'm trying to do basic operations through a radio button, but I do not work on addition or subtraction. I do not understand why. <form method="POST" action="resultado.php"> <table> <tr&g...
asked by 25.04.2016 / 05:46
3
answers

Error PDOStatement :: bindParam ()

In response to the advice you gave me in the question I asked a few days ago ( Update records using PDO ) I am changing the code to avoid SQL injection with PHP. The issue is that when I run the update page I get the following error:    PD...
asked by 29.12.2016 / 17:35
1
answer

WARNINGS appear when INSERTING in a table with PHP

Good morning, when inserting a form with PHP if you insert the records in the database but it sends me the following WARNINGS:    Warning: Variable parameter 1 not passed by reference (prefaced with   an &). Variable parameters passed to...
asked by 16.05.2016 / 17:57
4
answers

How to get result of openssl command in .txt file

Someone knows how to get the result of the following command: openssl x509 -noout -modulus -in file.pem in a .txt file. The command works well when I execute it both in the console and in the php exec function, which is not how to get its resu...
asked by 20.04.2016 / 19:16
5
answers

Send with phpMailer as attachment a $ pdf created?

I clearly state the problem: My .php file does two things: 1) Create a pdf (already verified, which is stored in the variable $ pdf ) and 2) Send an email using phpMailer. The problem ?: The file $ pdf I can not send it with $ma...
asked by 04.06.2016 / 20:56
3
answers

PHP - Disadvantage when using the mysql extension [closed]

Good, I need help to extract the data from the logged in user in my system. This is my database with their respective fields: What I want to do is that when the user enters, his / her email will be visible in all the following pages. Tr...
asked by 09.06.2016 / 20:59
2
answers

Count the records of a single month

I am doing a simple consultation to obtain the records of a single month, in my case, the current month. I have a table that saves the date in 17/12/2018 01:12 format since the client asked for it this way. What I try to do is this:...
asked by 17.12.2018 / 05:56
2
answers

Display information depending on what the user chooses

I have a database with several related tables, a product table related to one of categories, what I want is to show through a <select> all the categories (that I can do) but when selecting a give me all the products that belong to t...
asked by 20.09.2016 / 20:56
2
answers

Insert data with PHP to BD Mysql

I have started learning PHP relatively recently and in the process I am trying to insert the data of a form into a database using PHP as I have been looking at a safe way by means of ready statements and objects and so I am trying it even though...
asked by 29.09.2016 / 00:42
1
answer

Problem with php: expecting ',' or ';' [closed]

PHP marks me an error when trying to login, this error marks me: Parse error: syntax error, unexpected 'private' (T_PRIVATE), expecting ',' or ';' in /opt/lampp/htdocs/webagropac/conexion.php on line 10 This is the code: <?php class...
asked by 17.09.2016 / 04:21