Questions tagged as 'php'

2
answers

How to store the indices that come from a form via $ _POST

I'm making a form that sends data to a normal php file, the problem is that I want to receive in that file. Both the values that come via $ _POST and the indexes of these values. if I have the following input: <input id="username" name="...
asked by 14.05.2018 / 16:18
2
answers

Login with Ajax, PHP and MySQL [closed]

I have a question, I am starting to work with Ajax and PHP and I want to know how I can login with Ajax to validate the user if it is registered or not, my users have them in a MySQL database but I do not know how to do that validation.     
asked by 03.02.2018 / 07:28
3
answers

Error inserting a datetime with PDO

I am changing the entire system from Mysqli to PDO and I am having a problem when trying to insert a date in a field of a record. The record that I try to record is news, which involves a date. The format of the date that I bring w...
asked by 27.07.2017 / 02:14
3
answers

Update related tables laravel

I have been looking at the documentation for a while and I think it is correct, however it does not work as it should, instead of updating me, it creates a record. The theme is as follows. I have a table with sellers and others with products,...
asked by 10.08.2017 / 19:49
1
answer

Problems php jump

I have a problem when I try to concatenate the line break of my associative arrays, it does not let me and I get this error    Parse error: syntax error, unexpected '' ''   (T_CONSTANT_ENCAPSED_STRING), expecting ')' in   C: \ Users \ Daniel...
asked by 18.08.2017 / 07:07
3
answers

recover data and put them in a select

I have a form with a <select> with several options in it to choose the order in which the information that the user sees on the screen will be displayed: <form method="get" action="busqueda.php" class="height-30 float-right "&g...
asked by 02.06.2017 / 15:41
3
answers

Replace this 123456 with this 000000 in php [closed]

hi I have a little doubt I would like to replace a string by 0 $cadena = '1234567'     
asked by 16.05.2017 / 17:37
1
answer

can a primary key be modified in mysql?

I have a query about mysql, I currently have two user tables where my main key is dni and in session. id and I have a form from php in which I update the data of a person .. my query is as follows: Can I update the data of my main user ke...
asked by 21.07.2017 / 03:35
1
answer

Register IP of those who modify something on my site

My problem is this: I have a website where the user is given the freedom to create more users for their own account, modify their data and delete records that they no longer want (the usual), I was asked to create a Log in the database to kee...
asked by 09.03.2017 / 18:33
2
answers

Pass value of an input to PHP

The value is sent from a page to a modal of Bootstrap in the following way by means of the data-book-id="" of the label <a></a> . <?php while($row = mysql_fetch_array($sql)){...
asked by 03.05.2017 / 21:28