Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Andy-H last won the day on January 3 2014

Andy-H had the most liked content!

About Andy-H

  • Birthday 04/02/1991

Contact Methods

  • MSN
  • Website URL

Profile Information

  • Gender
  • Location
    Manchester - UK
  • Age

Andy-H's Achievements

Advanced Member

Advanced Member (4/5)



  1. Perfect, thanks Managed to adapt it to my needs <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{QUERY_STRING} ^$ RewriteRule ^(.+)/([^/]+)/([^/]+)$ $1?$2=$3 [QSA,E=TEST:$1] RewriteCond %{ENV:TEST} ^(.+)/([^/]+)/([^/]+)$ RewriteRule ^.*$ %1?%2=%3 [QSA,E=TEST:%1,N] RewriteCond %{ENV:TEST} ^([^/]+)$ [OR] RewriteCond %{REQUEST_URI} ^([^/+])/(.+)$ RewriteRule ^.*$ control.php?page=%1&%2 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]*)$ control.php?page=$1 [NC,L] </IfModule>
  2. cheers, managed to get it done, had to do several rules like RewriteRule (.*)[^/] ?page=$1 [NC,L] RewriteRule (.*)[^/]/(.*)[^/]/(.*)[^/] ?page=$1&$2=$3 [NC,L] //etc...
  3. I have google'd a little but can't find the solution for this. Basically I want to rewrite url's like /products/category/1 to ?page=products&category=1 I have the .htaccess for the page sorted <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) control.php?page=$1 [NC,L] </IfModule> And could quite easily update it to fit the above rule, however, I was wondering if there is a way to make it work at any level i.e. /products/category/1/product/3/action/purchase Would result in ?page=products&category=1&product=3&action=purchase BUt without doing a (.*)/(.*)/(.*)/ ?page=$1&$2=$3 etc.
  4. I like the site, design wise I can't fault it. The concept is pretty sound, get traffic for websites that sponsor you by offering prizes to users, however; sponsors will be more likely to see one-time visitors from this rather than long-term users. Perhaps you should 'quiz' your users to find out their interests and have suggested hunts sent to users with common interests - in which the sponsor site is in some way based on this common subject of interest?
  5. Go to www.addictionlane.co.uk to see what I mean.
  6. I am using trying to use a cusom font from a ttf/oet file on a website and the font displays as verdana for around 5 seconds whilst the custom-font file is downloaded then switches when done, is this because I am using a free webhost or will it be like this on a live (faster) server? And is there anyway to overcome this?
  7. I have been trying to lern web design for a while now, I don't want to pay for a course and haven't suceeded with any free online resources I have used so far. I was wondering if anyone knows any decent (free) resources to teach web design principles/image creation/image editing and other stuff that is required to create good looking website's. Thanks for replies.
  8. In that case just do this. checkstatus.php // Puts the data from "resorces" into a array ($info) $info = mysql_fetch_array( $data, MYSQL_ASSOC ); $S1username = $info['username']; $S1three = $info['three']; $S1clay = $info['clay']; $S1iron = $info['iron']; $S1wheat = $info['wheat']; //set session for use on main.php $_SESSION['ThreeS1'] = $S1three; main.php session_start(); $S1three = isset($_SESSION['ThreeS1']) ? $_SESSION['ThreeS1'] : 'Default';
  9. I would do it this way. in checkstatus.php // Puts the data from "resorces" into an object ($info) $info = mysql_fetch_object( $data ); $_SESSION['userdata'] = serialize($info); now in main.php session_start(); $userdata = isset($_SESSION['userdata']) ? unserialize($_SESSION['userdata']) : false; if ($userdata) { // now to access username use $userdata->username; //etc... }
  10. // Puts the data from "resorces" into a array ($info) $info = mysql_fetch_array( $data ); $info['username'] = $S1username; $info['username'] = $S1three; $info['username'] = $S1clay; $info['username'] = $S1iron; $info['username'] = $S1wheat; You are first populating your info variable with an array of data returned by mysql_fetch_array then assigning variables (which I am assuming are defined in your connect.config.php file?) to the array key username an repeatidly overwriting it with other variables. What exactly are you trying to do as your code doesn't make it clear??
  11. You haven't grasped the proper use of the assignment operator. It applies a copy of the variable's data on the right side of the operator to the variable on the left side of the operator. http://uk2.php.net/manual/en/language.operators.assignment.php
  12. It is because your jcart::display_cart() method expects the argument passed to be an array, however, it is recieving an object. Have you tried casting the jcart object to an array before passing it to jcart::display_cart() as an argument. //nvm
  13. I just look for cPanel and upgrade bandwidth/quota as necessary. After all, why pay for what your not using... Especially when cPanel gives a readout of your bandwidth/quota use!
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.