Click here to Skip to main content
15,903,033 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: opencv in codeblocks - compile error Pin
Richard MacCutchan1-Dec-09 2:25
mveRichard MacCutchan1-Dec-09 2:25 
Questionneed a complete and free file manager Pin
Mehdi Ghiasi27-Nov-09 8:43
Mehdi Ghiasi27-Nov-09 8:43 
AnswerRe: need a complete and free file manager Pin
cjoki27-Nov-09 10:36
cjoki27-Nov-09 10:36 
GeneralRe: need a complete and free file manager Pin
Mehdi Ghiasi28-Nov-09 19:21
Mehdi Ghiasi28-Nov-09 19:21 
GeneralRe: need a complete and free file manager Pin
Marc Firth29-Nov-09 22:55
Marc Firth29-Nov-09 22:55 
GeneralRe: need a complete and free file manager Pin
cjoki30-Nov-09 4:43
cjoki30-Nov-09 4:43 
QuestionNew Lang ? Pin
SRJ9226-Nov-09 13:52
SRJ9226-Nov-09 13:52 
AnswerRe: New Lang ? Pin
Eddy Vluggen27-Nov-09 1:07
professionalEddy Vluggen27-Nov-09 1:07 
AnswerRe: New Lang ? Pin
cjoki27-Nov-09 10:31
cjoki27-Nov-09 10:31 
AnswerRe: New Lang ? Pin
Marc Firth29-Nov-09 22:02
Marc Firth29-Nov-09 22:02 
AnswerRe: New Lang ? Pin
abushahin7-Dec-09 2:28
abushahin7-Dec-09 2:28 
AnswerRe: New Lang ? Pin
Dr.Walt Fair, PE14-Dec-09 14:44
professionalDr.Walt Fair, PE14-Dec-09 14:44 
Questionstr_replace vs hebrevc Pin
Quiltfish26-Nov-09 9:01
Quiltfish26-Nov-09 9:01 
AnswerRe: str_replace vs hebrevc Pin
fly90426-Nov-09 9:17
fly90426-Nov-09 9:17 
AnswerRe: str_replace vs hebrevc Pin
Luc Pattyn26-Nov-09 9:22
sitebuilderLuc Pattyn26-Nov-09 9:22 
GeneralRe: str_replace vs hebrevc Pin
Quiltfish26-Nov-09 9:39
Quiltfish26-Nov-09 9:39 
GeneralRe: str_replace vs hebrevc Pin
Luc Pattyn26-Nov-09 9:46
sitebuilderLuc Pattyn26-Nov-09 9:46 
GeneralRe: str_replace vs hebrevc Pin
Quiltfish26-Nov-09 9:58
Quiltfish26-Nov-09 9:58 
GeneralRe: str_replace vs hebrevc Pin
Luc Pattyn26-Nov-09 12:14
sitebuilderLuc Pattyn26-Nov-09 12:14 
QuestionHelp debug a php function with database and JOIN query. Pin
djkee24-Nov-09 20:10
djkee24-Nov-09 20:10 
AnswerRe: Help debug a php function with database and JOIN query. Pin
fly90424-Nov-09 21:25
fly90424-Nov-09 21:25 
GeneralRe: Help debug a php function with database and JOIN query. Pin
djkee24-Nov-09 21:40
djkee24-Nov-09 21:40 
GeneralRe: Help debug a php function with database and JOIN query. Pin
fly90424-Nov-09 21:44
fly90424-Nov-09 21:44 
GeneralRe: Help debug a php function with database and JOIN query. Pin
djkee24-Nov-09 22:13
djkee24-Nov-09 22:13 
Thanks, i fixed it and its compiling now but i cant get the scores out Frown | :(

Here is the function:
function am_getlatestscores($db, $cat) {
global $db;
    $sql = "SELECT * FROM `AMCMS_highscores` JOIN `AMCMS_users` WHERE `primkey`=`username` ORDER BY `primkey` DESC LIMIT 10;";
    $res = am_queries($db, $sql);
    return $res;
}



Here is how i output them in another file:
$higharray = am_getlatestscores($db, 'none', 'list');
foreach ($higharray as $hhscore) {
echo '<font><a href="./index.php?cat='.hhscore.'">$hhscore</a></font>


But it wont output anything Frown | :( I am sorry if its very simple but i am learning Big Grin | :-D
GeneralRe: Help debug a php function with database and JOIN query. Pin
fly90424-Nov-09 22:42
fly90424-Nov-09 22:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.