Questions tagged as 'php'

2
answers

Delete cascading table data

I have some relationships in my tables and I'm wanting to delete them in reverse. In my system the user will have the option of deleting a category, here comes my doubt as I will do this, because it should delete the pages, category descript...
asked by 13.06.2015 / 20:35
2
answers

PHPmailer - CSS does not appear

Hello, I'm trying to set up phpmailer to send a message in html with css, but it's not recognizing the css. What's wrong? $mail->Body = ' <style type="text/css"> .corpo {margin: 15px;padding: 15px;background-col...
asked by 25.06.2015 / 21:27
2
answers

How to return the page with the anchor of the LARAVEL id?

After submitting the form I return to the page in question with two methods, redirect() and back() . In case I'm using the bootstrap tabs and would like to get back with the anchor of the id, eg: return redirect()->back(); /...
asked by 21.06.2016 / 22:42
1
answer

Limit login attempts by time and quantity

I am working on a login system with php and mysql and this doubt arose because I do not know if this can only be considered something "acceptable" as another security tool in the login process. > Well say the idea is to limit the...
asked by 05.06.2016 / 19:09
1
answer

Memory overflow with mysqli_query

The following statement caught the program: $result = mysqli_query($db, 'SELECT * FROM base'); And returned the following error:    PHP Fatal error: Allowed memory size of 134217728 bytes exhausted   (tried to allocate 4194312 byte...
asked by 27.07.2018 / 04:31
2
answers

Create profiles in laravel application

I need to modify my laravel application so that each user can see their particular content, since each user will have their own information. I already configured the default authentication using make auth and it works fine.     
asked by 11.10.2017 / 12:58
2
answers

What status code to use when there is no bank record to return in an HTTP request?

I have an endpoint that returns a list of products. So, if there's any data in this list, I'll set the HTTP status code to 200, and if it does not, I just return a json saying that no record was found and the status code of HTTP 200. My en...
asked by 12.06.2017 / 00:40
1
answer

What is the difference between the MySQL Trigger exception and MySQL Event?

I would like to create an Email trigger scheduler , if possible, without using cron , and would like to know if you can do this through MySQL >. Searching the Internet I've seen some examples of creating a non-cron event : CREATE...
asked by 14.12.2015 / 13:38
3
answers

Multiple pages with a different id

I have several PHP pages, with different names of course. I wanted to have something like this home.php?id=0 , on the next page it has the name cliente.php wanted that when I have home open when clicking on cliente.php...
asked by 14.12.2015 / 13:38
1
answer

php vs nodejs performance on websockets server

What I take for granted today is that nodejs is best suited to work with a constant pool of sockets (websockets in this case) because by being single-threaded each new connection generates an extra minimal memory consumption (a few hundred KBs),...
asked by 15.02.2016 / 00:25