R
rayman

  • Dec 3, 2001
  • Joined Nov 10, 2001
  • I tryed every possible way to register and set a var. But it only registers it and doesnt set is to the required value.

    I Searched for a anwser but i could find one. ANd the one I found i could understand that one.

    • solved it 🙂 ... forgot the '' 🙁

      <?
      $username = "rayman";
      $query = "SELECT * FROM user_profile WHERE username = '$username'";
      echo "$query";
      $db = mysql_pconnect("localhost");
      mysql_select_db("mailing",$db);
      $result = mysql_db_query(Devnet ,$query);
      $row = mysql_fetch_object($result);
      echo "$row->Password";
      ?>

      • I want to extract password from the database Devnet @ localhost with no user/pass.

        without the \"WHERE username=$username\" it works but when i try it with that part I get a error \"Warning: Supplied argument is not a valid MySQL result resource in C:\apache\htdocs\index.php on line 8\"

        I am almost a hour busy to debug it but i cant find it... 🙁

        <?
        $username = \"rayman\";
        $query = \"SELECT * FROM user_profile WHERE username=$username\";
        $db = mysql_pconnect(\"localhost\");
        mysql_select_db(\"mailing\",$db);
        $result = mysql_db_query(Devnet ,$query);
        $row = mysql_fetch_object($result);
        $row->Password
        ?>

        • mods = modernators and the users to.

          They all have there limitions. If i ask something they imidiatly begin to UTFS = use the fucking search || UTFM = use the fucking manual || RTFF = read the fucking faq

          they cant image that someone cant find a topic. or n00b dont know that they need to read the faq before they post enc.

          They do that to all users and not only to new one's.

          And most of my topic's get no userfull anwser at all because users begin to flame in the topic enc.

          • Tnx again..

            /me i going to read all the userfull articels there 🙂

            p.s. did you really write books ? (your profile 😛)

            • I agree but the rest of the forums is going down to.. to many same and newbie question.
              and the mods suck to 🙁

              • I have a dbase and i want to register all the knowlege a user has. The user can choose from a list of things like php, html, javascript enc.

                How should i make my dbase. I think it would be very inceficient if i made a list for every user if he had the talent or not..

                tnx in advace..

                p.s. like phpbuilder has it. you can choose from verious things and select some options

                • You on Gathering of tweakers to I C. I didnt like it anymore there so i moved here. 🙂 Great board and articles I will tell all my friend about this place 🙂

                  btw found this on php.net shame on me 🙁 ..

                  function getmicrotime(){
                  list($usec, $sec) = explode(" ",microtime());
                  return ((float)$usec + (float)$sec);
                  }

                  $time_start = getmicrotime();

                  for ($i=0; $i < 1000; $i++){
                  //do nothing, 1000 times
                  }

                  $time_end = getmicrotime();
                  $time = $time_end - $time_start;

                  echo "Did nothing in $time seconds";

                  • I want to thank you both very much the most dutch board like GOT where i am on dont reply with such usefull reply's within one day 🙂 tanks again