Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Oh my god dude. You select CID from the database. You are using the selected fields to display the image. Are you REALLY confused about how to echo the id when you know how to echo the image filename????
  2. Don't bump your posts. You haven't provided any PHP code. If you want this done, make an attempt, or post in freelance.
  3. First off, You need to be specific about what you want. Every time you ask we've given the code then you come back and say you want something different. the code I wrote for you does EXACTLY what you asked for. Ask for EXACTLY what you need, provide the code you have, and we can help. Otherwise, this is a waste of everyone's time and it's pissing me off.
  4. $test_ar = array('a','b','c','d','e'); $output = array(); foreach($test_ar AS $k=>$v){ $output[] = $k.$v; } echo implode(" - ", $output);
  5. Echo the $i before the foreach...
  6. Does the DispatchReports folder exist already?
  7. The \ is trying to escape the $ You want the other slash, regardless. See all your other slashes go that way??
  8. You probably want / Regardless we need to see your code.
  9. // test value for $c_id $c_id = 12; Did you just ADD that now? Your links should all be linking to # 12. FYI: You should add quotes around your links' HREF attribute.
  10. I believe you'd have to make them LEFT joins, then use an IF in your selected columns list to get the right info.
  11. Jessica

    Question

    You should not be creating a new table every day. What are you trying to do?
  12. Try clicking the spoiler button. It's all there.
  13. Jessica

    Question

    No. Bad. Bad dog.
  14. Jessica

    Question

    If you're going to have a bunch of tables for a bunch of dates, that is a bad idea.
  15. Jessica

    Question

    Do you need to create the new table right then, or does it already exist? You could use INSERT INTO tlb [your join here] http://dev.mysql.com/doc/refman/5.5/en/insert-select.html
  16. Christian's code does work with commas, he has one "reluctance,"
  17. <?php $uri = $_SERVER['REQUEST_URI']; $img_folder = '/img/banner'; $directory = $_SERVER['DOCUMENT_ROOT'].$img_folder. $uri . '/'; $images = glob($directory . "*.jpg"); foreach($images as $image) { $img_path = str_replace($img_folder, '', $image); echo '<img class="slide" src="' . $img_path. '" alt="">'; } ?> Try that?
  18. If you were to post your code we could help you.
  19. Probably.
  20. The word "We" has only one e. We still can't read your post. Can YOU read it? There is a preview button. You'll probably need a DOM parser.
  21. You should not open and close the connection every time.
  22. Try again in the plain text editor. (The toggle switch in the top left.)
  23. SELECT IF( (DATEDIFF(logoffDateTime, CURDATE()) > 60), 1, 0 ) AS columnalias, membertracking.* -- You should list specific fields, not * FROM membertracking ORDER BY name ASC Not tested. Run that query and do a print_r on the resulting row. (I may have the 1 and 0 backward, not sure exactly what you're going for.)
×
×
  • 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.