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

Linux, Apache, MySQL, PHP

 
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 
GeneralRe: Help debug a php function with database and JOIN query. Pin
fly90424-Nov-09 22:42
fly90424-Nov-09 22:42 
GeneralRe: Help debug a php function with database and JOIN query. [modified] Pin
djkee25-Nov-09 0:04
djkee25-Nov-09 0:04 
GeneralRe: Help debug a php function with database and JOIN query. Pin
fly90425-Nov-09 0:08
fly90425-Nov-09 0:08 
GeneralRe: Help debug a php function with database and JOIN query. [modified] Pin
djkee25-Nov-09 0:30
djkee25-Nov-09 0:30 
GeneralRe: Help debug a php function with database and JOIN query. Pin
cjoki25-Nov-09 10:29
cjoki25-Nov-09 10:29 
QuestionImage uploads to server with php and mySQL Pin
wartotojas24-Nov-09 8:17
wartotojas24-Nov-09 8:17 
Questionpost data missing after php parses raw post to post variable Pin
cjoki24-Nov-09 7:34
cjoki24-Nov-09 7:34 
AnswerRe: post data missing after php parses raw post to post variable Pin
fly90424-Nov-09 9:04
fly90424-Nov-09 9:04 
GeneralRe: post data missing after php parses raw post to post variable Pin
cjoki24-Nov-09 10:01
cjoki24-Nov-09 10:01 
GeneralRe: post data missing after php parses raw post to post variable Pin
fly90424-Nov-09 10:14
fly90424-Nov-09 10:14 
GeneralRe: post data missing after php parses raw post to post variable Pin
Marc Firth24-Nov-09 22:46
Marc Firth24-Nov-09 22:46 
GeneralRe: post data missing after php parses raw post to post variable Pin
cjoki25-Nov-09 8:43
cjoki25-Nov-09 8:43 
GeneralRe: post data missing after php parses raw post to post variable Pin
Marc Firth25-Nov-09 22:20
Marc Firth25-Nov-09 22:20 
GeneralRe: post data missing after php parses raw post to post variable Pin
cjoki27-Nov-09 10:37
cjoki27-Nov-09 10:37 
QuestionProblem with Visual Cpp compiler Pin
Game-point23-Nov-09 18:10
Game-point23-Nov-09 18:10 
AnswerRe: Problem with Visual Cpp compiler Pin
Richard MacCutchan1-Dec-09 2:29
mveRichard MacCutchan1-Dec-09 2:29 
AnswerRe: Problem with Visual Cpp compiler Pin
LloydA11114-Jan-10 8:42
LloydA11114-Jan-10 8:42 
QuestionHelp with assigning variables to smarty template engine (php). Pin
djkee23-Nov-09 10:20
djkee23-Nov-09 10:20 
AnswerRe: Help with assigning variables to smarty template engine (php). Pin
fly90423-Nov-09 10:53
fly90423-Nov-09 10:53 
GeneralRe: Help with assigning variables to smarty template engine (php). Pin
djkee23-Nov-09 13:42
djkee23-Nov-09 13:42 
GeneralRe: Help with assigning variables to smarty template engine (php). Pin
fly90424-Nov-09 2:30
fly90424-Nov-09 2:30 
My bad.

I would use your previous addSmilies method (strtr). It is alot more efficient.

I was a bit of a clot and forgot that the value $rev from the foreach wasn't a pointer to $reviews D'Oh! | :doh: Sigh | :sigh: . A normal for loop will work.
$reviews = am_queries($db, "SELECT * FROM AMCMS_reviews WHERE gameid=$got_gameid AND approved=1;");

for ( $i = 0; $i < count( $reviews ); $i++ )
{

    $reviews[ $i ][ 3 ] = addSmilies( $reviews[ $i ][ 3 ] );

}



djkee wrote:
Any way to do the same foreach in smarty ?


There is no point, as it shouldn't technically be in the template. And it would make the template messy, which is never a good thing.

If at first you don't succeed, you're not Chuck Norris.

GeneralRe: Help with assigning variables to smarty template engine (php). Pin
djkee24-Nov-09 8:30
djkee24-Nov-09 8:30 

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.