Questions tagged as 'php'

1
answer

How to get the length of a column in Codeigniter?

Hi, I'm working on Code Igniter from php and I need to multiply the number I send from the front with the total data in a column lenght it has the name id and is auto incretable. try this, from model: function InsertRegistro($...
asked by 01.02.2017 / 13:21
1
answer

Pass two-dimensional array to PHP by [closed] form

Hi, I have a task in php and my teacher has the philosophy that we are looking for a life, I have this code, but I do not know how to pass it to php so he can pick it up and save it in a > two-dimensional array: I would really appreciate the...
asked by 29.01.2017 / 18:03
1
answer

Friendly URL in Prestashop 1.6

I'm having problems activating the friendly URLs in Prestashop. I have tried all the solutions that I have found googling and without result. The mod_rewrite of Apache is activated, I have tried to clean cache and force the compilation. Wh...
asked by 20.10.2016 / 07:39
2
answers

I can not find the error that this Heredoc (PHP) produces

The code is this: <div class="panel-body"> <?php $login_form = <<<EOD <form role="form" name="login" id="login" method="POST" action="check_login.php"> <div class="form-group"> <label for="exa...
asked by 31.01.2017 / 08:23
1
answer

krajee bootstrap file input in a form with other input fields

I have a form with a textarea and a fileinput $(document).on('ready', function() { $("#nom-foto").fileinput({ uploadUrl: 'grabafoto.php', dropZoneEnabled: false, previewFileType: "image", allowed...
asked by 19.10.2016 / 17:15
1
answer

Access to files through PHP with an alias to the directory in the apache

I have two domains that share a directory (example: / img) so as not to duplicate that directory I have created an alias with the apache: Alias / img /dominio_1.com/img/ .... from the browser I access the img directory without problems...
asked by 20.10.2016 / 09:04
1
answer

how to avoid being shown twice?

I have a user system in which I send a request (who sends) so that the other user (who receives it) responds.When.I do the sending the button that said "Add" changes to "Request sent" The problem is that when I enter the profile or better said e...
asked by 09.11.2016 / 01:47
1
answer

How to make a SELECT FROM WHERE Multiple conditions and use it in angularJS

PHP <?php header('Access-Control-Allow-Origin: *'); date_default_timezone_set("Chile/Continental"); $db = mysqli_connect("localhost", "sam", "", "sam") or die('Error connecting to MySQL server.'); $postdata = file...
asked by 09.11.2016 / 14:29
2
answers

Form does not save data in database

I have a simple system to store data in a database through the following form: Conexion.php <?php $host="localhost"; $usua="root"; $pass=""; $base="yerson"; //base de datos// $cone = new mysqli($host,$usua,$pass,$base); if ($cone->co...
asked by 10.11.2016 / 00:40
2
answers

Duplicate results with INNER JOIN

I come with a problem with PHP and MYSQL. I tell you: I'm creating as a followers system, and I had it finished and I made it work, but the code was not the best we could say, because ... well, this was the code I had before: $followers = "SEL...
asked by 13.10.2016 / 02:52