this is the code that works if (isset($_POST['add_to_cart'])) { if (isset($_POST['select_size']) && isset($_POST['select_color']) && isset($_POST['select_quantity'])) { $size = $_POST['select_size']; $color = $_POST['select_color']; $quantity = $_POST['select_quantity']; if (isset($_GET['lang'])) { $the_lang = mysqli_real_escape_string($connection, $_GET['lang']); if ($the_lang == 'ro') { $product_name = $product_name_ro; } else if ($the_lang == 'en') { $product_name = $product_name_en; } else if ($the_lang == 'fr') { $product_name = $product_name_fr; } } else { $product_name = $product_name_ro; } if (isset($_GET['coin'])) { $the_coin = mysqli_real_escape_string($connection, $_GET['coin']); if ($the_coin == 'ron') { $price = $product_price_ron; $the_coin = 'RON'; } else if ($the_coin == 'dollar') { $price = $product_price_dollar; $the_coin = '$'; } …

Member Avatar
+0 forum 0

I tried loading a swf through <mx:SWFLoader source="game.swf" /> (The game.swf is a flash free game if this helps) But it displayed blank, white screen. Why?

Member Avatar
Member Avatar
+0 forum 2

i have this class <?php ob_start(); session_start(); include 'db_con.php'; /** * * @Create Breadcrumbs Trail. * * @copyright Copyright (C) 2008 PHPRO.ORG. All rights reserved. * * @version //autogentag// * * @license new bsd http://www.opensource.org/licenses/bsd-license.php * * @filesource * * @package Breadcrumbs * * @Author Kevin Waterson * */ class breadcrumbs{ /* * @string $breadcrumbs */ public $breadcrumbs; /* * @string $pointer */ private $pointer = '&raquo;'; /* * @string $url */ private $url; /* * @array $parts */ private $parts; /* * @constructor - duh * * @access public * */ public function __construct() { $this->setParts(); $this->setURL(); $this->breadcrumbs = …

Member Avatar
Member Avatar
+0 forum 12

this is the code if (file_exists('/user/'.$_SESSION['Username'].'/avatar.jpg')) { echo 'Exists'; } else { echo 'Doesn't exist'; } and i get the negative case

Member Avatar
Member Avatar
+0 forum 16

so i have xampp installed on windows the address is localhost and i have a page test.php to preview my code a couple days ago everything worked fine when echoing <?php echo '<'.htmlentities('?php if ($_SESSION['Username']=='nume') { echo 'right name'; } else { echo 'wrong name'; } ?').'>'; ?> and when i tried to test it yesterday the page showing is blank why?

Member Avatar
Member Avatar
+0 forum 8

what i'm doing wrong? <?php if (isset($_SESSION['Username']=='axxxA')) { echo '<form action="upload.php" enctype="multipart/form-data" method="POST"> <input type="file" name="file" /><br /><br /> <input type="submit" value="Upload" /> </form>'; } else { echo 'Trebuie sa fii logat ca axxxA pentru a modifica profilul.'; } ?>

Member Avatar
Member Avatar
+0 forum 6

so i have <?php ob_start(); session_start(); ?> <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="file"><br><br> <input type="submit" value="Upload"> </form> <?php $file_name = $_FILES['file']['name']; $file_size = $_FILES['file']['size']; $file_type = $_FILES['file']['type']; $tmp_name = $_FILES['file']['tmp_name']; $error = $_FILES['file']['error']; if (isset($file_name)) { if (!empty($file_name)) { $location = '/user/'.$_SESSION['Username'].'/'; if (move_uploaded_file($tmp_name, $location.$file_name)) { echo 'Uploadat!'; } } else { echo 'Te rugam alege o imagine!'; } } ?> and is not working it says "Unable to move '/tmp/phppQNtB5' to '/user/axxxA/back_view.jpg' in /home/user/public_html/user/axxxA/upload.php on line 20"

Member Avatar
Member Avatar
+0 forum 14

I have a script that registers users and i want to implement in it this function to make for each user a folder with the name they supply so i used $user_folder = mkdir($_SERVER['HTTP_HOST'].'/user/'.$name, 0755); $name is the name they supplyed in the form so i get this "Warning: mkdir() [function.mkdir]: No such file or directory in /home/public_html/registration/index.php on line 139" Why?

Member Avatar
Member Avatar
+0 forum 4

so i have the following code and is not working // Make user folder if (!is_dir('../user/'.$name)) { $user_folder = mkdir('../user/'.$name, 0777); $user_index = copy('../login/user.php', '../user/'.$name.'/index.php'); if ($handle_append = fopen('../user'.$name.'index.php', 'w')) { echo 'Succes opening the file'; } else { echo 'Error opening the file'; die(); } $string = 'text to write'; if (fwrite($handle_append, $string)) { echo 'Succes writing the file'; } else { echo 'Error writing the file'; die(); } fclose($handle_append); $user_inf = copy('../login/user_inf.php', '../user/'.$name.'/user_inf.php'); } else { echo 'Acest nume de utilizator exist&#259; deja, te rug&#259;m alege alt nume!'; exit(); }

Member Avatar
Member Avatar
+0 forum 3

so i have followed this tutorial and i stuck into the activate section of this here's the tutorial. what went wrong? http://youhack.me/2010/04/01/building-a-registration-system-with-email-verification-in-php/comment-page-3/

Member Avatar
Member Avatar
+0 forum 26

so i have the following script: <?php /** * * @Create Breadcrumbs Trail. * * @copyright Copyright (C) 2008 PHPRO.ORG. All rights reserved. * * @version //autogentag// * * @license new bsd http://www.opensource.org/licenses/bsd-license.php * * @filesource * * @package Breadcrumbs * * @Author Kevin Waterson * */ class breadcrumbs{ /* * @string $breadcrumbs */ public $breadcrumbs; /* * @string $pointer */ private $pointer = '&raquo;'; /* * @string $url */ private $url; /* * @array $parts */ private $parts; /* * @constructor - duh * * @access public * */ public function __construct() { $this->setParts(); $this->setURL(); $this->breadcrumbs = '<a class="bc" …

Member Avatar
Member Avatar
+0 forum 2

so i have the following css stylesheet [Click Here](http://www.jocurigratisonlinenet.ro/default.css) and i want that `#footer{}` and `#copyright{}` to stay at the bottom of the page all time. How can i achieve that?

Member Avatar
Member Avatar
+0 forum 3

hi, i cannot arrange the contents of a div inside, i used the command `text-align:center` and doesn't work. What can i do? here's a link of the css, you can find the problem at `#footer{}` [The css](http://www.jocurigratisonlinenet.ro/default.css)

Member Avatar
Member Avatar
+0 forum 1

Hello! The main idea is that i want to set the variable for screen resolution of the user and pass it to php to manipulate her. How can i achieve that?

Member Avatar
Member Avatar
+0 forum 8

Hi i have a long script named **images.php** that handles the image manipulation and the following script to handle multiple images at once <?php // load the image manipulation class require '../../image.php'; // create a new instance of the class $image = new Zebra_Image(); $directory = 'jocuri'; if ($handle = opendir($directory.'/')) { $cat=array_diff(scandir($directory), array('.', '..', 'index.php')); //shuffle($cat); foreach($cat as $key => $game) { if ($cat!='.'&&$cat!='..'&&$cat!='index.php') { // indicate a target image // note that there's no extra property to set in order to specify the target // image's type -simply by writing '.jpg' as extension will instruct the script // …

Member Avatar
Member Avatar
+0 forum 4

Hi I have the folowing problem: The css wont apply to html although everything is corectly <link href="../../../../default.css" rel="stylesheet" type="text/css" media="all" /> ... <h4><?php echo $gamename[2]; ?></h4> and in the css i have the following h4 { color: #FFF; font-size: large; font-family: "Courier New", Courier, monospace; }

Member Avatar
Member Avatar
+0 forum 20

The End.