Jump to content

ryan.od

Members
  • Posts

    75
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.redfin.com

Profile Information

  • Gender
    Not Telling

ryan.od's Achievements

Member

Member (2/5)

0

Reputation

  1. I'm trying to position a YouTube video in IE6, but I cannot get it to respond to margins or padding. You can see the issue here: http://www.hiddenexpedition.com/everest-trailer.html (remember, you need to be using IE6) Any thoughts? Thanks. RyanOD
  2. Basically, I am wondering what is the approach to creating a template system that can take an XML feed as an input and parse it into a XHTML file. I have to create >200 web sites each for a different product in a short period of time (I know that sounds nuts, but that's the way it is). Each product has all of its info in a db that can be fed as XML. I'm thinking I would use XSL to create a template that could take the XML feed, dump it into the template, and output a XHTML file. However, I have never done anything like this. Am I on the right track? Any suggestions? Places to go for help on this topic? I have been searching the web and reading like crazy. I just wanted some advice from everyone here. Thanks a bunch. RyanOD
  3. Woah, woah, woah. I don't want to create separate folders for every product (?). I want to rewrite the URL (the one with the parameters) so it LOOKS like folders, but I want to do it without access to the .htaccess file. Anyone else have any thoughts? RyanOD
  4. I am developing a site that is hosted on Yahoo! In order to set up my include path, I am doing the following. . . ini_set('url_rewriter.tags',''); ini_set('session.use_trans_sid',false); session_start(); $path = ""; set_include_path(get_include_path() . PATH_SEPARATOR . $path); HOWEVER, it has just come to my attention that Yahoo! will NOT provide anyone with the path to the root folder??? Can anyone help me with this? Is there a way I can get this info or set up my include paths? Thanks, RyanOD
  5. Yes, yes, I completely agree. FOR ANYONE READING THIS. . .AVOID YAHOO! WEB HOSTING AT ALL COSTS!! Being denied access to the .htaccess file is a real problem. Unfortunately, I was not with this company when they chose this host. Grrrrrrr. . . Is there really any problem with using. . . http://www.whatever.com/products.php?manu=sony&model=ca-1118-wht . . .rather than. . . http://www.whatever.com/products/sony/ca-1118-wht Should I even worry about it? If I had access to the .htaccess file, no problem! But, I don't want to kill myself for an incremental gain. RyanOD
  6. I want to display search engine friendly URLs, but I don't have access to a .htaccess file (Yahoo!, what the heck?!?!?). Is there another way? If so, can anyone point me in the right direction? Thanks, RyanOD
  7. Right. Oops. I guess I left off a couple $. Thanks for calling my attention to it.
  8. I'm attempting to use OOP for the first time in PHP and cannot get the following code to do anything. Any help would be greatly appreciated: <?php class Menu { public $text; public $url; } $menu_footer_array = array(); $menu_main1 = new Menu(); $menu_main1 -> text = "Products"; $menu_main1 -> url = "products.html"; $menu_footer_array[0] = $menu_main1; $menu_main2 = new Menu(); $menu_main2 -> text = "Services"; $menu_main2 -> url = "services.html"; $menu_footer_array[1] = $menu_main2; $menu_main3 = new Menu(); $menu_main3 -> text = "Contact"; $menu_main3 -> url = "contact.html"; $menu_footer_array[2] = $menu_main3; ?> Really, I'm going to be pulling the text and url info from a db, but until this straightforward attempt works, I'm stuck. I try to output this as follows: <?php include("../oop/menu.php"); ?> <div id="footer"> <ul> <?php for(i=0; i<menu_footer_array.count(); i++){ echo('<li><a href="' . menu_footer_array[i] -> url . '">'> . menu_footer_array[i] -> text . '</a></li>'); echo('<li> | </li>'); } ?> <li>© 2007 <span class="red">Made</span> Products Inc. All Rights Reserved</li> </ul> </div>
  9. Yes, but the problem with that is I want the bottom of the header and the bottom of the image to align because I have a border-bottom on the header that extends across the page. Since the header and the image have different heights, the bottom border will run across the page and through the image. Once I have the two pieces side by side (header on the left, image on the right), how can I insure they have bottom alignment? I have tried vertical-align, but that doesn't work. Thanks for the input. RyanOD
  10. I'm trying to figure out how to set up the following: Product Title Image ------------------------------------------------------------- I'm trying to float the image to the right, but I cannot get both to sit on the underline (which is applied to the h# on the left). How do you use CSS to set up this situation?? I cannot use a left margin on the image because there are a bunch of products and each has a title that has a unique length. Thanks, RyanOD
  11. I have a database with the following two tables: 1. job 2. company Each job entry has its own info as well as a job_comp_id column that corresponds to a a comp_id column in the company db table. This works fine. No problems separating info and getting that info into the db. The most simple way I can explain my issue is as follows: Within a while loop that is working its way through my first $row array (generated from $result = mysql_query($sql)), how can I query a different table? Kind of like 'embedded queries'. I totally understand why I separated the companies from the jobs. However, now it is a pain in the butt trying to work with both tables in one page.
  12. This is what I have currently: <input type="file" name="image_w" size="50" /> <input type="radio" name="featured" value="w" /> <?php if(empty($_FILES['image_w']['name'])){ if($_POST['featured'] == 'w'){ $errors[7] = 1; } } ?> However, the second 'if' statement does not work. . .thoughts??
  13. I appreciate your insight and it is most definitely valid. . .however, I'm not doing a very good job explaining the situation. Rather than bounce stuff back and forth, can you look at the code on the first post and tell me whether or not the way to check a group of radio buttons to see which one is selected is to check if($_POST['radio_name'] == 'radio_value')? I think that is the real question here. Thanks again for the comments you have left. And sorry for the complexity of this simple question! RyanOD
  14. Ok, so there is a form where the admin can submit images and select one of the images to be a 'featured' image. The images are chosen with image text boxes (you know, with the Browse button next to them) while the 'featured' image is chosen with a radio button. As a result of my design choices (bad, I know, but no time to fix properly), an admin could choose to feature an image that he/she did not upload as all choices (white, red, black, green, etc. . .these images are shirts) are available in the radio button group. To sum up, the issue is this: an admin could upload the red, green, and orange versions of a shirt, but accidentally choose to feature the white shirt. . .this is the problem I am trying to catch.
  15. I want to check a file upload against a radio button selection (i.e. if the site owner doesn't upload product x, they cannot feature product x). I tried this, but it won't work. Any help would be appreciated: else if(empty($_FILES['image_w']['name'])){ if($_POST['featured'] == 'w'){ $errors[7] = 1; } } The $_FILES['image_w'] field MUST be filled in if you want to select the radio button with name='w'. This, however, doesn't work. Why not? RyanOD
×
×
  • 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.