Questions tagged as 'php'

2
answers

mailto body from php

I have this code <table width=100% border="5" align="center" cellpadding="0" cellspacing="1"> <tr> <th width=12% align="center" scope="col">nombre</th> </tr> <tr> <?php $customers = "select *...
asked by 24.08.2017 / 16:34
1
answer

Autollenado de html with PHP and MySQL

I need a page to be filled with the items saved in a database automatically as I mentioned in the header. When I generate the queries, it gives me an error that says:    "Warning   : mysqli_result :: fetch_assoc () expects exactly 0 parame...
asked by 10.08.2017 / 03:46
1
answer

How can I limit the results in a table? [closed]

I need to limit the results in a table. They are only names that I show in the table but I want to see 10 results per page. I know I can do a pagination of results, but I would like to know if through the consultation I can limit them or that th...
asked by 28.08.2017 / 23:17
1
answer

How to insert a number N number of times in the same row? [closed]

I must insert the cost per fee according to the amount of fees that the EXAMPLE course has: SAY HOW MANY FEES YOU HAVE THE COURSE: 5 VALUE PER QUOTA: 22.000BS. This value must be saved 5 times in 5 different fields c1, c2, c3, c4, c5. And so kee...
asked by 07.08.2017 / 01:08
2
answers

Get specific result using json_decode ()

It turns out that I have a php code to extract the url from the images of a tumblr blogs that is this: $URL = "http://api.tumblr.com/v2/blog/luxury-boobs.tumblr.com/posts/?api_key=fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4&note...
asked by 26.09.2017 / 18:52
1
answer

Repeat Data in an Arrangement

I am using PHP and I have an arrangement that shows me the following: 0:{clave: "GTO", id: "45", nombre: "Guanajuato"} 1:{clave: "MEX", id: "76", nombre: "México"} 2:{clave: "EUA", id: "54", nombre: "Estados Unidos"} What I want to d...
asked by 16.08.2017 / 15:17
2
answers

Convert to int string of an array

I have the following code: $dat[] = ["2016-11-09", 1]; $dat[] = ["2016-11-09", 1]; $dat[] = ["2016-11-15", 1]; $dat[] = ["2016-11-16", 1]; $dat[] = ["2016-11-16", 1]; $dat[] = ["2016-11-17", 2]; $fechaAnt=""; $repetidos=1; //agregado f...
asked by 11.08.2017 / 21:01
2
answers

Insert data in several rows from a mysql php text file

What I'm trying to do is read a .txt file and save each of the rows and columns in their respective fields in MySQL. The problem is that it is not saved in the BD. So I have the text in the file: NOMBRE,EDAD,SEXO WALTHER,28,M MARTHE,26,F JULIO...
asked by 31.07.2017 / 02:55
1
answer

Pass ComboBox to Input

I have a ComboBox that when I select it I want to pass the data to Input That is, what I want to achieve, is when you select the Select this in turn paint in Input the data that corresponds to the query you are mak...
asked by 16.08.2017 / 11:14
2
answers

Generate a list with letters of the alphabet, in PHP or JavaScript [closed]

I want to generate a list that carries an index with letters, for example: A.- list B.- list C.- list .... but if the list passes the letter Z that generates like this: AA.- list AB.- list AC.- list I hope you can support me ... Greetings !!!...
asked by 31.07.2017 / 18:45