where to put 2 words in this line

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
emelianenko
Forum Commoner
Posts: 35
Joined: Thu Sep 09, 2010 11:49 am

where to put 2 words in this line

Post by emelianenko »

Hello,


been scratching me head as ah cant figure out where to embedd these two words class="whatever" in here. I ve been trying everywhere but I always get a JSON error.

Code: Select all


$sOutput .= '"<a href=\"#tab-' .addslashes($aRow['id_activity']).'\">'.addslashes($aRow['name']).'</a>" ,';


so the line works great like that, but it needs these additional two words because the hyperlink must have an event bound to its clicking, which I do by means of the class.

thanks very much

Emi
mikecampbell
Forum Commoner
Posts: 38
Joined: Tue Oct 12, 2010 7:26 pm

Re: where to put 2 words in this line

Post by mikecampbell »

What have you tried? Is this not working:

Code: Select all

$sOutput .= '"<a href="#tab-' .addslashes($aRow['id_activity']).'" class="whatever">'.addslashes($aRow['name']).'</a>" ,';
Post Reply