Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. learn something everyday
  2. yeah you're right.. I don't use affected_rows all that much, I'm too used to num_rows...for some reason I was under that impression. can't understand why an irregular formatted INSERT statement works perfectly like that, but anyway try putting an error message in there mysql_query("INSERT INTO login SET login='{$_POST['login']}',pass='{$_POST['pass']}'",$db) or die(mysql_error());
  3. you aren't giving your query to mysql_affected_rows() needs to be $theQuery = mysql_query("INSERT INTO login SET login='{$_POST['login']}',pass='{$_POST['pass']}'",$db); /*If the database has been updated*/ if(mysql_affected_rows($theQuery) > 0)
  4. did the error say whether or not you were using a password.... usually it does... most likely there is a different username/password on your Server's mysql
  5. Here's an interesting article I found somewhere..probably using Google.lol http://mashable.com/2007/05/14/google-dumber/
  6. Alright you've convinced me. I've seen the light. I'm just now tearing down all my I love Microsoft posters, setting fire to all my M$ Servers, and discontinuing all my $300/month donation checks to Bill Gates. Now what? Am I......worthy of Linux-ness yet? Yeah I'm going a bit off topic now. SemiApocalyptic had it right though
  7. I found this on YouTube. I think it's hilarious
  8. You're going off topic again. I'm not gonna sit here and argue the details with you of Windows vs Linux.......or rather Linux vs Windows (whichever order suits you). You know if you were to be facing a few years in prison and all you had to do to get out of it was to prove to a judge that "a majority of people aren't running Windows" I can guarantee that if you told him you know because you heard it on ...in the unlikely event you'd have to prove such a thing.......you'd be serving some time.
  9. Whoa, there's a Google NOS
  10. do you get any errors if you don't try putting error_reporting(E_ALL); at the very top of your script
  11. Again, where are your sources? Who is supplying you with such precious information? I don't know about you, but ALL the schools I've went to ran a Windows Server. I'm not to sure about the university and community college I went to. But I do know that that particular community college runs Novell Netware, which I've only seen run with a Windows Server so far. Unless this little mountain town suddenly acquired SUSE Linux administrators, those which (if they're smart enough) move far away.
  12. try this SELECT a.*, b.* FROM table1 a, table2 b
  13. Yeah, I'm about to say screw it as well. I'm waiting for laptop power adapter to come in the mail so I can use MY computer again and I figure once I get it...I'm thinkin Ubuntu. I've been stuck with Windows since..man. I was probably around 8 or 9 years old with Windows 3.1 I've tried putting Ubuntu or RedHat on and using it but I hadn't the slightest clue what I was doing at the time. I've been completely content with XP and 2003 Server but like a few people I refuse to go to Vista. Once it came out many of my friends decided to buy a computer and I was the first one they asked to check it out and to "fix things". Probably isn't a bad thing, but Vista is designed to restrict it's users in every which way. If not by restriction, by scaring the user that he/she will mess it up. I try to open an executable file, just a regular installation and the entire screen goes dim, appearing to my observing friend as though I'd just destroyed something. I guess it's great for a person whose known for installing viruses onto his computer without knowing, but I couldn't deal with such a thing happening all the time. I'm ready for an OS that I can type in a regex command and find the exact file I'm looking for. Reading that long post of roopurt makes me even more curious. Synaptic and Wine look interesting. Let me ask you this. What do you guys think of Crossover Office. I've never used it but I know what it's for. Just wondering if it's good or not or if there is something better.
  14. Your problem is in your SQL statement most likely it's because you don't have quotes around your REQUEST variable but just in case change this $result=mysql_query($sSql); to this $result=mysql_query($sSql) or die("Your have an error because: " . mysql_error()); and come back with the results
  15. just change this part echo $values['username']."- Userlevel: ".$values['userlevel']." to this echo $values['username'] . "- "; echo "Userlevel: "; echo $values['userlevel'] != 9 ? "Member" : "Admin";
  16. well.........assuming you only have 2 user levels...member and admin just echo it out like this I'm sure you using a $row variable somewhere so echo $row['username'] . ", "; echo "Userlevel: "; echo $row['userlevel'] != 9 ? "Member" : "Admin";
  17. SELECT what FROM table ORDER BY RAND() LIMIT 1
  18. man, .... I'm not on my game today sorry guys fenway's right
  19. you won't be able to echo units and weight when they're protected protected $units = 0; protected $weightPerUnit = 1.0; EDIT What were your results for this last time anyway
  20. I don't quite follow your question but it all looks correct to me only advice I have so far is ... wouldn't hurt to change this return $this->units = $this->units + $num; to this return $this->units += $num;
  21. \r is a carriage return and \n is newline character you really only need one or the other, but most people use both of them together as one to make their scripts work with as many browsers/applications as they can EDIT damn...everyone beat me
  22. don't know why I didn't see this earlier $_Employee_ID}', '{$_Date}', '{$_Activity}', $_Miles.....don't exist according to your script you need to have '{$_POST['Employee_ID']}', '{$_POST['Date']}', '{$_POST['Activity']}', '{$_POST['Miles']}' and adodb_error() doesn't exist as the last error states just use a simple error statement $db_conn->Execute("INSERT INTO Activity_Log (`Employee_ID`, `Date`, `Activity`, `Miles`) VALUES ('{$_POST['Employee_ID']}', '{$_POST['Date']}', '{$_POST['Activity']}', '{$_POST['Miles']}')") or die("Error with your ... thing");
  23. here at the end $_Miles}')" the parentheses goes after the double quote
  24. wow that didn't even cross my mind
  25. try using the strtotime() function http://www.php.net/strtotime
×
×
  • 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.