I solved my problem As i write, it's a stupid one :$ I replace this
$userid2 = $result2['id'];
by this one
$userid2 = $result2['userid'];
thanks anyway !! :rose:
I solved my problem As i write, it's a stupid one :$ I replace this
$userid2 = $result2['id'];
by this one
$userid2 = $result2['userid'];
thanks anyway !! :rose:
Hi I just have that stupid problem and hoping that you can help me on it. I try to take specific value (user ID for selected user name) from my database to deal with it. but it's seems that nothing happen ! :confused: the code is:
$query2 = MYSQL_QUERY("SELECT userid FROM users WHERE username LIKE '" . $username . "'") ;
while ($result2 = MYSQL\_FETCH\_ARRAY($query2)) {
$found2 = '1'; $userid2 = $result2\['id'\]; }
echo $userid2;