Jump to content

Recommended Posts

I have an url in the database. I want to add an specific ending for each and single user.

like:

index.php?user=USERNAME.

I need to get the url from a table in the database like

 

Can anyone help me? :)

$sql = "SELECT * FROM tb_ads2 WHERE id='$adse'";
$result = mysql_query($sql);        
$row = mysql_fetch_array($result);
$urln = $row["url"];

 

I want to add an ending :)

Link to comment
https://forums.phpfreaks.com/topic/210209-add-username-to-url/#findComment-1096968
Share on other sites

I know that I have $row and $rowe :)

 

Got an error message now. Parse error: syntax error, unexpected ';' in line 97

$sql = "SELECT * FROM tb_ads2 WHERE id='$adse'";
$result = mysql_query($sql);        
$row = mysql_fetch_array($result);

if(isset($_COOKIE["usNick"]) && isset($_COOKIE["usPass"]))
{
$user=uc2($_COOKIE["usNick"]);

$sql2 = "SELECT * FROM tb_users WHERE username='$user'";
$result2 = mysql_query($sql2);        
$rowe = mysql_fetch_array($result2);

echo $row['url'].'?epi='.$rowe['username'].;                                                LINE 97
}


Link to comment
https://forums.phpfreaks.com/topic/210209-add-username-to-url/#findComment-1096989
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.