About 44 results: "mysql_query repo:silverasm/wordseer"
Page 1 of 3
Filter Results
Sources
Languages
Filter Results
Try Search On


linSimilarity.php in wordseer https://bitbucket.org/silverasm/wordseer | 322 lines | PHP
  1. 		$query = "SELECT * from dependency WHERE id =".$id.";";
  2. 		$result = mysql_query($query) or die("<b>A fatal MySQL error occured</b>.
  3. 					$query = "SELECT COUNT(*) as c from dependency_xref_sentence WHERE gov_id = ".$row['gov_id']." AND relation_id = ".$row['relation_id'].";";
  4. 					$r = mysql_query($query) or die("<b>A fatal MySQL error occured</b>.
  5. 			$query = "SELECT * from relationship WHERE id = ".$rel_id.";";
  6. 			$count = mysql_query($query) or die("<b>A fatal MySQL error occured</b>.
  7. 				$query = "SELECT id, dep_count, gov_count, frequency from dependency WHERE relation_id = ".$rel_id.";";
  8. 				$results = mysql_query($query) or die("<b>A fatal MySQL error occured</b>.
  9. 							$query = "UPDATE dependency SET information =".log(($countBoth*$countRel)/($countDep*$countGov))." WHERE id = ".$id.";" ;
  10. 							mysql_query($query) or die("<b>A fatal MySQL error occured</b>\n<br/> Query: " . $query . "\n<br/> Error: (" . mysql_errno() . ") ". mysql_error());
  11. 	$query = " SELECT * from word WHERE pos NOT IN ('X', '-LRB-', '-RRB-', '.', ',');";
  12. 	$result = mysql_query($query);
  13. 		$query = "SELECT SUM(information) as i FROM dependency where gov_id = ".$row['id']." OR dep_id = ".$row['id']." AND information > 0;";
  14. 		$r = mysql_query($query) or die("<b>A fatal MySQL error occured</b>\n<br/> Query: " . $query . "\n<br/> Error: (" . mysql_errno() . ") ". mysql_error());
  15. 		$query = "UPDATE word SET information = ".$information." WHERE id = ".$row['id'].";" or die("<b>A fatal MySQL error occured</b>\n<br/> Query: " . $query . "\n<br/> Error: (" . mysql_errno() . ") ". mysql_error());
  16. 		$r = mysql_query($query);


















Back to Top