Code :
$query = 'SELECT URL, TITLE, TEXT FROM TEST2 WHERE TEXT LIKE $1 OR TITLE LIKE $1 ORDER BY URL LIMIT 25 OFFSET 0' $result = pg_query_params ($dbconn, $query, array('%'. $REQ. '%')); // .... $insertQuery = 'INSERT INTO "'.$NOM_TABLE.'" (URL,TITLE,OCCURENCES,RACINE,PREUVE) '."VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING"; $requete_sql2 = pg_query_params ($cursor2, $insertQuery, array($row[0], $row[1], $weight, $proof );
|