Advertisement
DrupalCustom

asdf

Feb 2nd, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. <?php
  2.  
  3. // Database connection.
  4. mysql_connect("localhost", "root", "admin");
  5. mysql_select_db("drupaltheme");
  6.  
  7.  
  8. $resultFindMode = mysql_query("SELECT mode_id FROM freeway_mode where sr_id = 1");
  9.  
  10. while ($recordUsPw = mysql_fetch_object($resultFindMode ))
  11.          {
  12.             $modeValueUsPw = $recordUsPw->mode_id;     
  13.          }
  14.          
  15.     if ($modeValueUsPw == '1'){
  16.     $globalResult = mysql_query("SELECT freeway_global_username,freeway_global_password FROM freeway_global_user where sr_id = 1");
  17.    
  18.      while ($recordUsPwGl  = mysql_fetch_object($globalResult)){
  19.      $fusername = $recordUsPwGl->freeway_global_username;
  20.      $fpassword = $recordUsPwGl->freeway_global_password;
  21.      
  22.         }
  23.  
  24.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement