1";
}else {
$graphs_condition = " AND id_graph IN (".implode(',',$usergraphs_id).")";
}
$sql = "SELECT id_graph, name, description
FROM tgraph
WHERE (name LIKE '%" . $stringSearchSQL . "%' OR description LIKE '%" . $stringSearchSQL . "%')".$graphs_condition ."
LIMIT " . $config['block_size'] . " OFFSET " . get_parameter ('offset',0);
$graphs = db_process_sql($sql);
if($graphs !== false) {
$sql = "SELECT COUNT(id_graph) AS count
FROM tgraph
WHERE name LIKE '%" . $stringSearchSQL . "%' OR description LIKE '%" . $stringSearchSQL . "%'";
$totalGraphs = db_get_row_sql($sql);
$totalGraphs = $totalGraphs['count'];
}
}
if ($graphs === false) {
echo "