Jump to content

ignace

Moderators
  • Posts

    6,457
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by ignace

  1. Yes, but you don't need session_regenerate_id() and $_SESSION in it. Sessions are to store certain values between page views.
  2. I know some folks that are really excited about Gmail Motion coming out soon! What a bummer for them...
  3. Between <td></td> comes your actual ticket information, I thought you could figure that out by yourself.
  4. For those unfamiliar with the German language: ticketuebersicht.php is ticketoverview.php @OP if(mysql_num_rows($result) == 1) { That's your problem. It will work if their is only one record in your database, but as soon you have multiple tickets it won't work anymore, replace it with: if($result && mysql_num_rows($result)) { // if $result != equal any false value & > 0 rows were found while($row = mysql_fetch_assoc($result)) { // loop until the last row //<td>..</td> } }
  5. You mean this isn't real?!? You think I could get a refund for my Royal Flush subscription???????????????????????????????? *HALP*
  6. Can you give us an example of your directory layout? If your PHP includes the HTML (template) files, it might be wise to put these into a sub directory and add a .htaccess with a Deny from all rule (PHP will still be able to access the files).
  7. 2 posts and both contain a link to your website, trying to boost your low PageRank website through this high-volume forum?
  8. What happens to banned accounts, eventually?
  9. You join the users table against the posts table, this will give you the member information for each post. SQL query would look something like: SELECT .., posts.viewCount, users.username, users.avatar, users.postCount, .. FROM posts INNER JOIN users USING(user_id)
  10. Doesn't mean it isn't there, I get it too. Check your error_log and fix your coding.
  11. Never thought of creating a GIT(hub) repo for it, Nightslyr?
  12. Just add space: if (preg_match('/^[A-Z0-9#&\',. -]{2,30}$/i', $_POST['address1'])){ Or use \s like SamT_ suggested.
  13. Not much to say, you just applied a free CSS template you got from the net.
  14. Whoohoo, I just solved all open problems (~95479 posts) just by clicking the *MAGIC* button and got a +600 post count!! and an extra $5000 in my bank account!!!! WOOOOOWWW!!
  15. LOL I really want to see a bunch of people "typing" e-mails at the office like this Almost as if you step into a gym-class Robert to colleague: "I've "typed" 50 e-mails yesterday, I must of have lost 10 pounds in weight."
  16. You are not programming OOP, you created a function and named it a class. $dave = Horse::get('Dave'); // new Horse('Dave'); => *MAGIC* $dude = Horse::get('Dude'); $evan = Horse::get('Evan'); $jill = Horse::get('Jill'); $flex = Horse::get('Flex'); $race = new Race($dave, $dude, $evan, $jill, $flex); // contestants: get ready! set! $race->start(); // go! print_r($race->getResults()); // there goes my money! The code for this would look something similar to this: class Horse { private function __construct($name, $strength, $speed, $agility) {/*assign variables*/} public static function get($name) { // retrieve Horse from DB, return new instance of self return new self($row->name, $row->strength, $row->speed, $row->agility); } } class Race { public function __construct() { $this->_addContestants(func_get_args()); //.. } public function start() {/*let's race!*/} public function getResults() {/*race results*/} }
  17. MySQL can't, but PHP can: strtotime() or just store the duration as seconds that way if you calculate the TIMESTAMP of a date (or just stored the TIMESTAMP) you can just add it. $enddate = time() + 86400; // 86400 = 1 day
  18. http://dev.mysql.com/doc/refman/5.0/en/join.html This isn't rocket-surgery: SELECT e.credit_hours, e.course_title, ec.agdnumber, ec.first_name, ec.last_name FROM evals_completed ec JOIN evaluations e USING(eval_id) JOIN members m USING(member_id) WHERE ec.agdnumber IS NOT NULL
  19. Drupal 7 has this sort of editing.
  20. Now you made me curious, link?
×
×
  • 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.