Jump to content

ignace

Moderators
  • Posts

    6,457
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by ignace

  1. It doesn't matter where you put what as long as it's in the <head>-section.
  2. SELECT series.seriesID, series.seriesName, plogger_pictures.id FROM series, plogger_pictures WHERE series.collection = colname AND plogger_pictures.parent_album = series.installalbum GROUP BY series.collection ORDER BY rand(), series.seriesName ASC
  3. The same applies for setting them to busy.
  4. I pointed that out here. It's $i < $row['qty']
  5. Why bother asking, try it!
  6. $maximumLength = 70; echo str_repeat('#', $maximumLength + , "\n", '# ', wordwrap($text, $maximumLength, " #\n# ", true), " #\n", str_repeat('#', $maximumLength + ;
  7. Why bother asking? Just try it and see for yourself if it would work. Your path is wrong.
  8. <irony>Yeah, jskywalker you don't have any people skills. You obviously need to work on that.</irony>
  9. Yeah as you gave it both id's. Computers do as they are told, remember.
  10. And that doesn't work with a DATETIME column, because?
  11. Not really. Music Album's and HQ Movie streams buy? legal? Most users won't even know they are watching copyrighted material.
  12. You can't use a WHERE clause with the INSERT statement. UPDATE temp_cart SET quantity = 7 WHERE product_id = 2 OR product_id = 4 AND user_id = .. UPDATE temp_cart SET quantity = 6 WHERE product_id = 2 OR product_id = 4 AND user_id = ..
  13. SELECT (CASE activate WHEN 'y' THEN 'Members' WHEN 'n' THEN 'Non-Members' ELSE 'Undefined' END) AS member_group, count(*) AS total_count FROM customers GROUP BY activate Members: .. Non-Members: .. Undefined: ..
  14. From what I see is that it actually does not matter, all you need to do is keep a log of clocks. employees (id, ..) clocks (employee_id, date_log); Create a record each time an employee clocks-in or clocks-out. Your application would calculate the worked hours as the first is a clock-in and the next a clock-out followed by a clock-in again if they had a lunch break.
  15. Forgot to properly close the attribute value <a> while($row = mysql_fetch_array($result)) { echo '<tr>', '<td>', $row['IDNumber'], '</td>', '<td>', $row['Name'], '</td>', '<td><a href="editPage.php?edit=', $row['IDNumber'], '">Edit</a></td>', '</tr>'; } echo '</table>'; mysql_close($con);
  16. You have 3 forms to include CSS: External: <link href="stylesheet.css"> Internal: <style type="text/css"> .. </style And inline: <p style="color: blue">..</p> inline overwrites internal, internal overwrites external.
  17. $score = ''; $position = 0; while ($row = mysql_fetch_assoc($result)) { if ($score !== $row['score']) { $score = $row['score']; ++$position; } echo $position, ' ', $score; }
  18. libxml_use_internal_errors(true); $dom = new DomDocument(); if ($dom->loadHtml('http://uk.aiononline.com/characters/Perento/' . $userdata['character'])) { $xpath = new DomXPath($dom); foreach ($xpath->query('//ul[@class="status"]/li') as $node) { echo $node->childNodes[0]->nodeValue, ': ', $node->childNodes[1]->nodeValue, "<br>\n"; //HP: 1795 (+256) } }
  19. if (file_exists('config/file/path')) { include('config/file/path'); } else { .. }
  20. ob_start(); include('filepath'); $content = ob_get_contents(); ob_end_clean();
  21. Functions like require_once(), include_once(), require(), and include() return 0 or 1 you need to return() it if you want to use it. $A = str_replace('<A>', 1, $A); is what you wrote (if the include was successful 0 otherwise).
×
×
  • 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.