Questions tagged as 'php'

4
answers

PHP mysql_fetch_array

I'm trying to show results from my database, I did not know how until I saw this way of doing while($row=mysql_fetch_array($result) { //Code } and then I saw that using this form is somewhat obsolete, so I would have to choose to use...
asked by 23.06.2017 / 23:13
3
answers

List String in a PHP / jQuery select

I have the following string:    1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; 21; 22; 23; 24 ; 25; 26; 27; 28; 29; 30 Stored in the BD in a single field varchar 300 , Can this string be broken into separate...
asked by 23.03.2017 / 15:57
3
answers

Thousands separator with php or Jquery javascript [duplicated]

I'm trying to make a "peso" currency format for my input, where I want it to be formatted automatically when I enter with thousands separator (".") I have tried several codes and they do not work     
asked by 29.06.2017 / 23:25
2
answers

Login PHP gives me a bug in the session_start ()

I'm doing a login with Bootstrap and PHP . And I do not know why the class that has to validate my user gives me failure in session_start() . I need the _SESSION_ to return messages to the login in case of error. Class that val...
asked by 28.03.2017 / 16:51
2
answers

How to use ucfirst in a PHP form [closed]

How to use ucfirst in the "name" of a PHP form? I need to receive (yes or yes), the names and surnames with the first letter in upper case, and we know that today x those who complete their data in a web form from a mobile phone do not a...
asked by 20.04.2017 / 01:52
1
answer

Content TextArea in PHP with $ _POST

I am creating a test form which I want you to send me the entered data to php . He sends me the Name and the Mail but the text entered in TEXTAREA does not send it to me. I leave the code feedback.html: <form action="feed....
asked by 21.11.2017 / 17:34
3
answers

Create an array from a for

I am trying to create the contents of an array from a for loop. I leave you with the code: $prodlang = $wpdb->get_results("SELECT * FROM wp_post WHERE wp_pedmin!=0"); $tama= count($prodlang); $product_min_qty = array( for($i=0...
asked by 29.01.2017 / 13:54
3
answers

Why are the data shown the opposite?

Queries are made through queries prepared from mysqli, variable $previa can bring two types of results yes or not The query is made by means of data related to an example: id articulo previa id_articulo 1 algo...
asked by 17.11.2017 / 00:16
1
answer

help with using CONCAT in php

I'm making a query and I want the ID to tell me with the ID and name in the interface and I'm using this code <?php include('conexion.php'); $paginaActual = $_POST['partida']; $nroProductos = mysql_num_rows(mysql_query("SELECT * FROM repor...
asked by 13.02.2017 / 19:05
3
answers

Problem when saving decimal values (monetary figures) in a mysql database

At the moment I am saving several values that represent monetary figures, these values are extracted from a csv file and inserted into a database mysql . Some of these values are found as follows: // pueden llegar con el punto de mil // s...
asked by 29.12.2016 / 15:29