Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. I don't get it - you think the training is "bullocks" but you don't want the junior dev to take the test unprepared...soo....your options are...?
  2. You need to: A. Describe your desired outcome. B. Describe the existing outcome. C. Use code tags (the <> button) D. Include only relevant code.
  3. You wouldn't, you would use a Dom Parser. I like SimpleDOM
  4. Your code has syntax errors which are obvious. "Not working" is not a useful diagnosis.
  5. <script type="text/javascript"> now = new Date(); hour = now.getHours(); minutes = now.getMinutes(); if ((hour >= 10 && minutes >= 30) || (hour < 5)) { document.write('<div id="\maintenance\">content here.</div>'); } </script> Not tested.
  6. Or just add the existing getMinutes function...
  7. For one thing, you should use && not "and". Your code is very hard to read the way you have it, plus it's invalid HTML. Let's clean it up. You kind of have your use of quotes backwards too. In PHP "" is a interpolated string, and '' is not. Use '' when you don't have variables inside the string. <?php $value = $row_list['parentID']; $text = $row_list['parentOneFirstName'] . ' ' . $row_list['parentOneLastName']; if(!empty($row_list['parentTwoFirstName'])){ // If the first name is empty, would the last name ever have a value? If so, add your && in here. $text .= ' & '.$row_list['parentTwoFirstName'] . ' ' . $row_list['parentTwoLastName']; } echo '<option value="' . $value . '">' . $text . '</option>'; You could make it even easier and cleaner by putting the parents names into an array when you get the info from the database, and using implode. It would look something like this. <?php $value = $row_list['parentID']; $text = implode(' & ', $row_list['parents_names']); echo '<option value="' . $value . '">' . $text . '</option>';
  8. I agree, but the OP didn't make any effort to use anything we said so far, so...
  9. Did you even read the replies? My post explains how to do this.
  10. Once again - how should we know? Is there a reason you are being so secretive?
  11. Probably because 'item_name' is a string and is not at all like 'neck'
  12. I see necklace.... What is the problem?
  13. Yes, you are foreach($arr AS $key => $val)
  14. You know, if you made an effort to use proper English rather than chatspeak and slamming your hand against the keys, you wouldn't need to apologize for poor English. Use the <> button.
  15. Format the date in the select part. Instead of select *, specify the fields and you can format it there.
  16. What? Are you saying you have multiple inputs? Make their names an array and you can then access the array in PHP <input type="text" name="fields[]"> And then $_POST['fields'] will have a useful array.
  17. I don't really learn by reading books so I can't. However there is a thread somewhere here with a list of good ones. The PHP manual is very useful. Follow their examples, read the comments, read the manual pages about all the basics. It would look less messy if you don't start/stop PHP all the time.
  18. What did mine have that yours doesn't?
  19. We can't do much without seeing your HTML and directory structure.
  20. We don't do it for you here. I gave you the information you need. Make an effort.
  21. <a href="linktopage.html#otheranchor">Link</a>
  22. I misread your post. The style tags do have to be within the HTML tags.
×
×
  • 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.