Questions tagged as 'php'

2
answers

Erase all information in the table the last inserted id

How do I delete the table in the database all data, in php, by the last id inserted? For example in the table the last ID is 37, where it has the name, age, etc ..., I want to delete all of this ID, make that line disappear. My question is not...
asked by 24.05.2018 / 12:27
1
answer

How to create a robot with PHP? [closed]

What is the best way to create a Robot in PHP? The purpose of the robot, is to access a URL, with login and password, enter data in certain fields, submit this data, and interpret the result. This so that you can update an internal databas...
asked by 01.04.2014 / 18:21
1
answer

Last Date and Time when you Login

I put this line in the php code: $lastlogdate=time(); To get the date and time when logging in, more when I go to see it looks like this: 1397562733 I wanted it to look like this: 17/04/14     
asked by 17.04.2014 / 22:46
1
answer

Match javascript variable to a variable in php

I have a form, and before the form is submitted I want to validate if the nome_carro field exists the same in the database. To do this validation I'm using javascript. In the form I have the following: <form method="post" action="...
asked by 09.04.2014 / 16:33
1
answer

Is there a function that searches if a word exists in the text?

In PHP there is some função that does the verification of words in texts, example: A camila morreu de diabete. I want to create a function by looking for the word morreu , so after finding a if result, it looks something...
asked by 09.10.2018 / 00:51
3
answers

How to show an array coming from the database in an input

<input type="text" class="form-control" name="lanches" id="lanches" value="<?php echo $resultado['lanches']; ?>" > I have this input above where it receives this array that is inside the database How do I ...     
asked by 02.12.2018 / 02:28
2
answers

RFID BLUETOOTH PHP

I'm trying to connect an RFID reader to Windows via Bluetooth. I can identify what COM is, but when I try to call via PHP using fopen, for example, the error "failed to open stream: Permission denied". I tried to use the PHPSERIAL function...
asked by 09.03.2018 / 20:37
1
answer

When entering a record in pag1, refresh pag2

Good morning. This is a conceptual question. I never needed it, so I do not know if it works. Imagine the following situation: I have a script A, where I enter information into the database. This script is running 100%. I have a B script,...
asked by 17.03.2018 / 16:18
1
answer

"New" autoload PHP 7

I would like to understand the "new" autoload of PHP, in it I can choose the name I want to put? For example, in the old one, it was __autoload . In this case, can I put autoload_de_teste ? Another question is what does the spl...
asked by 30.10.2017 / 17:17
1
answer

Check if reCAPTCHA has been marked

I am using an email form in PHP with POST method and I use Google ReCaptcha. I need to check in javascript or jQuery, if reCAPTCHA has been marked to only enable the submit button. The current code: var checado = false; jQuery("#recaptcha-...
asked by 31.10.2017 / 16:08