Jump to content

kyleldi

Members
  • Posts

    148
  • Joined

  • Last visited

    Never

About kyleldi

  • Birthday 08/25/1984

Contact Methods

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

Profile Information

  • Gender
    Male
  • Location
    United States

kyleldi's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Thank you for the valuable information! I put together the code (below), but it seems as though the alternating does not take place. Instead it just outputs each TR class at <tr class="staff_e"> <?php do { ?> <?php $alt = 0; ?> <tr class="<?php echo ($alt) ? 'staff_o' : 'staff_e'; ?>"> <td><?php echo ucwords($row_rs_staff['name']); ?></td> <td><?php echo $row_rs_staff['dept']; ?></td> <td><?php echo $row_rs_staff['ext']; ?></td> </tr> <?php $alt = ($alt) ? 0 : 1; ?> <?php } while ($row_rs_staff = mysql_fetch_assoc($rs_staff)); ?>
  2. I'm creating a staff directory that I'd like to use alternating background colors (odd/even) to make it easier to read. All of the information is stored in sql, which I can pull to the page with a repeat function, but I'm not sure how to get the zebra effect to alternate with the output. Is there any easy way to do this? I'm using CSS to change the background of the table itself. <table width="100%" border="0" cellpadding="1" cellspacing="0" class="staff_b"> <tr> <td width="35%"><div class="staff_h">Name</div></td> <td width="35%"><div class="staff_h">Department</div></td> <td width="30%"><div class="staff_h">Extension</div></td> </tr> <tr class="staff_e"> <td>1</td> <td>2</td> <td>3</td> </tr> <tr class="staff_o"> <td>4</td> <td>5</td> <td>6</td> </tr> </table>
  3. That's very useful information to me... Thank you very much!
  4. This would work if the id wasn't 1? that variable could be anywhere from 6-12 digits alpha-numerically.
  5. Ok, that works, is there a way I can insert a varable? the page with this script is a form that posts to a db, and when it posts it resubmits the URL which is now order.php?code=1234 or some number. I added order.php but it's not the same. Is there a way to submit a wildcard?
  6. Using Cag's script: <?php if($_SERVER['HTTP_REFERER'] != "http://www.google.com") { header("Location: http://www.yahoo.com"); exit(); } ?> <!-- all the HTML in the world can go here --> How would I add a second URL that's allowed as a referrer? I tried the array option posted here but I couldn't make it work, and after reading on php array, I don't see how i'm going to get it to work.
  7. The problem I need it to redirect if it's not coming from a specific url, otherwise if it is, I want it to echo. and the header has to be sent before anything else on the page if it's going to redirect, so it's where my problem lies.
  8. I'd like to make an IF statement making a page redirect if it's not being accessed via a certain page. Essentially something like this: IF $referer does not equal mypage.php redirect to retry.php else PHP Form The problem is, I don't want to send the header too early or it won't work, so I'm having a hard time writing the script. Does anyone have any direction? Thank you!
  9. I'd like to limit the session length on one specific page on this site i'm working with. I've done the following code, but it doesn't matter if I set it to 5 or 1500, the page will not time-out on refresh. Any ideas how I can make this work? I'd like the session to only last like two minutes, so if the person calls the same page up again it will tell them to go back to the main page and start over. <?php ini_set('session.gc_maxlifetime', 5); session_start(); ?>
  10. I've got a form that asks someone to enter a code before continuing to the next page. This information is posted by the form using $_POST. On the next page, I'd like a hidden field with that code in it, so I can post it to a different database and work with it there. Is there a way to obtain what was posted w/o passing it through the URL? The Session is open on both pages, so I'd be left to believe it's available, I just don't understand how to call for it w/o using a URL variable.
  11. I've got a script to allow me to echo the URL of the current page on the page itself, but it won't seem to work with dynamic urls (such as services.php?service=name). I'm not completely sure what I need to change. Any ideas? Thanks! <?php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } ?>
  12. Not yet... It seems as though DW implements a javascript that over-rides the wmode setting.
  13. changing wmode to opaque gives me similar results... i'm not sure that wmode is going to do anything...?
  14. Even a Pure CSS drop down does the same thing.. Any ideas?
  15. http://laser-dynamics.com/new-index.php I've tried it on > 4 browsers.. same problems
×
×
  • 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.