I need a php & MySQL script which will do the following: User presses a button, insert into MySQL table a timestamp, if 60 minutes passed echo a text, if 60 minutes didn’t pass echo another text. …
Why is Symfony2 performing so bad in benchmarks and does it matter?
My colleagues and I are in the process of choosing a web framework to develop a high traffic web site. We are really good with node.js + express and php + symfony2. Both are great frameworks but we …
How to compare Firebird Database TIMESTAMP with PHP time() value?
My database has a data field of type TIMESTAMP. It’s called “mytime”. I get a number from php’s time() function. e.g: print time(); Then I query the db: SELECT * FROM mytable where mytime > …
Startup: Unable to load dynamic library ‘/usr/lib/php/modules/module.so’
When I run the command php -v this error comes up PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/module.so’ – /usr/lib/php/modules/module.so: cannot open shared …
I have created image tag in JavaScript, but it is not displaying image on web page
I am calling this function on add button from my PHTML. On click of add button I want to show image of selected fruit in <div>. In this code I have created <img> tag and passing image path to src, to show selected image on web page. It is correctly taking path of images but it is not appending <…
PHP retrieving array values using dash arrow “->”
I’ve been using PHP quite a while now, but never been an advanced programmer. I feel like this is dumb question but never understood why some array values can be retrieved using different methods: This: rather than normal: The standard $array[‘value’] always works, but the one using the ->…
how to bind multiple parameters to MySQLi query [closed]
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the …
How do you Encrypt and Decrypt a PHP String?
What I mean is: Maybe something like: In PHP, how can you do this? Attempted to use Crypt_Blowfish, but it didn’t work for me. Answer Updated PHP 7 ready version. It uses openssl_encrypt function from PHP OpenSSL Library.
MYSQLi query not producing expected results
I am having a problem getting results I can use from my query. Code: //Create query $stmt = $con->stmt_init(); $query = “SELECT * FROM `users` WHERE `userlogin` = ‘$username’ AND `user_passwrd`…
Understanding MVC Views in PHP
I have to seem problems grasping the concept of Views in MVC, they are, according to what I’ve read, the layer that manages the presentation in the aplication, but many of the material I’ve been …