Bunu yapabilir misin? Ben sadece denedim ama çalışmak için görünmüyor.
Ben dbc.php sayfamın üstünde dahil ettik ve alt dbc.php i bu işlevi oluşturuldu:
function getUserInfo($id) {
$thaString = mysql_query("SELECT * FROM users WHERE id = '$id'");
$thaString2 = mysql_query("SELECT * FROM users_profile WHERE uID = '$id'");
$showUR = mysql_fetch_array($thaString);
$showURP = mysql_fetch_array($thaString2);
}
So it would be easier for me to call them instead of running the queries all the time when i need them in other pages.. But when i try to do:
getUserInfo($showInfo["bID"]);
echo $showUR["full_name"];
Ben herhangi bir sonuç alamadım, bunu yapmak için daha akıllı bir yol yüzden nasıl ise, var mı?