Facebook
From Queen Marmoset, 6 Years ago, written in PHP.
This paste is a reply to Untitled from Stained Baboon - view diff
Embed
Download Paste or View Raw
Hits: 567
  1.   while ($row = $resultMessageInfo->fetch_assoc()) {
  2.         $words = array();
  3.         $words["id"] = $row["id"];
  4.         $words["receiver"] = $row["receiver"];
  5.         $words["sender"] = $row["sender"];
  6.         $words["date"] = $row["date"];
  7.        
  8.                 $resultWordsId = $con->query("SELECT *FROM message_words where id = '". $words['id'] ."'") or die(mysql_error());
  9.                 $words["words"]=array();
  10.  
  11.                 if ($resultWordsId->num_rows > 0) {
  12.                         while($rowIdWord = $resultWordsId->fetch_assoc()) {
  13.                                 $resultWords = $con->query("SELECT * FROM not_allowed_words where id = '". $rowIdWord['id_word'] ."'");
  14.                                 if ($resultWords->num_rows > 0) {      
  15.                                         while($row = $resultWords->fetch_assoc()){
  16.                                                 array_push($words["words"], $row["word"]);
  17.                                         }
  18.                                        
  19.                                 }
  20.                         }
  21.        
  22.                 }
  23.         array_push($response, $words);
  24.     }

Replies to Re: Untitled rss

Title Name Language When
Re: Re: Untitled Gracious Meerkat php 6 Years ago.