Questions tagged as 'php'

1
answer

what would be the correct way to solve this exercise in php ?, I'm doing it like that but the syntax is wrong

<h2>Total carácteres</h2> <form action="" method="post"></form> <label>Ingrese carácter: <textarea name="caracteres" id="" cols="10" rows="10"> </textarea> </label> <br> <inp...
asked by 19.05.2018 / 04:19
1
answer

I fail in a project of a course that I am doing

Hello very good I am doing a project and I have found this error:    Notice: Undefined index: registration in   D: \ xampp \ htdocs \ gdlwebcamp \ validate_register.php on line 25       Warning: Invalid argument supplied for foreach () in   ...
asked by 17.05.2018 / 11:05
3
answers

Convert local variable to global. PHP

I am trying to collect the fields from a MySQL registry, and for this I use the following: $reg = mysql_query("SELECT * FROM draws WHERE urlID='$urlID'"); while($data = mysql_fetch_array($reg)) { $title = $data ['title']; }...
asked by 20.05.2018 / 09:54
1
answer

Error in function to add data type TIME

I have the following problem with a function that I use to add two hours, one of the hours comes from a query, which is a TIME type field and the other hour is the one I send for a POST. What I want is to add to the time that the query brought m...
asked by 21.05.2018 / 05:03
1
answer

Send variable from html to php

I have the following code <tr> <td> <?php echo $mostrar['nombre'] ?> </td> <td> <?php echo $mostrar['tel'] ?> </td> <td> <?php echo $mostrar['celular'] ?></td> <...
asked by 23.05.2018 / 20:40
4
answers

Update URL with PHP

I have this PHP code: <?php if(isset($_POST["boton4"])) { $finalcode = 'RV-'.createRandomPassword(); header("location: ventas.php?codventa='".$finalcode."'"); } ?> What it does is update the code and change it in the url, but noth...
asked by 12.07.2018 / 19:29
2
answers

Query between 3 tables with MySQL

I'm trying to make a query and add the values of two tables to the result so I can bring the inflationary I need tables matches and blocked are related to users using the id's The query I am trying to make is the follo...
asked by 13.07.2018 / 16:51
2
answers

Send data by POST from php using cURL?

I'm trying to send data to an external API, the problem is that when I open the console in chrome or inspect any element, the values hidden of the form that are the API keys are shown, so try this with Curl : <?php $ch = curl_i...
asked by 14.07.2018 / 14:52
1
answer

Send variable PHP to table in MySQL

I would like to send these php variables with a INSERT INTO that I print in html tables, but I do not know how to do it or if you can Here is an example of one of the tables I have <!-- Jornada 1 --> <p><b>Jor...
asked by 11.04.2018 / 09:34
2
answers

How to validate that there are no combobox selected

Hello my question is that in what way can I validate that for the case that there is no combobox selected, throw an error. Normally it is the other way around with the validations, where it is asked that there be at least one or several combo...
asked by 20.04.2018 / 19:44