Questions tagged as 'php'

1
answer

mysql num row does not work for me

Hello, I need to add pages to my site. specifically it is a preview of a report of 3000 records and I want to show on each page 100 This is my query: $sql ="SELECT documento.* FROM documento LEFT JOIN ubicacion ON (ubicacion.documento_id = do...
asked by 17.03.2017 / 15:04
2
answers

Different contact form for each item listed [closed]

I mean, I need a different contact form for each user when they enter a category. That is, the website is classified ads, and the ads are listed by categories, I need a contact button that is repeated within the while loop that shows the ads,...
asked by 18.03.2017 / 05:13
1
answer

How can I send emails to my gmail automatically using PHPMailer?

Good morning, I have some questions about how to program in php a program that sends emails to my gmail automatically. In my case, I want the end of the month automatically send an email to my gmail with some information. How can I do it?...
asked by 29.04.2017 / 06:40
2
answers

Access JSON data (PHP, AJAX)

I have the following code which makes the query correctly in the database: <?php $serverName = "SERVIDORSQL"; $connectionInfo = array( "Database" => "bd_test", "UID" => "supervisor", "PWD" => "supervisor", "Characte...
asked by 26.01.2017 / 20:44
1
answer

Load data from a database when pressing buttons (next and previous) No backspace

I have a system that shows "TIPS" of health contained in a database. I would like to add buttons next and previous The idea is that when you press next or previous one, change the nume_cons and then load the title, the description and the...
asked by 28.01.2017 / 14:24
2
answers

Error using mysql_num_rows [closed]

Could you help me with this little code? <?php include("../app/database.php"); if (isset($_POST['registrar'])){ if (($_POST['nombre']!='') && ($_POST['email']!='') && ($_POST['clave']!='') && ($_P...
asked by 20.01.2017 / 13:12
1
answer

How to change between lists or pages of records with buttons of NEXT or PREVIOUS in PHP?

I have a system to show health tips. I would like the next or previous click to change to the next tip that is contained in the database. I have already managed to generate a value that is a number less or more than the ID of each council but...
asked by 29.01.2017 / 02:10
1
answer

What is missing from my SQL sequence?

You see, I have to list some basic data for a sales report by dates, the problem I have is the following, if a client in the invoice 2 buys 10 articles I list the values of each article and what I need is that I totalized the total value of the...
asked by 12.02.2017 / 02:43
1
answer

SyntaxError: unterminated string literal

I have a textarea that is populated with mysql data using .val () It turns out that when writing line breaks or spaces in that textarea, it returns the error SyntaxError: unterminated string literal. so I read here because I have...
asked by 03.02.2017 / 19:43
1
answer

how to send a parameter to a web page in php and return a json [closed]

Hello good day I have a doubt I am a newbie in php and I need to send a parameter to a web page which is the following " link " but the parameter, which is a hash that I will obtain from a data will be able to perform that kind of web service...
asked by 10.02.2017 / 20:23