Questions tagged as 'php'

0
answers

Problem with sending mail with html format using php

I'm new to using php, but I'm trying to send information that I collect from a form by means of an email using PHP and that it arrives in a table of HTML format, the mail managed to send it, but it arrives empty, < a href="https://i.stack.imgur....
asked by 18.12.2018 / 02:11
1
answer

Data entry in database with symfony

Excuse me, I have a question about how to insert data in two tables with symfony. The fact is that I have a user table and a person table with a 1 to 1 ratio so to insert a user we need a person. someone who can guide me on the insertion o...
asked by 18.12.2018 / 11:16
0
answers

mysqli_stmt_get_result - Fatal error

I have an error in this line of code that I am not able to solve. I have looked in many forums and many say that it can be by the php version. I have been checking in the phpmyadmin of the server where I have it hosted and allows to use this fun...
asked by 18.12.2018 / 08:48
1
answer

Script does not code utf8

I'm trying to send a parameter by url from javascript, and that parameter has accents. I try to encode to utf8 and then I code the url but apparently, it does not do it as it should (excuse foolishness but avoiding tildes is not an option). ec...
asked by 18.12.2018 / 06:08
1
answer

Fatal error: Uncaught Error: Call to a member function prepare () on null

Good morning, I'm making a page and I'm making the connection to the database but it sends me the following error <?php require 'init.php'; class Funciones{ public function getPublicaciones(){ global $pdo;...
asked by 18.12.2018 / 04:03
0
answers

Make an insert in two diffent tables

hello I have a question about how to make an insert to two different tables with php having foreign key, this in a single form that you have ... CREATE TABLE validador(id_registro int not null PRIMARY KEY AUTO_INCREMENT,id int not null, FOREIG...
asked by 11.12.2018 / 16:26
0
answers

How to treat a float field in symfony? [forms]

Good I have a field called price type float but at the time of creating a form in symfony I get this error: Unable to transform value for property path "precio": Expected a numeric. Any solution? Code: public funct...
asked by 11.12.2018 / 16:17
0
answers

use the same variable in 2 php functions

I have this function public function getConsecutiveByRange($rango) { $sql ="SELECT contador, rango_numeros FROM def_consecutivo WHERE rango_numeros=:rango"; return $this->getResponseQueryOne($sql, ["rango"=>$rango]);...
asked by 11.12.2018 / 15:57
2
answers

Get a single value of MySQL and store it in a variable with PHP

I need help to understand something basic. I have searched everywhere but the answers have not been simple. I have been trying to validate a specific type of user with ID_Profile = 001 to be redirected to "MenuExamenes.php" and users with ID_Pro...
asked by 10.12.2018 / 07:29
0
answers

problems with plupload

I have a problem with the ui widget from plupload, my javascript is: $("#uploader").plupload({ // General settings runtimes : 'html5,flash,silverlight,html4', url : "upload.php", // Maximum file size max_file_size : '20mb'...
asked by 19.12.2018 / 15:12