Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i have the following codeCode: Select all
$query = "SELECT name FROM roles";
$result = mysql_query( $query );
$num_rows = mysql_num_rows( $result );
for ( $i=0; $i < $num_rows; $i++ ) {
$tempName = mysql_result( $result, $i );
// check $_POST if it contains the current role
if ( !empty( $_POST[$tempName] ) ) {
$roleString += $tempName.",";
}
}Is the += in PHP different from the one in Java or C++ when it comes to strings??
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]