Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.72 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. <?php
  3. global $_CB_framework;
  4. $id = $_CB_framework->displayedUser();
  5.  
  6.         mysql_select_db("zi5p_FCTR6_Live", $con);
  7.     // CHANGED ENTIRE QUERY FOR PROFILE LINKING FROM HERE ->
  8.     $query = "SELECT jos_comprofiler.id, jos_comprofiler.user_id,  jos_comprofiler.cb_twitterurl FROM jos_comprofiler where jos_member_deals.userid= $id ORDER BY id DESC limit 1";
  9.     // <- TO HERE
  10.  
  11.     $result = mysql_query($query) or die(mysql_error());
  12.     // Print out the contents of each row into a table
  13.     while($row = mysql_fetch_array($result)){
  14.        
  15.                         $twlink = $row['cb_twitterurl'];
  16.                         $twlink =  str_replace("http://", "", $twlink);
  17.                         echo $twlink;
  18.             echo '<a target="_blank"  href=http://' . $twlink . '>';
  19.  
  20.  
  21.     ?>