Questions tagged as 'php'

2
answers

Problem with postlink in cakephp

I'm a novice with cakephp and I'm creating a form to add, edit and delete records. The problem is that I try to make the delete link look like a button, I have achieved it with css, creating a button class to which I gave a style. The issue is t...
asked by 29.12.2016 / 21:02
1
answer

Put this function mysqli mysqli_real_escape_string

I have this function to insert in myqli function Insertar_Datos() { global $Conectar; $Parametros = func_get_args(); $InDatos = "INSERT INTO '".$Parametros[0]."' (".$Parametros[1].") VALUES (".$Parametros[2].");"; $...
asked by 27.12.2016 / 20:56
2
answers

Generate tables with predefined values php7

I need to make a script in PHP7 that generates a table of 10x10 and that in the diagonal is formed by ones and the rest by zeros. I've been documented and here describes how to get it out of a database data, however I do not know how to give t...
asked by 25.10.2016 / 21:16
2
answers

header (location) redicect after some time [duplicate]

I have a file that is like this: <?php session_start(); include("template/head.php"); include("template/header.php"); include ("inc/functions.php"); ?> <div class="content"> <?php $password = encripta_p...
asked by 26.10.2016 / 11:30
3
answers

Is it possible to select all the fields in a database except a few?

I've been searching and I can not find it, but I've found that in a mysql query, I need to select almost all the content minus 3 elements, the point is that there are almost 20 columns. I know that php can not show those fields, but the output i...
asked by 04.11.2016 / 16:43
1
answer

syntax error, unexpected 'else' (T_ELSE) [closed]

Code with the error: if(!empty($_GET['horarios'])){ $cod_hor=$_GET['horarios']; }else{ header('Location:error.php'); } if($_SESSION['tipo_pro']=='a' or $_SESSION['tipo_pro']=='p'){ $profesor=$_SESSION['ced_...
asked by 05.11.2016 / 03:24
3
answers

Where to make a home page in Wordpress? [closed]

What do you recommend for a homepage in Wordpress:  - Make a page and use it as a cover?  - Use the home.php or front-page.php?  - Do it directly in index.php? What would be the most convenient option ??? thanks !!     
asked by 18.03.2017 / 01:01
2
answers

Good morning. Someone who can explain or help me how to export in pdf the records of each row in mysql

This is the code that generates the query of the entire table $sql = "SELECT * FROM mitabla"; $query = mysqli_query($con, $sql) or die (mysqli_error($con)); $item = 0; while($row = mysqli_fetch_array($query)){ $item = $item+1; }...
asked by 20.08.2016 / 07:50
4
answers

Horizontal line in a table in php

I want to put a horizontal line to separate data when viewing in a DGV in php, I use an 'echo' along with a '' to create the table, but I want to separate it by lines the records within the echo when creating the table, attach the code so far...
asked by 11.10.2016 / 17:37
1
answer

To create a mini social network, is it necessary to know POO? [closed]

Speaking of PHP. It is necessary to know what is the use of object-oriented programming. How important is it?    It makes things easier for me.     
asked by 28.08.2016 / 14:50