Exemple #1
0
if(($parameter_determiner=='sent')||($parameter_determiner=='recieved')||($parameter_determiner=='all')||($parameter_determiner=='unread'))
{
if($parameter_determiner=='sent'){$query_get_messages="select * from all messages where sender_email_id='$the_email_id_in_cookie'";}
if($parameter_determiner=='recieved'){$query_get_messages="select * from all messages where reciever_email_id='$the_email_id_in_cookie'";}
if($parameter_determiner=='all'){$query_get_messages="select * from all messages";}
if($parameter_determiner=='unread'){$query_get_messages="select * from all messages where checked='0'";}
$result_get_messages=mysqli_query($connection_message,$query_get_messages);
echo "<div class='paginate vertical'>
			
			<div class='pagiitems'>";
$count_on_number_of_messages=0;
while(false!=($answer_get_messages=mysqli_fetch_array($result_get_messages)))
{
if(($count_on_number_of_messages%5)==0){echo "<div>";}
echo "<div class='oneitem'>";
construct_the_message_div($answer_get_messages);
echo "</div>";
if(($count_on_number_of_messages%5)==0){echo "</div>";}

}
}
else if(($parameter_determiner=='new'))
{$set_up=10;
if(isset($_GET['to']))
{
$the_checker=$_GET['to'];
$query_get_email_for_the_profile_string="select email_id from users_basic where profile_string='$the_checker'";
$result_get_email_for_the_profile_string=mysqli_query($connection_message,$query_get_email_for_the_profile_string);
$thesendto_email_fetched=mysqli_fetch_array($result_get_email_for_the_profile_string);
$thesendto_email=$thesendto_email_fetched['email_id'];
if(!isset($thesendto_email)){$thesendto_email='is this an email';$set_up=1;}
Exemple #2
0
			
			</div><!--panecontents-->
			
			
			<div class="panecontents">
				
				
			<?php
			$query_extract_allmessages_recieved="select * from allmessages where reciever='$username_message' order by timestamp";
			$result_extract_allmessages_recieved=mysqli_query($connection_message,$query_extract_allmessages_recieved);
			$count_all_messages_recieved=0;
				while(false!=($array_answer_recieved=mysqli_fetch_array($result_extract_allmessages_recieved)))
				{
				if(($count_all_messages_recieved)%5==0){echo "<div>";}//rollup	
					echo "<div class='smalldivnsiderollup'>";
					construct_the_message_div($array_answer_recieved);
					echo "</div>";
				if(($count_all_messages_recieved)%5==0){echo "</div>";}//rollup
				$count_all_messages_recieved+=1;
				}
				if(!$count_all_messages_recieved)
				{
					echo"<div><pre>there are no messages to display</pre></div>";
				}
			//	else if($count_allmessages_sent==20)
			//	{
		//			echo"<div>show older messages</div>";
		//		}
		//should i do this ??
			
			?>