Questions tagged as 'php'

1
answer

How to group a column with PHP rowspan?

I need to make a rowspan inside a for I have the following: And the result I want to obtain is the following: I've tried this but it does not work for me <table id="tablaCS" class="table table-striped table-bordered"> &...
asked by 03.12.2018 / 14:51
1
answer

How to concatenate two fields?

You will see this code is an autocomplete that works with PHP and JQuery and a bit of Ajax. It works, because I write names and I get the names of the database. But what I also need is that they help me to concatenate the name and the surname. S...
asked by 29.08.2016 / 01:50
1
answer

I have problems opening a text file with php

I've been trying to add a text string to a .txt file from php but I get these errors this is my code: <?php $archivo = fopen("fichero_texto.txt", 'a+'); fwrite($archivo, "Soy el texto que añadiste al fichero"); while (!feof($archivo))...
asked by 15.12.2018 / 16:55
1
answer

Problem plunk laravel 5.5

I tried to count an array by plunk (), by means of a foreach, but for some reason it always remains in the first element and does not tell me the rest, should I use each ()? * @return \Illuminate\Http\Response */ public functi...
asked by 14.12.2018 / 02:23
1
answer

Upload only videos to the server with Php and Mysql

Currently I want to upload only videos to the server validating from php: This is what I currently carry: <?php session_start(); require'funcs/conexion.php'; if(!isset($_SESSION["id_usuario"])){ header("Location: index.php"); } ?>...
asked by 13.12.2018 / 22:00
1
answer

DOMPDF only rescues the html and not the data I get from the database

I need to extract to PDF the content HTML of a page inf_ev_003_7.php The problem is that I only extract the HTML and not the data I get through SQL and PHP in this inf_ev_003_7.php **así...
asked by 10.12.2018 / 02:57
1
answer

if and elseif in Laravel

I am taking data from a BD and depending on the number that I return, it has to show one class or another. I'm doing something like that but it does not work. @if ($vivienda->etiqueta == 1) <p class="pLab">¡ {{ $vivienda->etiquet...
asked by 10.12.2018 / 21:13
1
answer

show summation of mysql columns and their columns

I've been googling and I do not quite understand how to show the sum of a column and show the values of the columns I add. for example: Table Users id, first name, value1 value2 I would like to show the sum of the values 1 but I would l...
asked by 27.12.2018 / 10:39
1
answer

Print function

I added a "Print" button to my view: I wanted to know if there is any way, either in PHP or JS, that when you click on that button, send me to this screen (which is the one that opens when we press CTRL + P) Thanks and regards!...
asked by 05.12.2018 / 03:55
1
answer

Parameterized query php output

Modifying my school codes to add parameters, because I do not understand the php documentation and I do not know how to get the result of the query. From the privilege table should give 1 (administrator) or 2 (secretary). Help please. try {...
asked by 27.11.2018 / 03:45