Jump to content

kaosjon

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kaosjon's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi, i am thinking of creating a text based game mmorpg using php/mysql etc... I know that a lot of these types of games use a tick based system, but i want it to be realtime, the only game i cna find that uses this is Torn, does anyone know how they make it realtime? I know that ticks can be controlled by cronjobs, but how about realtime? The problem is that the game might involve the player building a house, in a tick based system it could be easy to manage by saying the house will take 3 ticks to complete, but i want the house to be like in 10 minutes of 32 minutes, how can i do this. Someone said to check whenever the player next logs in to check if the house has finished and then say it has been built, but seeing as it is an mmorpg it could affect everyones gameplay, not just the person building it, so this will not work. Thanks and sorry if this is a bit confusing.
  2. Yes i did, but i think it just installs the whole upload process of which i don't want to change from mine, i had a bit more of a look and i think what i want is iframing, but not sure.
  3. Hi thanks for the reply, but my website already uplaods files, i just want to make it look more professional, so when the file is uploading a box appears in the middle of the screen saying something like scanning/uploading, i want to be able to code this myself. Any ideas on how i can do that?
  4. i am currently trying to add a uploading/scanning screen to my file upload site, (just to be clear i need the 'design' part of it, like actually displaying the box not anything to do with the scanners, or implementing the scanners, just a box that says scanning with a scanning gif next to it). Pretty much my site allows people to upload files which scans them and then displays the result. All the scanners are up and working but i am trying to add this scanning page. I want it to look a bit like this when you upload a file - www.virustotal.com How would I be able to do this? You don't have to be very specific just like what programming languages, or any examples of code, to help me, i don't really know where to start. Here is my website www.zerovirus.org Thanks for your help
  5. Hi, i am developing a website that involves members uploading files. For better security i want to be able to scan the file with a variety of AV scanners. I have done some research and the easiest way to do this seems to use command line scanners. I am currently testing on my own computer using xampp. The problem is when i run the scan it displays the output 0 which means no virus found and i know that the file is infected because i ran the same AV scan through the windows command prompt and it found the virus. Here is the code <?php exec("C:\\Program Files (x86)\AVG\AVG2012\avgscana.exe\ /SCAN=daniel_crypted.exe/"); $result = exec("echo %ERRORLEVEL%"); ?> Any ideas why it is doing this? Thanks
  6. Hi i am having a little trouble with my jquery tabs, for some reason it loads the first tab content, but when i select another tab the content is not displayed. When i try to go back to the first tab it doesnt load either. Here is the html <div id="content"> <div id="tabsX"> <div id="tabContent"> <ul class="tabs"> <li><a id="all" href="#all" class="all">All</a></li> <li><a id="free" href="#free" class="free">Free</a></li> <li><a id="paid" href="#paid" class="paid">Paid</a></li> <li><a id="completed" href="#completed" class="completed">Completed</a></li> <div id="filter"><select name="filterQuest"> <option>Name</option> <option>Payout</option> <option>Difficulty</option> </select></div> </ul> <div class="tab_container"> <div id="all" class="tab_content"> asddd </div> <div id="free" class="tab_content"> <!--Content-->adadada </div> <div id="paid" class="tab_content"> <!--Content-->adad </div> <div id="completed" class="tab_content"> <!--Content-->adsasd </div> </div><!--- end tab_container---> </div><!---end tab content---> <br class="clear" /> </div><!--- end tabsX---> <div id="tournament"></div><!--- end tournament---> </div><!--- end content---> Here is the javascript <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { //Default Action $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function() { $("ul.tabs li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content return false; }); }); </script> Any Ideas, Thanks
  7. Hi, thanks for the reply, the div i want to center is #accountContent and i want it to expand horizontally. Is there anything i can do to make this work? Thanks
  8. Hi i am trying to center a div that auto expands depending on the content, however the div must be fixed positioned with a background that can also expand and contract with the div. I have gotten pretty far with the coding of this, however have struck a problem that i can't seem to fix. So far the div expands and contracts depending on the content and is fixed positioned, but it is not centered and won't center for some reason. Here is the html <div id="accountBar"> <div id="accountContent">sdfsdfsdffsdf</div><!---end accountContent---> </div><!--- end accountBar---> Here is the css #accountBar { height: 56px; width: 100%; border: thin dotted #333; margin-top: 56px; margin-right: auto; margin-bottom: 0; margin-left: auto; position: fixed; } #accountBar #accountContent { height: 56px; margin-top: 0; margin-right: auto; margin-bottom: 0; margin-left: auto; background-image: url(../images/accountBar.png); background-repeat: repeat-x; display: inline-block; padding-right: 10px; padding-left: 10px; } Thanks for any help you can give
  9. Hi i am trying to develop my registration page it is a combination of multistep (tabs) with real time validation which is sort of working ok, it validates on entry which is really good, however when i include the script JavaScript / DHTML / AJAX Syntax (Toggle Plain Text) <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" charset="utf-8"></script> which is for the form validation, for some reason the next button for the tabs do not work, when i take it out the next buttons work but the form validation does not. Any ideas? All the code for the next button is at the bottom of the code below, the code for the validation is in a seperate file and is pretty big, so ask if you want me to include it. Thanks for the help JavaScript / DHTML / AJAX Syntax (Toggle Plain Text) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <!-- This is a jQuery Tools standalone demo. Feel free to copy/paste. http://flowplayer.org/tools/demos/ Do *not* reference CSS files and images from flowplayer.org when in production Enjoy! --> <head> <title>jQuery Tools standalone demo</title> <!-- include the Tools --> <script src="http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" charset="utf-8"></script> <script type="text/javascript" src="registration_validation.js" charset="utf-8"></script> <!-- standalone page styling (can be removed) --> <link rel="stylesheet" type="text/css" href="standalone.css"/> <link rel="stylesheet" type="text/css" href="scrollable.css"/> <!-- a little more standalone page styling --> <style> body { padding-top:5%; } </style> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <!-- twitter style notification bar for validation errors --> <div id="drawer">Please fill in the empty fields marked with a <samp style="color:red">red</samp> border.</div> <!-- the form --> <form id="jform" action="#"> <div id="wizard"> <div class="items"> <!-- page1 --> <div class="page"> <h3> <strong>Step 1: </strong> Account Information <em>Please enter your login information:</em> </h3> <ul> <li class="required double"> <label> <strong>1.</strong> FirstName <span>*</span><br /> <input type="text" class="text" name="firstname" id="firstname"/> </label> <label> <strong>1.</strong> LastName <span>*</span><br /> <input type="text" class="text" name="lastname" id="lastname"/><br /> </label> </li> <!-- email --> <li class="required"> <label> <strong>1.</strong> Enter Your Email Address <span>*</span><br /> <input type="text" class="text" name="email" id="email"/> </label> </li> <!-- username --> <li class="required"> <label> <strong>2.</strong> Pick a username <span>*</span><br /> <input type="text" class="text" name="username" id="username"/> </label> </li> <!-- password --> <li class="required double"> <label> <strong>3.</strong> Choose a Password <span>*</span><br /> <input type="password" class="text" name="password" id="password"/> <em>Must be at least 8 characters long.</em> </label> <label> Verify Password <span>*</span><br /> <input type="password" class="text" name="cpassword" id="cpassword"/> </label> </li> <li class="clearfix"> <button type="button" class="next right">Proceed »</button> </li> </ul> </div> <!-- page2 --> <div class="page"> <h3> <strong>Step 2: </strong> Kingdom Information <b></b> <em>Tell us about Your Kingdom:</em> </h3> <ul> <!-- address --> <li class="required double"> <br /> <label> <strong>1.</strong> Kingdom Name <span>*</span><br /> <input type="text" class="text" name="kingdom_name" id="kingdom_name"/> </label> </li> <li class="double"> <label> <strong>2.</strong> Referal <br /> <input type="text" class="text" name="referal" id="referal"/> </label> </li> <h3><strong>Step 3: </strong> Payment Information <b></b> <em>Tell us your Payment Information:</em> </h3> <br /> <li class="required"> <label> <strong>1.</strong> Paypal Email <span>*</span><br /> <input type="text" class="text" name="paypal_email" id="paypal_email"/> </label> </li> <li class="required double"> <label> <strong>2.</strong> Country <span>*</span> <select name="country" id="country"> <option value="">-- please select --</option> <option>PayPal</option> <option>AlertPay</option> <option>MoneyBookers</option> </select> </label> <label> <strong>2.</strong> Payment Method <span>*</span> <select name="payment_method" id="payment_method"> <option value="">-- please select --</option> <option>PayPal</option> <option>AlertPay</option> <option>MoneyBookers</option> </select> </label> </li> <li class="clearfix"> <button type="button" class="prev" style="float:left">« Back</button> <button type="button" class="next right">Proceed »</button> </li> <br clear="all" /> </ul> </div> <!-- page3 --> <div class="page"> <h2> <strong>Step 3: </strong> Congratulations! <b></b> <em>You are now a happy member of the Open Source community</em> </h2> <p> <textarea id="oath" name="oath" cols="50" rows="8" readonly>ajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs d</textarea> </p> <p> <input name="newsletter" type="checkbox" id="newsletter" value="" checked /> <label for="newsletter"> Sign Up for the Monthly Telegram.</label> </p> <li class="required"> <p> <input name="agree" type="checkbox" id="agree" value="" /> <label for="agree"> I Swear To Obey the Oath Held Before Me.</label> </p> </li> <p style="margin-top:30px"> <button type="button" class="prev" style="float:left">« Back</button> <input name="send" id="send" type="submit" style="float:right"/> </p> </div> </div><!--items--> </div><!--wizard--> </form> <script> $(function() { var root = $("#wizard").scrollable(); // some variables that we need var api = root.scrollable(), drawer = $("#drawer"); // validation logic is done inside the onBeforeSeek callback api.onBeforeSeek(function(event, i) { // we are going 1 step backwards so no need for validation if (api.getIndex() < i) { // 1. get current page var page = root.find(".page").eq(api.getIndex()), // 2. .. and all required fields inside the page inputs = page.find(".required :input").removeClass("error"), // 3. .. which are empty empty = inputs.filter(function() { return $(this).val().replace(/\s*/g, '') == ''; }); // if there are empty fields, then if (empty.length) { // slide down the drawer drawer.slideDown(function() { // colored flash effect drawer.css("backgroundColor", "#FEA7A7"); setTimeout(function() { drawer.css("backgroundColor", "#FEA7A7"); }, 1000); }); // add a CSS class name "error" for empty & required fields empty.addClass("error"); // cancel seeking of the scrollable by returning false return false; // everything is good } else { // hide the drawer drawer.slideUp(); } } // update status bar $("#status li").removeClass("active").eq(i).addClass("active"); }); // if tab is pressed on the next button seek to next page root.find("button.next").keydown(function(e) { if (e.keyCode == 9) { // seeks to next tab by executing our validation routine api.next(); e.preventDefault(); } }); }); </script> </body> </html>
  10. Sorry i thought i put code tags in, i can't find where to edit the post though
  11. Hi i am trying to develop my registration page it is a combination of multistep (tabs) with real time validation which is sort of working ok, it validates on entry which is really good, however when i include the script JavaScript / DHTML / AJAX Syntax (Toggle Plain Text) <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" charset="utf-8"></script> which is for the form validation, for some reason the next button for the tabs do not work, when i take it out the next buttons work but the form validation does not. Any ideas? All the code for the next button is at the bottom of the code below, the code for the validation is in a seperate file and is pretty big, so ask if you want me to include it. Thanks for the help JavaScript / DHTML / AJAX Syntax (Toggle Plain Text) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <!-- This is a jQuery Tools standalone demo. Feel free to copy/paste. http://flowplayer.org/tools/demos/ Do *not* reference CSS files and images from flowplayer.org when in production Enjoy! --> <head> <title>jQuery Tools standalone demo</title> <!-- include the Tools --> <script src="http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" charset="utf-8"></script> <script type="text/javascript" src="registration_validation.js" charset="utf-8"></script> <!-- standalone page styling (can be removed) --> <link rel="stylesheet" type="text/css" href="standalone.css"/> <link rel="stylesheet" type="text/css" href="scrollable.css"/> <!-- a little more standalone page styling --> <style> body { padding-top:5%; } </style> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <!-- twitter style notification bar for validation errors --> <div id="drawer">Please fill in the empty fields marked with a <samp style="color:red">red</samp> border.</div> <!-- the form --> <form id="jform" action="#"> <div id="wizard"> <div class="items"> <!-- page1 --> <div class="page"> <h3> <strong>Step 1: </strong> Account Information <em>Please enter your login information:</em> </h3> <ul> <li class="required double"> <label> <strong>1.</strong> FirstName <span>*</span><br /> <input type="text" class="text" name="firstname" id="firstname"/> </label> <label> <strong>1.</strong> LastName <span>*</span><br /> <input type="text" class="text" name="lastname" id="lastname"/><br /> </label> </li> <!-- email --> <li class="required"> <label> <strong>1.</strong> Enter Your Email Address <span>*</span><br /> <input type="text" class="text" name="email" id="email"/> </label> </li> <!-- username --> <li class="required"> <label> <strong>2.</strong> Pick a username <span>*</span><br /> <input type="text" class="text" name="username" id="username"/> </label> </li> <!-- password --> <li class="required double"> <label> <strong>3.</strong> Choose a Password <span>*</span><br /> <input type="password" class="text" name="password" id="password"/> <em>Must be at least 8 characters long.</em> </label> <label> Verify Password <span>*</span><br /> <input type="password" class="text" name="cpassword" id="cpassword"/> </label> </li> <li class="clearfix"> <button type="button" class="next right">Proceed »</button> </li> </ul> </div> <!-- page2 --> <div class="page"> <h3> <strong>Step 2: </strong> Kingdom Information <b></b> <em>Tell us about Your Kingdom:</em> </h3> <ul> <!-- address --> <li class="required double"> <br /> <label> <strong>1.</strong> Kingdom Name <span>*</span><br /> <input type="text" class="text" name="kingdom_name" id="kingdom_name"/> </label> </li> <li class="double"> <label> <strong>2.</strong> Referal <br /> <input type="text" class="text" name="referal" id="referal"/> </label> </li> <h3><strong>Step 3: </strong> Payment Information <b></b> <em>Tell us your Payment Information:</em> </h3> <br /> <li class="required"> <label> <strong>1.</strong> Paypal Email <span>*</span><br /> <input type="text" class="text" name="paypal_email" id="paypal_email"/> </label> </li> <li class="required double"> <label> <strong>2.</strong> Country <span>*</span> <select name="country" id="country"> <option value="">-- please select --</option> <option>PayPal</option> <option>AlertPay</option> <option>MoneyBookers</option> </select> </label> <label> <strong>2.</strong> Payment Method <span>*</span> <select name="payment_method" id="payment_method"> <option value="">-- please select --</option> <option>PayPal</option> <option>AlertPay</option> <option>MoneyBookers</option> </select> </label> </li> <li class="clearfix"> <button type="button" class="prev" style="float:left">« Back</button> <button type="button" class="next right">Proceed »</button> </li> <br clear="all" /> </ul> </div> <!-- page3 --> <div class="page"> <h2> <strong>Step 3: </strong> Congratulations! <b></b> <em>You are now a happy member of the Open Source community</em> </h2> <p> <textarea id="oath" name="oath" cols="50" rows="8" readonly>ajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs dajsdnja daj da dh aj dja dj ajd ajhs d</textarea> </p> <p> <input name="newsletter" type="checkbox" id="newsletter" value="" checked /> <label for="newsletter"> Sign Up for the Monthly Telegram.</label> </p> <li class="required"> <p> <input name="agree" type="checkbox" id="agree" value="" /> <label for="agree"> I Swear To Obey the Oath Held Before Me.</label> </p> </li> <p style="margin-top:30px"> <button type="button" class="prev" style="float:left">« Back</button> <input name="send" id="send" type="submit" style="float:right"/> </p> </div> </div><!--items--> </div><!--wizard--> </form> <script> $(function() { var root = $("#wizard").scrollable(); // some variables that we need var api = root.scrollable(), drawer = $("#drawer"); // validation logic is done inside the onBeforeSeek callback api.onBeforeSeek(function(event, i) { // we are going 1 step backwards so no need for validation if (api.getIndex() < i) { // 1. get current page var page = root.find(".page").eq(api.getIndex()), // 2. .. and all required fields inside the page inputs = page.find(".required :input").removeClass("error"), // 3. .. which are empty empty = inputs.filter(function() { return $(this).val().replace(/\s*/g, '') == ''; }); // if there are empty fields, then if (empty.length) { // slide down the drawer drawer.slideDown(function() { // colored flash effect drawer.css("backgroundColor", "#FEA7A7"); setTimeout(function() { drawer.css("backgroundColor", "#FEA7A7"); }, 1000); }); // add a CSS class name "error" for empty & required fields empty.addClass("error"); // cancel seeking of the scrollable by returning false return false; // everything is good } else { // hide the drawer drawer.slideUp(); } } // update status bar $("#status li").removeClass("active").eq(i).addClass("active"); }); // if tab is pressed on the next button seek to next page root.find("button.next").keydown(function(e) { if (e.keyCode == 9) { // seeks to next tab by executing our validation routine api.next(); e.preventDefault(); } }); }); </script> </body> </html>
  12. Hi, i have added a section to my website where it loops each record, and it does this pretty well, however i want to add a button that if pressed closes the record, like an ignore button, would this require a database where it stores the record closed so that it never opens it to the user again. Any ideas you have about this i could use. Heres my code for the loop. <?php while($row = mysql_fetch_assoc($sql_cpa)) : ?> <?php extract($row);?> <div class="offers"> <div class="picture"><img src="images/images.jpg" width="125" height="125" /></div><!----end picture----> <div class="offer_content"> <div class="offer_info"> <h6><?php print "$name";?></h6><p><?php print "$description";?></p> <p><?php print "$requirements";?></p> </div><!----end offer_info----> <div class="offer_tools"> <h6><?php print "$penny_value";?></h6> <p>Pennies</p> <h6><a href="<?php print "$url";?>user_id=<?php print "$id";?>&offer_id=<?php print "$offerid";?>">Begin</a></h6> <h6>CLOSE</h6> </div><!----end offer_tools----> </div><!----end offer_content----> <div class="cpa_footer"> <p>Payout: <?php print "$payout";?> || Difficulty: <?php print "$difficulty";?> || <?php print "$free";?></p> </div><!----end cpa_footer----> </div><!----end offers----> <?php endwhile ?> The close button is located in the offer_tools div. Thanks for your help
  13. Hi, i have been learning to build websites for the past year and mainly focus on server side coding, however for my next website i want to concentrate on the client side usability and search engines. I was wondering what the best way is to design a website before adding all the php etc... I usually build the website first in photoshop, slice it then export as web and devices, i then add the php after in dreamweaver. I was wondering if there was a better way to create better functionality and better results to search engines. Also, are most of the big websites built in this way also or are there alternatives. Thanks for your help.
  14. Ok thanks for the help, i am looking at it now, looks more confusing than i thought it would be, but i will give it a shot. Thanks
  15. Hi iam currently writing some code for my website and i have a number of records that i simply want to display in a table format, i have done this in a while loop and it works well, however i only want to display a maximum of 10 records per page as my div needs to be a fixed height and was wondering how i could include a next button that would act as like a page number. The thing is at any given point there could be from 1 record to display to 500, so i need a way of allowing the user to quickly navigate to the other records. How can i do this without using mulitple pages. Hope this makes sense. Heres my code <?php echo"<table width='100%' border='1' align='center'><tr><th>Referal Name</th><th>Amount Received</tr>"; while ($row = mysql_fetch_array($sql_info)) { extract($row); echo "<tr><td align='center'>".$username."</td><td align='center'>".$cumulative_referral."</td></tr>"; } echo "</table>"; ?> Thanks for 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.