Questions tagged as 'php'

1
answer

What is the difference between 'filter_var' and 'filter_input'?

What's the difference between filter_var and filter_input ? I can not find this anywhere, at least not in a way that I understand. And how do I replace mysql_real_escape_string with one of them? $password = mysql_real_...
asked by 25.05.2014 / 03:47
2
answers

Create HTML table using PHP

Can I create a table to separate this code? This is the only way to align the data I have if($exibe['Nome1'] != NULL) { echo '<p><b>Nome: </b>'.$exibe["Nome1"].' &nbsp;&nbsp;<b> Função : </b>'.$exibe["...
asked by 10.06.2014 / 11:10
2
answers

Pulling PHP information via AJAX with jQuery in json format

I have a jQuery code that creates a calendar that lets you leave reminders on the date. The code is as follows: var calendar = $('#calendar').fullCalendar({ slotDuration: '00:15:00', /* If we want to split day time each 15minutes */...
asked by 23.06.2014 / 02:59
3
answers

Create and read DLL in php?

Would it be possible to create and open windows DLL libraries in php? I want to organize my php classes in dll so that they can be used in both php and C #, if there is an alternative, it also works.     
asked by 29.04.2014 / 21:56
2
answers

How to avoid sending PHP requests in a row? [duplicate]

Well, the situation is the following there are some forms on my website. These forms are programmed to fire e-mails using the PHPMailer class. What happens is this, if the page takes a while to respond the user is often clicking the submit but...
asked by 12.03.2014 / 15:13
2
answers

Saving files in the browser cache

I tried a google tool to test the speed of my site. link I've been shown several points that need fixing, such as "Take advantage of browser caching". From what I understand is to save files in the browser cache, avoiding to be always loade...
asked by 24.04.2014 / 17:07
4
answers

Login condition with user or email in the same field

I am creating a system for schools, where the teacher, when registering, inserts data such as name, email, user and password. So far the teacher can log in with email, but I wish I could login with the name too (I made changes but this is giving...
asked by 09.05.2018 / 15:45
1
answer

Comparison of hours in Laravel

I'm trying to create a method that will return the amount of minutes since the last insertion in the database. The way I did it was this one, but this one giving error: $now = Carbon::now(); $minutes = LusLeadUpdateStatus::select('created_at')...
asked by 30.08.2018 / 21:38
3
answers

What is the difference between the "Exception" of PHP?

It has several Exception defined in PHP, such as ErrorException PDOException Error ArithmeticError , etc ... But what's the point of having so many exceptions like this? Is there a difference between using one and...
asked by 24.05.2016 / 17:31
4
answers

Error in mysql_fetch_object

I do not know what happens in this error.    Fatal error: Can not use object of type stdClass as array in $result = mysql_query("select * from usuarios"); while ($row = mysql_fetch_object($result)) { echo $row["Id"]; echo $row["Nom...
asked by 18.02.2014 / 19:15