Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. I always liked Natural Docs but I seem to be the only one who uses it
  2. For the checkbox name, you'll want to have an array. <input type="checkbox" name="delete_these[]" value="your id goes here" /> Then you can do $ids = implode(', ', $_GET['delete_these']); $sql = "DELETE FROM table WHERE id IN($ids)";
  3. I assumed you called your array $row. The key of your existing array will be versesID. $Event_id = $Verse_info['VersesID'];
  4. In the select statement you'll use Verses.ID but in the array returned it will just be ID. The problem is that you have two three columns named ID. Select each using an AS to rename them so they are different. $get_Event_sql = "SELECT Verses.ID AS versesID, Verses.Verse, Verses.Sub_Type, Verses.Event, Events.ID AS eventsID, Events.Event_Type, Event_Sub.ID AS event_subID, Event_Sub.Event_Sub_Type FROM Verses LEFT JOIN Events ON Verses.Event = Events.ID LEFT JOIN Event_Sub ON Verses.Sub_Type = Event_Sub.ID WHERE Verses.Event = '".$_POST["Event_Type"]."' ORDER BY Verses.ID ASC"; Then it will be $row['versesID'] for the verses table ID.
  5. If the text is on the right side of the image, you'll add the padding to the right side of the image, not the left.
  6. What do you mean? Try adding more padding to the image if you want the text over more.
  7. You're welcome. If you want the next one to be on a new line, you'll probably want to have <br style="clear: both" /> at the very end, or if you don't have enough text it could keep floating.
  8. before you extract them into an array, check if there are " in the string.
  9. You didn't need to attach all of that. It looks like it's happening in the function upload_file_cms which is not defined in the attached file.
  10. Turn off the header and go to the page in the browser to check for error messages.
  11. I think the image would have to come before the text for that float to work. Put the image as the first thing that is printed.
  12. Not tested. <style> .floating{ float: left; width: 200px; } </style> <?php $num_per = 12; $count = 0; echo '<div class="floating">'; $sql = "SELECT name,id FROM table_name ORDER BY name ASC"; $res =mysql_query($sql) or die (mysql_error()); while ($row = mysql_fetch_array($res)){ $count++; if($count%$num_per==0){ echo '</div><div class="floating">'; } echo '<p>'.$row['name'].'</p>'; } echo '</div>'; ?>
  13. Echo the query. You probably don't have a value in $subject_id. BEAT YA AGAIN!!!! :-P
  14. Rather than escaping a string which should be an integer value, just cast it as an int.
  15. That's useful, how would you insert multiple items?
  16. Rather than str_replace you could use float_val(). or just store the number as a number, and only display it with number_format, saving the original value in the original variable.
  17. It's still ajax. The page user 1 is on is checking to see if there are any updates. It doesn't happen only when user 2 posts something, it happens every X interval, and checks for anything new that user 1 can see.
  18. I'm well aware of how to get the dates I wish, either by month or by day. What my concern is, is determining if making 31 (or even 93) queries to build the calendar is really the best method. No, it's not, that's why we said to do ONE.
  19. You need to post functions.php line 8. Most likely you wrote mysql_error and forgot the ().
  20. you also are missing a paren on a line. flock($SurveyFile, LOCK_UN; Go through every line and make sure it matches up. If you pick a color for () and {} and ; in your editor it might help. In the future, look near the lines in the error for stuff like this. These are little things.
  21. I'm not even going to read all that. If you have a timestamp, you can get all the entries between one timestamp and another. Same for if you have month and year.
×
×
  • 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.