Jump to content

dabaR

Members
  • Posts

    189
  • Joined

  • Last visited

Everything posted by dabaR

  1. OK, I have no more ideas. You can perhaps try reposting your question.
  2. Looks like what you want is: while ($row = mysqli_fetch_array($result) { for ($i=0; $i = $row['qty']; $i++) { //row } }
  3. Well you did originally say you want to see only exception when there is exception. Are you saying this gives back exception when there really isn't an exception in the DB?
  4. Hmmm... You might want to try: ...AND type = (SELECT CASE WHEN EXISTS(SELECT * FROM jos_hm_tariff WHERE date_to >= '2010-08-31' AND date_from <= '2010-09-03' AND room_type_id = '2' AND type = 'exception') THEN 'exception' ELSE 'default' END)...
  5. What's the code you ran last, and what was the error?
  6. Cool. You definitely need to drop the header(...) line. This is the structure you need in the file: <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="5cm" height="4cm" version="1.1" xmlns="http://www.w3.org/2000/svg"> <desc>Four separate rectangles </desc> <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/> <rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/> <rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/> <rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/> <!-- Show outline of canvas using 'rect' element --> <rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm" fill="none" stroke="blue" stroke-width=".02cm" /> </svg> See more here: http://www.w3.org/TR/SVG11/struct.html
  7. Oh, I missed that, why are you output buffering, and storing in a variable at the same time. Try removing the ob_start(), and instead of ob_get_clean($output) just have $output
  8. So when you echo $contents, you see the right contents? Did you try opening the SVG file with gedit/notepad/$plain_text_editor?
  9. Well, the things that jump out at me are... <? $output = "header(\"Content-type: image/svg+xml\")"; $output .= "<?xml version=\"1.0\" standalone=\"no\"?>"; $output .= "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"; ?> Try just echoing out $content instead of writing to file. You might be able to find out something that way.
  10. Man, I was crazy off point there :-) TTYL!
  11. I thought so, but I don't see the require_login() function in that class at all. What's up with that?
  12. Make sure you have !in_array(), and remove the break from there, I missed that.
  13. What if you split it into several checks?
  14. This is what you need: <?php $result = mysql_query("SELECT * FROM Groups ORDER BY GroupName"); while($row = mysql_fetch_array($result)){ If (!in_array($value, $GroupArray)){ echo "<tr><td>".$row['GroupName']."</td><td><a href='members.php?list=edit&MemberID=$ID&GroupAdd=".$row['GroupName']."'>[ Add ]</a></td></tr>"; break; } } ?>
  15. It is basically a database with info about other databases. A.K.A. DB metadata. Read more here: http://dev.mysql.com/doc/refman/5.0/en/information-schema.html It is not a sign of being hacked.
  16. Here's a shorter version with the same results: <?php foreach ($i = 0; $i < $number_of_values; $i++) echo "$i: " . $i * 50 . '<br />';
  17. Is the facebook class your own and can you post its code? If not, can you link to where you got it?
  18. Hi there, I think you are best of to try google for "tooltip javascript", this is one of the results http://sandbox.leigeber.com/tooltip/
  19. So you want a loop that loops X times (5 or 8 in our story so far), and prints out 50, 100, etc? foreach ($i = 1; $i <= $number_of_values; $i++) echo $i * 50; I renamed $string to $number_of_values, I think it is a better name.
  20. implode() makes a string. It could be that what you're looking for is: UPDATE table SET column = '3, 2' WHERE ... You certainly can't set one column to 2 values, database columns are scalars, meaning they take only one value, not a set of values. If this does not answer you question, I suggest giving more context, and surrounding code.
×
×
  • 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.