Jump to content

jdubwelch

Members
  • Posts

    85
  • Joined

  • Last visited

    Never

Everything posted by jdubwelch

  1. i have a folder with 5 folders (engagement, explore, motion, motionless, and seniors). I'm going to use the $folders array to create links for the navigational part, but i don't want them to be ordered alphabetically. I was thinking, if i could sort them by the time they were created or modified I could control it that way. I've search the net and haven't found anything. How would I sort $folders array by the date the folders were created? [code]if ($handle = opendir('./files/')) {     while (false !== ($file = readdir($handle))) {         if ($file != "." && $file != "..") {             $folders[] = $file;         }     }     closedir($handle); } sort($folders); print_r($folders);[/code] will output this: [code]Array ( [0] => engagement [1] => explore [2] => motion [3] => motionless [4] => seniors )[/code]
  2. do you have an example i could take a look at?
  3. [img src=\"http://www.jwelchdesign.com/images/ao.jpg\" border=\"0\" alt=\"IPB Image\" /] This is a website i'm coding for a designer. I'm using css to style it. He designed it in Photoshop, I exported it as css and formatted his text with css the way it looked in Photoshop. Anyways, is there a way that the green bar accross the bottom can be moved down further if there is more text on the page? here's a link to my css [a href=\"http://www.jwelchdesign.com/ao/2006jpg/styles/layout.css\" target=\"_blank\"]http://www.jwelchdesign.com/ao/2006jpg/styles/layout.css[/a] i'm using absolute positioning, would relative work?
  4. thanks... it worked! Can you comment on the javascript part. Just to see what everything is doing.
  5. I'm not too familiar with java, i know what it can do but I'm not that good with it, I'm more into php. Anyways, I have 2 radio buttons: 1) Ship to address listed above <selected> 2) Ship to this address How would I make it so when a person changes to "ship to this address", the fields to enter a new address will show up? a demo of what the two radio buttons, and form below to show up are at: [a href=\"http://www.jwelchdesign.com/ao/book/onchange.php\" target=\"_blank\"]http://www.jwelchdesign.com/ao/book/onchange.php[/a] the code for the form: [code]<form> <input name="dvd_ship" type="radio" id="dvd_ship" value="same" checked>Ship to address listed above<br> <input name="dvd_ship" type="radio" id="dvd_ship" value="new">Ship to this address: <br> <br> ADDRESS:<br> <input name="dvd_shipping_address" type="text" id="dvd_shipping_address" size="25"> <br> <br> City<input name="dvd_shipping_city" type="text" id="dvd_shipping_city" size="15"> <select name="dvd_shipping_state" class="mainText" id="dvd_shipping_state">     <option value="State">St </option>     <option value="Oregon">OR </option>     <option value="Washington">WA </option>     <option value="California">CA </option>     <option value="Idaho">ID</option>     <option value="Colorado">CO</option>     <option value="Nevada">NV</option> </select> ZIP<input name="dvd_shipping_zip" type="text" id="dvd_shipping_zip" size="8"> </form>[/code]
  6. i need to take all the information from this form and put it into a database. [a href=\"http://www.jwelchdesign.com/book.html\" target=\"_blank\"]http://www.jwelchdesign.com/book.html[/a] As you will see there is a lot of information. I broke it down the best that i could but i'm not sure if it's the best most efficient. this is my first real try at designing a database so any hints/tips/ideas anything would help. this is what i have for my database design so far: [a href=\"http://www.jwelchdesign.com/db_design.html\" target=\"_blank\"]http://www.jwelchdesign.com/db_design.html[/a]
  7. I have 16 input boxes where users need to rank items 1 through 16. I need to make some sort of validation system so they can't enter in the same number twice. How would i got through and check to see if there's no doubles of numbers besides doing a bunch of coding for. For example, say the input boxes are A, B, ..., O, P. I don't want to be like: [code] if ( A == B || A== C || A== D ... || A== O ) { // not valid; } else { //is valid; } [/code] if i did it that way, that would be a heck of a lot of coding and quite a headache. I was thinking possibly putting each value into an array and then checking A through the rest of the array, but not really sure how code that or what it'd look like. any suggestions?
  8. I'm making a March Madness (the NCAA Basketball Tournatment of 64 teams) website. Each user will fill in their own bracket of who they think will win and submit their picks. Is it possible to then take their picks that they've submitted and overlay them onto the bracket (a .jpg of a bracket image) and making it a pdf? If so, how would I do that?
  9. well i'm making a thing for the march madness basketball tournament coming up. i don't know what teams are going to be in the bracket yet, but I want to start making it. I was thinking if I just read the teams in from a text file, then it doesn't matter that there are no teams set in the bracket yet, because all i have to do is change 1 file. does that make sense? Is there a better way to do that? it's a 63 game tournament, with 64 teams participating in it. Right now I'm just trying to do a "mini" version to get it working... then I'll expand it. And if it's just reading from a text file, it'll be easy to expand. Or at least i think it does.
  10. I have a text file: [code]team [tab] rank[enter][/code] There are 8 teams in the text file. What I'm trying to do is loop through each team and assign each team in the list to a value so I can put it into my code later on in the script. Here's my code for getting the stuff out of the text file: [code]$filename = '../../https/hoopFix06/oakland.txt'; $fp = fopen ($filename, "r") or die ("error"); $data = fread ($fp, filesize($filename)); fclose ($fp); $line = explode ("\n", $data); $i = count ($line);      for ($n=0; $n<$i-1; $n++) {     $teamData = explode ("\t", $line[$n]);     $teamName = $teamData[0];     $teamRank = $teamData[1]; }[/code] i want the first team to be labeled $a11a, the second team $a11b, the third team $a12a, the fourth team $a12b, etc. I don't know how to get those into the loop though.
×
×
  • 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.