Jump to content

soak

Members
  • Posts

    219
  • Joined

  • Last visited

    Never

Everything posted by soak

  1. If you don't need particularly fine grained permissions then Joomla will probably suit your needs quite well. To be honest from that spec they probably all will.
  2. Which one fits your needs the most? It's a very difficult question to answer, especially so when you provide no information on what you want to use it for. What are your requirements?
  3. Would it be possible to use the $_SESSION var or would it not be guaranteed to be set by the time the iframe was called??
  4. You're calling findcity.php but you indicate your file is called findCity.php. If you're on Windows this will be fine but not on nix. There's nothing obvious wrong with your javascript. What happens if you view findcity.php?id=1 in your browser?
  5. You really ought to validate here. If you implement that you're effectively giving an attacker full access to your server. if (isset($_GET['page']) && preg_match('!^story[0-9]+\.html$!', $_GET['page'])) { include($_GET['page']); } else { echo "select a story"; }
  6. SELECT CASE `field` WHEN '' THEN 'Value' ELSE IFNULL( `field` , 'Value' ) END FROM `table`
  7. You talking about cookies or a file on their c: drive?
  8. Can't you just echo: <?php echo 'round(((($_GET[\'h\'] / 25.4) * ($_GET[\'w\'] * .01) * 2) + $_GET[\'d\']), 2) = '.$thc;
  9. Beat me to it nankoweap Ahhh, apologies, don't know how I missed those. You could use a case.
  10. exactly as typed: SELECT masterdataid, IFNULL(resultsnotations.prospectrating, 'Not Rated') AS prospectratingch, IFNULL(resultsnotations.lastactivity, 'Loaded') AS lastactivity FROM resultsnotations WHERE masterdataid = '339' and (prospectrating is null OR prospectrating = '') ORDER BY resultsnotations.lastactivity DESC
  11. and (prospectrating is null OR prospectrating = '') That what you mean?
  12. You can order by more than one thing at once. Order by sticky first and date second.
  13. Select all of your fields in one go and loop through them. See mysql_fetch_assoc
  14. Not with that query you can't. You need a flag in the topics table to indicate if it is a rule or not (TINYINT will do, 1 or 0, suggest you call it topic_type or similar and you leave room for expanding it later to add stickies etc) . Then just ORDER BY topic_type, tm.last_msg_date DESC Not sure offhand if you need ASC or DESC on the topic_type. If you store last_post_id in the topics table it would be better to order by that than the last_msg_date (assuming you move any relevant indexes).
  15. <?php $fieldValue = mysql_result(mysql_db_query($db_name, "SELECT p1G6 FROM Students WHERE teacherid='$data[login]' AND ID=0 "),0); ?> <input value="<?= $fieldValue ?>" name="p1G6" id="p1G6" type="text" onblur="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('p1G6')" onkeyup="testform(this)" maxlength="1" tabindex="4" style=' width:100%; <?php if ( $fieldValue < 3 ) { echo "border: 1px red solid;"; }; ?> ' class='ee142'>
  16. try: $thumbnail = mysql_real_escape_string("http://www.sportquadchat.com/images/avatars/" . $thumbnail);
  17. I don't think you need to unless you're populating it in javascript. Can you show us a bit more code please?
  18. What does your SQL look like to select the rules and the normal data?
  19. Can you even do that with a doctype declaration? a) yes b) If you're confident they'll be EXACTLY that then str_replace else preg_replace
  20. All looks reasonable. What does a var_dump of $arr look like before you foreach it in create_checkbox_query. Also, what does the query ($q) look like?
×
×
  • 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.