Would you help me with the temperature conversion PHP code?

May 30, 2011 by  
Filed under PHP Codes

I found some scripts with the get method, but I need the post method. Well just finish the code:

>
Celsius:
>

if (isset($_POST['submit']))
{
if (isset($_POST['deg_f']) && $_POST['deg_f'] != "")
{
// Do the processing
}
// then do it for degrees celsius to fahrenheit.

}

?>

enabling javascript using php code?

May 29, 2011 by  
Filed under PHP Codes

i want that as soon as a user views my site the javascript in his browser should be enables if not already enable…please give the php code to do so..

How do I make a set of code run every ten minutes in PHP?

May 28, 2011 by  
Filed under PHP Codes

Every ten minutes, I want my information to update. I know the formulas, but not how to make it happen every ten minutes and every midnight. Ideas?

Parse error while executing php code..Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in?

May 27, 2011 by  
Filed under PHP Codes

Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in C:\XAMPP\xampp\htdocs\test.php on line 9

this is the error when i’m running the code


This is an HTML line

echo “This is a PHP line”;
phpinfo();
?>

I instaled XAMPP 1.7.3
PHP, MYSQL and all the services are active
then also i’m getting the error

Is there a quick way to modify all your code in PHP files to global_register off?

May 26, 2011 by  
Filed under PHP Codes

It’s register_global, not global_register.

The php code for if 2 buttons are clicked and echoes both numbers?

May 25, 2011 by  
Filed under PHP Codes

// a section of code
if (isset($_POST['submit'] ))
{
echo ” First Choice is “;
echo $_POST['submit'];
$choice1 = $_POST['submit'];
echo “
“;
}

Why do my codes not work in Ubuntu but work in Windows?

May 24, 2011 by  
Filed under PHP Codes

I use XAMPP for both Windows and Linux.

I use the exact same code and database on Windows and Ubuntu but it does not work on Ubuntu.
Apache 2.2.14, MySQL 5.1.41, PHP 5.3.1 installed on Linux.

Why is this so?

Next Page »