Questions tagged as 'php'

2
answers

default cursor php field

I have this form in php connected to an information in mysql    $ contents [] = array ('text' = > ' description '.   tep_draw_input_field ('description', $ mInfo- > description));   $ contents [] = array ('text' = > ' Quantity '.   ...
asked by 14.04.2018 / 08:28
1
answer

Make a SUM with codeigniter

I need to add the detail table data the problem esque does not contain the date if not in the main table, it made it very easy in the following way: Model: $this->db->select('COALESCE(SUM(cajas),0) as total_cajas, COALESCE(SUM(peso),0) a...
asked by 22.04.2018 / 07:40
1
answer

My PHP tags do not work

I'm programming in PHP a function to connect to the mysql DB, but I think the system is not recognizing the php lines. Because I've tried even with a simple "helloMundo.php" and does not recognize it. Specify that I have the tags activated, I at...
asked by 28.04.2018 / 15:18
1
answer

how do I bring records with select?

I have this code connected to a database with a I want to bring me the data related to that registry but it does not work for me I'm using ajax. getuser.php <html> <head> <script> function showUser(str) {...
asked by 03.04.2018 / 02:24
1
answer

Validate checkbox from positive to negative in table

I want to place 0 or 1 if the checkbox of the row is selected, it works fine when passing the 1 but that is when it is checked, otherwise it does not work to pass it zero, not putting $(fila).closest('tr').find('.inputvalor').val("0"); wi...
asked by 23.04.2018 / 23:10
1
answer

class Mysqli_Database.php does not return results in a prepared query

I am running the following code to make a query: public static function myfuncion(){ $conm = new Database(); $sql = "select 'user_nombre' from '".self::$tablename."' where 'user_nick' = ?;"; $conm->prepare(...
asked by 01.04.2018 / 18:48
1
answer

Sort data in a selected PHP

I have a problem with a list in php . It turns out that when I do the SELECT in MySQL I print the list as is, but when I call that SELECT to put it in a list I bring it ordered alphabetically. That's the order in...
asked by 23.04.2018 / 16:21
2
answers

Open or edit php.ini on mac Os [closed]

Someone can tell me how to open the file php.ini , according to my PHP version 7.2.2 the file is in this address:    ./ usr / local / php5 / lib / php.ini I have already entered from the terminal to the folder lib now...
asked by 23.04.2018 / 15:26
1
answer

How to add utf8_encode to my php code

<?php $mysqli = new mysqli("localhost", "root", "", "lista"); if ($mysqli->connect_errno) { echo "Fallo al conectar a MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;...
asked by 03.03.2018 / 16:43
2
answers

Reduce input text width

I want to reduce the width of my input text. The input covers the entire width of the page, how can I reduce it? This is the code with which I show the input text: <div class="form-group"> <?= $form->field($model, "userna...
asked by 02.03.2018 / 19:09