Jump to content

thndr

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by thndr

  1. Wow. Thank you. Its amazing how you can overlook something so simple. Thanks again,
  2. Hy everyone I have a small piece of code thats not working and I have no clue why. <?php echo "<br>admin=".$row['admin']."<br>"; echo "adminnotification=".$row['adminnotification']."<br>"; if (($row['admin'] == 1 ) && ($_row['adminnotification'] == 1)){ echo "admin and notification enabled"; }elseif (($row['admin'] == "1" ) && ($_row['adminnotification'] == "0")){ echo "admin enabled but notification is disabled"; }else{ //notadmin echo "not admin"; }?> Now the first part dumps the value of the MySql query and it returns: admin=1 adminnotification=1 So it should trigger the first part of the If statement, but it does not. It triggers the "else", ie nothing is set. Anyone have any ideas?
  3. Say I have two servers... One is a dedicated, but with a weak processor/low ram, the other is a mass resseller acount with thousands of domains. Anyone have any ideas on how to actually compare the performance of the two? Any sort of benchamrking script or something? Just trying to see which server I should use for which sites. Thanks, John
  4. Whats the best/most effiecient way to do this? Ive been scratching my head for a while, any links to tutorials or relevent info? I have used vb, and it was kinda confusing, but still straightforward, instr("this is test for the word","test") would return 9 and then you would do another instr for a space, but starting at the where you left off and it would return 13, then you would mid to grab the chuck from char 9 to 13. TIA, J
  5. Ah I should have known I think I had problems with that before, thanks!
  6. Hello again, Small problem. [code]INSERT INTO trans (Amount,Desc,Date,Empty) VALUES('5.95','Fees','02.01.06','W')[/code] it returns: [code]Query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Desc,Date,Empty) VALUES('5.95','Fees','02.01.06','W')[/code] Thats not working, what did I miss? The first field in the DB structure is ID, and i moved servers, I used to just use "INSERT INTO trans VALUES ('','price') etc, but it doesnt allow that for the ID field on new server so Im trying to do it the other way and its not working. TIA. John
×
×
  • 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.