Questions tagged as 'php'

1
answer

Laravel 5+ How to make dynamic menus

My question is how to make dynamic menus in Laravel, which should appear in all views. The menu should leave the categories table, and I can cache it so that the query does not repeat unnecessary times. But how do I get it to appear...
asked by 24.06.2018 / 16:55
1
answer

problem when sending data with ajax to mysql

good day I have this small problem and I would like to give me a hand I am trying to send data to my database through ajax and I work all messages and all alerts and when I send to send says that everything was sent OK but the data is not added...
asked by 05.07.2018 / 00:54
2
answers

Modify attributes of HTML elements dynamically created with JavaScript

On my website I make a request to the server PHP with AJAX , and I bring some links already created in PHP . All right up to here, but the problem is that I want to change these links to href with JavaScipt , but...
asked by 08.08.2018 / 22:37
0
answers

How do I store data without being repeated, and how to add data in a form.

good day! for all I'm doing a project, where I'm going to register some people to give them some support they asked me to use the CURP so that the user is unique and can not ask again neither he nor anyone in his family. because the support is o...
asked by 08.08.2018 / 21:50
2
answers

Regular expression to remove comments JS, HTML and CSS

I need a regular expression that works to remove comments from HTML, JS and CSS. The biggest problem I find is in the line comments. As in the project where I work there is a lot of JS to fire in HTML, if I try to detect // until end of line,...
asked by 08.08.2018 / 09:56
0
answers

Error in the if statement

I have an application where there are two types of users (manager and technician), when a user loguea depends on the type that will be a menu or another, when the user is logged in when he clicks on the header I want him to take to its correspon...
asked by 14.06.2018 / 08:32
1
answer

Problems with pdo connection and prepared queries php poo

I get the following error:    Fatal error: Uncaught Error: Call to a member function prepare () on   null in C: \ xampp \ htdocs \ EPWeb \ Admin \ Business \ CapaNegocios.php: 17 Stack   trace: # 0 C: \ xampp \ htdocs \ EPWeb \ Admin \ Presen...
asked by 25.06.2018 / 02:16
1
answer

Regex for php, check if a variable has 1 uppercase, 1 small, 1 digit and 8 characters minimum

I have a project in php, I am quite new programming and I never touch that language, my question is basically what the title says, I need to see if a variable has 1 uppercase, 1 lowercase, 1 digit and 8 characters minimum I currently have this i...
asked by 12.07.2018 / 16:01
0
answers

How to implement roles in my web application

Good I am new here I have a doubt with an authentication system that requires roles, I have a users table related to the other types of users but I do not know how to implement it if a table for each type of user (driver, passenger) as shows the...
asked by 09.06.2018 / 23:42
0
answers

Insert in database with JavaScript and php

I'm trying to insert into the database. The operation would be to give the button "Apuntarse" and that by inserting the user and the id of the hang-up to the database at the same time that the button is deactivated and the "Unplug" button is act...
asked by 08.06.2018 / 09:34