Jump to content

ToonMariner

Members
  • Posts

    3,342
  • Joined

  • Last visited

Everything posted by ToonMariner

  1. only in css 3 the dirty solution would be to nest the table in another table of 4 cells and use the right and bottom cells to put your image in... Not the kind of thing I'd personally do but hey - I am allowed 1 fall of the standards path every now and then...
  2. if you positioned it - if it were a child of the opaque div then it would inherit the opacity...
  3. Sorry Barand - I was doing my 'read just some of the topic' trick. Ergo I decided that the OP was asking about string generation.... Wasn't dissin your kung foo dude...
  4. pointless project..... the user visiting your site is voluntary adn you would essentially have to parse every file they requested and alter it so that any links went directly back to your site where you would need to be able to recognize what the original link was and grab that file, parse it once more and so and so forth.... you would be better off writing a stand-alone app that the user installed on their machine that would monitor the ports and report data back to you... I would NOT use it though...
  5. this looks like your server setup. some servers will have a separate folder for ssl and henc eyou would need you site to 'split' so that the protected pages were in that directory. However, you should investigate the differences in php settings on the server and the development machine - the secure socket layer should not have any bearing on the performance of the php engine... The fact you are still using $HTTP_GET_VARS (and expecting arrays to work as vars in a double quoted string across platforms) is a little disturbing...
  6. Personally I would simply remove the last comma after the whole string was created - that way you are not evaluating a conditional in each loop - should be a bit faster...
  7. you cannot avoid the whole div being made opaque as that is what css will do; if you set the div to 50% opacity its contents will have 50% - I have yet to find a css solution. you should use a partially transparent png24 and either use the alpha image loader or (and my preference) iepngfix to get ie6 to playball (suggest you use some conditional comments to include an ie6 only style sheet).
  8. don't evaluate count on each loop!!! $stopat = count($abc); for ($i=0;$i<$stopat && !$ftf;$i++) {
  9. just tlet the second paragraph start where it is supposed to. If not you will be left with an unsightly gap..
  10. be aware that if you style a button safari will still put it's own glass button there...
  11. this is a php question.... you will need to check if the checkbox has been selected and if so update your database... <?php if (isset($_POST['paid'])) { $qry = "UPDATE `yourtable` SET `yourfield` = 'y' WHERE `unique_id` = " . $uniqueid; $qry = mysql_query($qry); } ?>
  12. there are so many ways of achieving this - the best one would be to use something like... <?php $str = array('HZ332','P123','R421'); $matches = array_intersect($yourarray, $str); print_r($matches); ?>[/url]
  13. $select = rand(0, count($arr) - 1); echo $arr[$select];
  14. array_keys() is a php function - it returns the keys of an array whose element value is that which you are searching for.. the only 'looping' you will have to do is each value you are looking for...
  15. I doubt you will notice any decrease in speed if you use text indices in your arrays (it will help you no end though!)
  16. if you are using gender as an identifier for a table then you have made you database structure to obscure to be useful... something liek gender shuld be a field in a table so you can filter out resutls based on that criteria... obviously I don't know what your tables look like BUT that is the impression I get.. the alternative is to use the setting in teh query... $qry = "INSERT INTO `" . $gender . " .....";
  17. why don't you use array_keys instead? it will be much faster...
  18. IE doesn't support brummie!!!! see what you mean though. I think this has to do with the support for multiple classes in IE. Do what you can to negate the need for the space in the ' over' in teh javascript. It could just be that you remove the space but you will prob have to alter the css too...
  19. It looks like you are returning the resource id... use the id and fetch_array_assoc or similar to get the actual results
  20. this could be more that you don't have the character support on your machine...
  21. div { position: absolute; top: 100px; bootom: 100px; } Body should have position relative but as your other divs are already placed it looks like you have that in place.
  22. Without bench marking it... regular expression is not as efficienct as the method kratsg suggested for the simple fact it has to run the regex engine on a string. If you KNOW the firts value of the 'string' is the piece of data you need then its much more efficient to isolate that piece of data without the use of a regular expression.
  23. give it margin: 100px 0; (or margin: 100px auto; - which ever fits the bill).
  24. oh my bad didn't notice it... bgcolor is NOT a valid css attribute... tr#des td { FONT-WEIGHT: bold; FONT-SIZE: 16pt; COLOR: Orange; FONT-FAMILY: "Monotype Corsiva"; background= #ffffcc; } you could even use the short cut hex code #ffc; you don't need quotes arount css values UNLESS its a fint name with a space in it.
  25. try... tr#des td { FONT-WEIGHT: bold; FONT-SIZE: 16pt; COLOR: Orange; FONT-FAMILY: 'Monotype Corsiva'; bgcolor="#ffffcc"; }
×
×
  • 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.