Questions tagged as 'php7'

0
answers

Help with configuring PHPMailer for mailings with embedded images

I tell you I have the following function in php <?php $logo = '<img src="https://local.jesuministrosymas.com.ve/image/LOGO.png" width="180" height="30"><br><br>'; $footer_correo = '<br>Aca va el Footer del Cor...
asked by 04.11.2018 / 04:41
0
answers

A login for two Moodle platforms

I have two Moodle platforms (3.4) installed on the same server in one there are courses for "producers" and in another for "students", I need that depending on the user that loguee (producer or student) redirects it to the platform that correspo...
asked by 31.10.2018 / 00:19
0
answers

Error with Front-end / Back-end

Sorry for the question, maybe it's very annoying. I have a problem loading my Front-end page with back-end on the production server and in local mode all the perfect functional pages. The jquery script and the ajax request are not running cor...
asked by 31.10.2018 / 02:09
0
answers

My PHP Script Send incomplete mail with the data of a WHILE

Greetings guys I have a conflict that I explain below: I have the following script <?php $sql2 = "SELECT tarjetas.*, users.nombre, users.email, users.username FROM tarjetas INNER JOIN users ON tarjetas.usuario=users.idusuario WHERE usua...
asked by 01.11.2018 / 19:19
2
answers

Join 2 array without using merge or foreach

The problem is explained simply, I have two arrays: array(0,1,2,3,4); array(5,6,7,8,9); I need both arrays to make one only: array(0,1,2,3,4,5,6,7,8,9) But I can not use foreach or while, since they are arrays that contain at least 100...
asked by 29.10.2018 / 03:55
0
answers

function defined with variable

I have the following code to define a constant with the value of a variable: define('DB_NAME', $row['co_database_name']); and use it in a connection string $dsn = "mysql:host=" . DB_HOST . ";dbname=" . DB_NAME . ";charset=" . DB_CHARSET ....
asked by 21.10.2018 / 20:46
1
answer

Return value to enter a conditional php Codeigniter

Good afternoon everyone. I do not know if I am doing well or if it is necessary to do so. I am working on a development with PHP and Codeigniter and I have two files one in the Controller folder and another in Model ; what I try to do i...
asked by 10.10.2018 / 23:35
1
answer

Problem with my web in the cloud

I'm having trouble making queries from my website to the database and everything being in the Nine, but locally if it works. well I have uploaded my web to 000webhosting and then I opened a file that is my webservices so that it shows me some...
asked by 03.10.2018 / 18:31
0
answers

Create an array within another array for each different return

Maybe the title of my question is wrong, but I am commenting, I am working with PHP 7, I want to create an array within another array, but according to certain parameters, this is the code I have at this moment: $RETORNO = []; for($j=...
asked by 27.09.2018 / 03:17
1
answer

Error when validating an INSERT INTO of a foreach

guys I have the following code: My code <?php $lote = $_REQUEST['lote']; $lote_pedido = str_replace(" ", " ", $lote); $datos = $lote_pedido; // divides por espacios y cada 6 elementos, los elementos de cada f...
asked by 26.09.2018 / 00:16