Questions tagged as 'php'

1
answer

Select table in PHP by variable

I have my web connected to a database, and I select a table by putting it as it is called, but now I have divided by sections, and capable, what I want to show is in another table, and I want to change it directly from a variable: I give the exa...
asked by 11.12.2018 / 23:05
3
answers

Problem with validating blocked users Laravel

I have a site which I have a function to validate if the email entered belongs or not to a user in blacklist (Blocked User). Which for the case that is fulfilled should not allow sending the form. What validation should do is, validate if t...
asked by 20.12.2018 / 16:45
3
answers

Pass JavaScript variable to PHP

Good afternoon, classmates, I have a problem, I hope you can support me, I need to pass data stored in a variable using JavaScript to PHP, how can I do that? I came up with the following but I see that you can not: <body> <scrip...
asked by 22.06.2018 / 19:58
3
answers

does not keep records in mysql database [closed]

I put my code to register but at the time of saving, I do not save anything in the database. This table is taken from the internet and works well, but I added two more fields, address and email, but when saving the data, does not save anything i...
asked by 06.04.2017 / 19:10
1
answer

PHPExcel - Problem large amount of data

good companions. I come here with a question about PHPExcel. It happens that I use this library to create reports in Excel with a basic web application in PHP that performs a query in MySQL and it is the data that will go to this document. Wh...
asked by 20.05.2017 / 15:20
1
answer

How to control / restrict users from commenting

I have my end-of-course project (in Web Application Development), in which I allow to value and comment to registered users different small commerce stores. The thing is that how do I check that a user has commented or not to a trade? What I...
asked by 30.03.2016 / 09:42
1
answer

connect sql server with php on mac

I'm trying to connect sqlserver with php in mac but I can not get it. It is assumed that the following code should give me an established connection but I can not get it. <?php $serverName = "192.168.4.5"; $$connectionInfo = array(...
asked by 09.02.2018 / 16:55
1
answer

Update database data without updating page [closed]

I have a question: I want to update the data that is seen in my php web that is connected to a database and that what changes in the database is updated on the web without updating. I know it's done with "Ajax" but the only tutorials I found are...
asked by 30.06.2018 / 03:11
2
answers

The correct syntax to use the trim () function in a form that uses javascript and php

I have a problem using the function trim , the problem is to modify the value of an object by a variable that is influenced by the function trim . var mat = $("#Name").val().trim(); var opc = $("#Name"); What I'm going for is: I...
asked by 04.08.2017 / 13:35