Jump to content

MSUK1

Members
  • Posts

    188
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

MSUK1's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks for the response, i think i'll do as you suggested split the sql into several partitions.
  2. Hello I am trying to upload an SQL file to my new VPS. However i keep getting this error: #1153 - Got a packet bigger than 'max_allowed_packet' bytes I've contacted my host and they've said phps upload limit is 2M and the packetsize is too small Ive checked my php ini file, upload size is 128M and the packet max is 16M What am i doing wrong? The filesize is just over 2MB
  3. by client do you mean devide being used to view website? If so, the font i am looking for is installed on both mac, windows and iphone. Like i said i visited just-eat.com and there font works on my iphone? However using their same code, does not work on my iphone? If you mean installing on my server how do i do this?
  4. Hi there, im wondering how via css and html to get the font "rockwell" on mobile and desktop devices. I at first used: font-family:rockwell; this worked on my desktop but not my iphone? i can see a site www.just-eat.co.uk using this: font-family:"RockwellRegular",Arial,Helvetica,sans-serif; so i thought i'd try this straight copy and paste, but then i only get the arial font?
  5. yes, several times they have whitelisted the offices IP however the problem still persists.
  6. Hello, i have hosting with hosting24.com When inside our office on IP - A, email authentication and cpanel login authentication fails intermitently, sometimes it works sometimes it doesn't displaying password wrong error. When outside the office or on IP - X everything works like normal, no errors no nothing. We have tried the following steps, new IP from ISP. New router
  7. solved this by not using GET and used POST instead
  8. just to simple things up, ive been looking around online 10-15 websites, and finally found what the problem is, but no solution. It looks as if my url is being double encoded the % to 25 and the @ to 40, producing %2540 is anyone familiar with solving this
  9. the data in the DB is fine, I think the problem is coming from the select form. I have written the "on change" function which submits the form on change it is converting any symbol &^%$£@!!@£ into its symbol value is there a way to prevent this? i believe this is the failure
  10. sample function function displayLeaders($usern){ global $database; $q = "SELECT * " ."FROM ".TBL_USERS." WHERE userlevel = '5'"; $result = $database->query($q); /* Error occurred, return given name by default */ $num_rows = mysql_numrows($result); if(!$result || ($num_rows < 0)){ echo "Error displaying info"; return; } if($num_rows == 0){ echo "Database table empty"; return; } /* Display table contents */ echo "<select onchange=\"document.leaders_email.submit()\" name=\"emailLeader\" id=\"emailLeader\" placeholder=\"Select A Leader\" class=\"{validate:{required:true}}\">\n"; echo "<option value=\"\">Please Choose A Leader</option>\n"; for($i=0; $i<$num_rows; $i++){ $LMusername = mysql_result($result,$i,"username"); $LMemail = mysql_result($result,$i,"email"); echo "<option value=\"$LMemail\">$LMusername ( $LMemail )</option>\n"; } echo "</select>"; }
  11. Hello I am using a function to get a users email from a database, in the database it is stored as email@domain.com, when i pull this down from the database, and insert it into a select field it turns the value to email%2540domain.com %2540 = @ sign (im guessing) does anyone know why this is happening? All help appreciated
  12. Hello I have a script which propogates a select input with usersnames from a database, i want to be able to when a user selects a member for the fields (containing the members info) to be propogated so that an admin can change the details here is the script i use to get the members information: function displayMembers($usern){ global $usern; global $database; $q = "SELECT * " ."FROM ".TBL_MEMBERS." WHERE leader = '$usern'"; $result = $database->query($q); /* Error occurred, return given name by default */ $num_rows = mysql_numrows($result); if(!$result || ($num_rows < 0)){ echo "Error displaying info"; return; } if($num_rows == 0){ echo "Database table empty"; return; } /* Display table contents */ echo "<select name=\"selmem\" id=\"selmem\" placeholder=\"Select A Member\" class=\"{validate:{required:true}}\">\n"; echo "<option value=\"\">Please Choose A Member</option>\n"; for($i=0; $i<$num_rows; $i++){ $Mprefix = mysql_result($result,$i,"prefix"); $Mfname = mysql_result($result,$i,"firstname"); $Mlname = mysql_result($result,$i,"lastname"); $Mgender = mysql_result($result,$i,"gender"); $Mdob = mysql_result($result,$i,"dob"); $Mpostcode = mysql_result($result,$i,"postcode"); $Memail = mysql_result($result,$i,"email"); echo "<option value=\"$Memail\">$Mfname $Mlname ( $Memail )</option>\n"; } echo "</select>"; } all help appreciated
  13. solved! my bad for repeating the null!
  14. Hello im trying to create a settings page for a script im working on i want to use a variable 'l' for the link of an iframe ive written this settings.php <? /* THIS IS YOUR SETTINGS PAGE USE THIS TO CONFIGURE THE ITEM SWITCHER WE HOPE YOU ENJOY OUR PLUGIN */ // STEP 1: CHOOSE YOUR THEME : 'green' 'orange' 'blue' 'pink' $color = 'blue'; // change between the ' ' // STEP 2: CREATE YOUR MENU /* HERE IS OUR PRE-DEFINED MENU SEE DOCUMENTATION TO ADDING MORE ITEMS */ $menu = ' <li class="is-nav-li"> <a href="http://msukserver.net/Dev/ItemSwitcher/?l=domain1"> Theme Forest <span class="orange">Orange</span> </a> </li> <li class="is-nav-li"> <a href="http://msukserver.net/Dev/ItemSwitcher/?l=2"> Code Canyon <span class="blue">Blue</span> </a> </li> <li class="is-nav-li"> <a href="http://msukserver.net/Dev/ItemSwitcher/?l=domain3"> Graphic River <span class="green">Green</span> </a> </li> <li class="is-nav-li"> <a href="http://msukserver.net/Dev/ItemSwitcher/?l=domain4"> Video Hive <span class="pink">Pink</span> </a> </li> '; // STEP 3: DEFINE EACH URL $l = NULL; if(isset($_GET['l']) && $_GET['l'] == "domain1"){ $l = 'http://www.domain1.net/'; } $l = NULL; if(isset($_GET['l']) && $_GET['l'] == "domain2"){ $l = 'http://www.domain2.net/'; } $l = NULL; if(isset($_GET['l']) && $_GET['l'] == "domain3"){ $l = 'http://www.domain3.net/'; } $l = NULL; if(isset($_GET['l']) && $_GET['l'] == "domain4"){ $l = 'http://www.domain4.net/'; } echo $l; ?> then the main index.php file which includes settings.php before the header <? include 'settings.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> <link rel="stylesheet" type="text/css" media="screen" href="is/css/<? echo $color; ?>.css"/> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div id="isbar" class="isbar"> <div id="left"> <div class="logo"></div> </div> <div id="right"> <a id="close-button" class="close" href="#hello"> <p class="close">close</p> </a> <a class="buy" href="#hello"> <p class="buy">Purchase</p> </a> </div> <div id="center"> <div id="is-button"> <p class="button">Select A Theme</p> </div> <div id="is-menu"> <ul id="is-nav-ul"> <? echo $menu; ?> </ul> </div> </div> </div> <!-- JS --> <script type="text/javascript"> $("#is-button").click(function () { $("#is-menu").fadeToggle("slow"); }); $("#close-button").click(function () { $("#isbar").fadeOut("fast"); }); </script> <iframe src="<? echo $l; ?>" scrolling="yes" width="100%" height="100%"> </iframe> </body> </html> when selecting the link (which navigates to ?l=domain1 (for example)) nothing loads in the iframe, it doesn't seem to be echoing a value for 'l' all help apperciated
  15. this works perfectly! thank you for all your help,
×
×
  • 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.