Questions tagged as 'php'

1
answer

Collect video thumbnail of youtube API

If I have the URL of a Youtube video. How can I access the thumbnails of that same video?    Publication in English: link     
asked by 05.11.2018 / 14:23
1
answer

Split strings with regular expressions

Good I want to extract in separate strings a string with Jquery I do not know if to do it with regular expressions or some other method, the string is the following one ?i=0&edad=18_28&tarifa=40_80,81_110&servicio=25&ubicacion=...
asked by 20.10.2018 / 23:35
2
answers

Send and display content in a modal

I'm trying to show the contents of a php in a modal using a js but nothing appears I have the following JS that what it tries to do is send the AJAX variable to the PHP and the result of this would be shown in the modal $.ajax({ url: "table....
asked by 19.11.2018 / 22:50
5
answers

Change an int type value to one string type PHP

I make a query to the DB and I get the value "month" of the records of the table that is an integer type. I want that according to the month received, PHP will print it in its string form. e.g. (month = 1 then print it as month="January")....
asked by 02.03.2017 / 15:44
3
answers

Problems with PHP form

I have a form for logging users so that: <div class="login-form"> <form action="./compruebaLogin.php" method="POST"> <div class="container"> <input type="text" placeholder="Enter Username"...
asked by 03.10.2018 / 21:28
1
answer

Problems with the sum of the values of an array

The problem I have is that it does not add the values of several fixes contained in an array, I do not know why here the code: <?php function solution($number) { for ($i = 0; $i < $number; $i++) { $multiplo = $i *...
asked by 01.10.2018 / 00:52
1
answer

Warning: Invalid argument supplied for foreach () when passing a resultset

   Warning: Invalid argument supplied for foreach () in   C: \ xampp \ htdocs \ course_php \ pdo.php on line 9 My code is: <?php try { $conexion = new PDO('mysql:host=localhost;dbname=curso', 'root', ''); echo "conexion exitos...
asked by 28.09.2018 / 20:10
2
answers

Organize table within modal

I have a small problem with a table that shows me some data stored in the database, once I have loaded many records the table goes out of control. My idea is that the table has a vertical scroll, but I do not know how to put it, try this, but...
asked by 15.10.2018 / 13:55
2
answers

problem with checkbox and php

I have a check-box that the user will indicate respective months of a form, I can send it if you select January and February but if you select other months or January, March, December to say something, do not save it in the database. <?php...
asked by 14.10.2018 / 06:36
1
answer

Do not insert data in my database from PHP

Do not insert the data I leave you photo of the structure of my table and the code for which you can help me thanks. The code is as follows. <?php $con = mysqli_connect("localhost","root","","ufree") or die("conexion exito...
asked by 16.10.2018 / 05:42