Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 01-31-2009, 08:54 AM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 18,137
BMR777 is on a distinguished road
Default RE: PHP in a link?

If you want to use the ID number, you have to use this code before your link to convert the username to its id number:

PHP Code:
$query "SELECT * FROM users WHERE username = '".$username."'";
$result mysql_query($query);
$num mysql_numrows($result);

//Loop out code
$i=0;
while (
$i 1) {

$id=@mysql_result($result,$i,"uid");


$i++;

Brandon
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link Dots voni Questions and Supports 6 05-13-2014 10:20 AM
Link MaximumRide Questions and Supports 6 04-23-2012 04:52 PM
Getting my forums to link as a sub? Aasixx Questions and Supports 4 04-20-2012 04:20 AM
how change this link ? :( kratosvr Questions and Supports 5 08-24-2011 09:09 AM
Forums Link Ashje Questions and Supports 2 01-24-2009 12:28 AM


All times are GMT -5. The time now is 10:53 AM.

Currently Active Users: 3833 (0 members and 3833 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636