send if button clicked PHP SQL

PHP
i'm trying to show notice to user if information sent property: "نظر شما با موفقیت ثبت شد" or else show notice if he or she try to click on button ...
1 year ago

Finding IP of a website that referring to my PHP script

PHP
I was creating a PHP file that generates a JavaScript code. In case a website reefers to my code: <script src="http://myserver.com/myJS.php">...
1 year ago

How does mysqli_connect() work in PHP?

PHP
If I write this code: mysqli_connect(host, username, password, dbname); This function of MySQL should connect to a database. But if I rewrite it li...
1 year ago

How to call a JavaScript function from PHP?

PHP
How to call a JavaScript function from PHP? <?php jsfunction(); // or echo(jsfunction()); // or // Anything else? The following code ...
1 year ago

How do I suppress this foreach warning when the function that contains it relies on $_POST data

PHP
I have the following code which functions as intended when $_POST values are set, however, if no $POST values(IE when the page is first loaded) are se...
1 year ago

Getting the Folder Path via the Browser using Internet Explorer

PHP
I would like to create a folder selector for my application which will only run on Internet Explorer Browsers (IE6+). I would like to get the full fo...
1 year ago

Search MySQL database in PHP

PHP
I'm attempting to make a search page that allows a user to type any part of a title of a book from a mysql database. With this code I am getting no re...
1 year ago

=?ISO-8859-1 in mail subject

PHP
I'm acquiring the unread mails I have in my GMail account through PHP and its method *imap_open* When I get the subjects through the method *imap_fet...
1 year ago

Displaying url in php search box

PHP
I am trying to make this search page to display the URL's below the search bar instead of the actual name of the "product". Here is how far I've gone ...
1 year ago

Image series bar

PHP
I have for example image of Coin. I want to give a value from 0 to example 20. 0: no coin 1: to one coin 2: 2 coin etc 20: 20 coin The collectio...
1 year ago

AES-256 encryption in PHP

PHP
I need a PHP function, AES256_encode($dataToEcrypt) to encrypt the $data into AES-256 and another one AES256_decode($encryptedData) do the opposite. D...
1 year ago

Combining isset and elseif statements

PHP
Good day. I would like to ask if this code is possible? What I want to happen is that it would only echo after pressing submit. Here is the code. Than...
1 year ago

Accepting friend request MySQL

PHP
Explanation: As you can see I have two tables, "user" and "Request" "use"r is my table which contains the id of the username "Request" is a table to...
1 year ago

Using global variable in my class causing unexpected syntax

PHP
I have a class that requires a variable that is defined out of the scope of it. So i tried using global but, this causes this error: syntax error,...
1 year ago

How to display tables by school year and semester using php?

PHP
I am trying to display a table by school year using PHP. I it seems not working very well because the school year displays redundantly. How to simply...
1 year ago

PHP site to control Arduino sends code on load of webpage

PHP
I am trying to create a domotica setup with my Arduino and my server. Before using the RF transmitter, I'm trying to control LEDs (setting them on/off...
1 year ago

Laravel 5 how to get route action name?

PHP
I'm trying to get the current route action, but I'm not sure how to go about it. In Laravel 4 I was using Route::currentRouteAction() but now it's a b...
1 year ago

How can I show only <h1> tags in The Loop?

PHP
Is there a way to force The Loop to show only &lt;h1&gt; tags from the content of a post, while ignoring all other tags (h2, p, hr... )? &lt;div id...
1 year ago

Array of datetime to mysql datetime format

PHP
I have an array called $process_date with two elements. The elements are in this format dd/mm/yy H:i:s $process_date = array( "27/10/15 17:00:00", ...
1 year ago

Codeigniter 404 error not found assets folder

PHP
I have problem with my codeiginiter project. I use xamp and I have my project folder in htdocs. To see my project i must type http://localhost/mypro...
1 year ago