Jump to content

sahel

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sahel's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well, i did actually get time to write it.. but it was way more that what you sent.. $startmonth = 12; $startyear = 2007; $endmonth = 11; $endyear = 2010; $completedyear = 0; for ($i = $startyear ; $i <= $endyear; $i++){ if($i < $endyear){$tendmonth=12;} else {$tendmonth=$endmonth;} if($completedyear == 1) {$tstartmonth=1;} else {$tstartmonth=$startmonth;} for ($x = $tstartmonth; $x <= $tendmonth; $x++){ echo $i."-".$x."<br/>"; $completedyear = 1; } } I guess you have much better php skills than i have
  2. Hi, If someone could plz code this small php code for me. I have 4 variables to represent a startdate and enddate based on month and year. php Code: $startmonth = 3; $startyear = 2007; $endmonth = 5; $endyear = 2008; I want to loop through all months from 3-2007 to 5-2008 and do some processing for each month. Can anyone help me? Just make me the loop and ill code the process inside the loop myself. Thanks in advance.
  3. Well i found out. wast that hard after all. used order by priority DESC, RAND()
  4. Here is what i have come up with.. just a thought, need your professional advice. I can add a priority column and specify the % of priority. Table data would be like: id--value--priority 1--a--0 2--b--0 3--c--25 4--d--25 5--e--100 6--f--100 7--g--100 ..and doing a select ordered by priority would give me.. id--value--priority 5--e--100 6--f--100 7--g--100 3--c--25 4--d--25 1--a--0 2--b--0 ... correct? i hope so. There is only one thing that i want added.. i want them randomized within the priority. so that the three 100% records come up randomized, the 2 25% ones randomize and the 0% randomize too.. How can that be done?
  5. I have a set of records that i select randomly...i now have a situation where i have to prioritize some records. I want to make the selection to be able to prioritize the record order, i want high priority records to be shown on top based on a 0-100 (percent) priority. How can this be done?? Let me know if you have any questions. Talker.
  6. Do you think i could work with iframe?
  7. Hi, Does anyone think it would be possible to include a PHP site on another website? The PHP site is a members area (not theme/template) that i have to show on various websites that have their own themes. I have an idea, but want advise from you pro's if its possible. My idea is of the php site being in a iframe. and then putting that iframe on all the websites where i want to show the members area. Any advise would be highly appreciated.
  8. Yes thats right. But together with that, i want the result pages (pages that comes after logging in) to be shown on the reseller website as well. I don't want the login form on the reseller site to lead the user to the service site. I want to keep the service site invisible.
  9. Hi, I have a scenario where i have to code for a reseller system. I need some expert advice from you pro's. I hope you can help. Let me put it straight under headings... SERVICE SITE. There is supposed to be one independent site which fetches stats/data from a mysqlDB and displays the results. I would assume approximately 5 to 8 pages in total with differently styled reports. The code will have a user/pass to login and view stats for each order. This site is currently working as a retail service and is providing user/login access via php code. RESELLER SITE. I want resellers who sell the service for the above site, to be able to show the same user/pass login form on their websitesite and then fetch the results from the service site. This is actually to make the service anonymous. The results can be shown anywhere they prefer under their website using some code that would display the pages served by the original service site. I hope i made it clear, if you don't understand, please please please ask. What i want to know is if this is possible in php. I am unsure and came to phpfreaks for some advice. Kind Regards Sahel.
  10. Brilliant.. that makes sence now.. Thanks gijew Sahel
  11. Hi, Im very very new to php, im not sure if this is the right forum to post a question like this. can someone tell me what this line of code says? if((isset($_POST['action']) && $_POST['action']=='edit') || ($updateloc == true && $_POST['action']=='update')) Thanks Sahel
×
×
  • 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.