Your original post asked to count characters so I suggested using arrays. I don't see how this applies to your posted code. In fact i'm not sure what you are trying to do. Are you trying to format the HTML output - such as position line breaks? This is better acheived creating a big string then echoing out the string.
Sorry, act i ned to count the character, if excess 156 character, the ouput will from output 1 to output 2 as below
output 1:
nusuara id=1 @2007-05-15 10:18:04 sent=0 s=2|vads id=3 @2007-05-15 10:18:04 sent=0 s=3|nusuara id=4 @2007-05-15 10:18:04 sent=10000 s=3|
output 2:
nusuara id=1 @2007-05-15 10:18:04 sent=0 s=2
vads id=3 @2007-05-15 10:18:04 sent=0 s=3
nusuara id=4 @2007-05-15 10:18:04 sent=10000 s=3
and so on...
I trying to use explode() as below to seperate the string:
-
if(condition){
-
$data = $alert_full_message."|";
-
list($alert_full_message, $alert_message) = explode("|", $alert_full_message);
-
echo "$alert_full_message</br>";
-
echo "$alert_message</br>";
-
}
-
but the output i get is
nusuara id=1 @2007-05-15 10:18:04 sent=0 s=2
vads id=3 @2007-05-15 10:18:04 sent=0 s=3
and the $alert_full_message and $alert_message is from the code below:
-
while($rows = mysql_fetch_array($result)){
-
$bc_id=$rows['bc_id'];
-
$company_login=$rows['company_login'];
-
$bc_time=$rows['bc_time'];
-
$bc_status=$rows['bc_status'];
-
$bc_total_sent_out=$rows['bc_total_sent_out'];
-
-
$alert_message = $company_login." id=".$bc_id." @".$bc_time." sent=".$bc_total_sent_out." s=".$bc_status;
-
-
$alert_full_message = $alert_full_message.$alert_message."|";
-
-
-
}
-
echo "$alert_full_message</br>";
-
echo of $alert_full_message will display the output 1. Thanks.