Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. Better to look into the empty and isset functions.
  2. You're trying to use variables that haven't been declared. My guess is this line: <? echo $message; ?> Where have you declared $message?
  3. ... What's that error?
  4. Can you post the code exactly as you have it? Including where you define $name..
  5. It's not bad, I agree with the comment above about the hover colour being too virbrant though. Perhaps you could align each link to the 4 different colours above, but a slightly darker/lighter shade for each?
  6. Through the URL: example.com/index.php?param1=value1&param2=value2
  7. I removed the $(document).pngFix() call, and it worked.
  8. The problem's with your PNG transparency fix script.
  9. Way too over-board on the black. Kind of feels like you're trying to accomplish a gamer-style template. The green starts to give you a head ache after a while as it stands out and draws the eye away from everything else. I think a cool blue would work better, with some other blue highlights through the page, and a few other colours/shades in there too. Content wise there's not much there, and to be honest kind of makes me think what's the point in this? Is there really a need for yet another script / tutorial / article directory site? Personally I think the navigation needs a lot of work, though I wouldn't say move the login to the bottom.. I'd ditch the Google search bar (after all people can search your site and a few billion others much easier through their browser) and place a login form in-place. Make the navigation clearer, add hover effects, etc. Add a home link. Add some bread crumbs or something to make things all the more simpler for the user. Not a bad start I guess, needs work though..
  10. Most likely your "FTP app" doesn't support that character set. Is it a known client or your own custom made?
  11. I'd guess this is a CSS issue if it's just IE6 having problems... What's the CSS look like for those divs?
  12. When I click on the parent item, it just does nothing. I said what error do you get? In FF you can find JS errors in the error console (tools > error console). Most of the popular browsers I believe have some form of console for you to check errors.
  13. What error do you get?
  14. Very vague description of the problem, but I think you need to pass the variables through the URL, for example: <td><a href = "member_carts1.php?order_id=<?php echo $row['CART_ID']; ?>&pro_id=<?php echo $row["PRO_ID"]; ?>&pro_name=<?php echo $row["PRO_NAME"]; ?>&pro_price=<?php echo $row["PRO_PRICE"]; ?>">Order</a></td> If this isn't the solution you need to provide more information.
  15. That's because NULL != an empty string. In your database structure you have `column` set up as "NOT NULL", which means it cannot take NULL values. So in essence everything in that column will be NOT NULL.
  16. That would depend entirely upon your table structure.
  17. Your PHP would need to look something like: // run your query while ($row = mysql_fetch_assoc($query)) { echo '<option value="{$row['id']}">{$row['feature_name']}</option>'; } That way the value attribute contains the ID and once the form is submitted that ID will be passed on.
  18. http://www.builderau.com.au/program/javascript/soa/Why-I-Love-ECMAScript-4-Real-Decimals/0,339028434,339289678,00.htm
  19. Thanks for that DavidAM. I actually managed to solve it in a slightly different way using a recursive function: public function get($property) { $tokens = explode('.', $property); $return = $this->properties; foreach ($tokens as $token) { $return = $this->recurseGet($token, $return); if (!$return) { break; } } return $return; } protected function recurseGet($token, $properties) { if (array_key_exists($token, $properties)) { return $properties[$token]; } return false; } Thanks anyway though, much appreciated!
  20. Sorry. I should have mentioned I don't know how many levels the string will go into, should be unlimited.
  21. jQuery is a JavaScript library. If a user has JS disabled, jQuery won't work. Most *decent* websites out there are written to work with JS disabled, in-fact within most professional companies it's a requirement. Agreed die() errors are shocking, but what *decent* websites do you ever see them?
  22. Fair enough you might not, but don't pass on bad advice to other people who believe it's good advice. jQuery is JavaScript?
  23. Over 60,000,000 Firefox users? Check out the download count for the "NoScript" add-on: https://addons.mozilla.org/en-US/firefox/addon/722
  24. Hey everyone! Bit stuck here. Not sure if I'm thinking about this too much or whether it's just insanely hard. Basically I want to return a value from a multidimensional array based off of a string with delimiters. Probably easier to show you than to explain: $str = 'str1.str2.str3'; $array = array( 'str1' => array( 'str2' => array( 'str3' => 'I want to return this...', ), ), ); So using $str I want to traverse through the array to return 'I want to return this...' Any body have any ideas? I'm pretty stumped! Thanks in advance, Adam
  25. Ick! function error($msg) { ?> <html> <head> <script language="JavaScript"> <!-- alert("<?=$msg?>"); history.back(); //--> </script> </head> <body> </body> </html> <? exit; } What if JS is disabled?
×
×
  • 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.