bonjour tous le monde!
'oilou, j'ai actuellement ceci en php
et je voudrais mettre tous ca dans une fonction js du style
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 $i=$_GET['id']; $query=mysql_query("select * from req"); $fetchy=mysql_fetch_array($query); if ((preg_match("#WHERE#", $fetchy['req1'])) || (preg_match("#where#", $fetchy['req1'])) ) $where='AND id > '.$i.' ORDER BY id asc LIMIT 0,1'; else $where='where id > '.$i.' ORDER BY id asc LIMIT 0,1'; $resultat_sql=mysql_query($fetchy['req1'].' '.$where); $gb=mysql_fetch_array($resultat_sql ); $idsuiv=$gb['id'];
req_suivante(id) ou a la fin $idsuiv soit une variable js et non php
etant donné que je m'embrouille a chaque fois quand faut melanger js et php, cela est il donc possible?
merci
Partager