coucou tout le monde!
j ai récupéré un site en php mysql que j ai dut faire migrer vers une base PGsql et je rencontre des probleme sur cette page
voila l'erreur qui me remonte:
je doit dire que j ai d autre petit problème a sur d autre page avec les select et malgré pas mal de recherche sur le net je n arrive pas a les résoudre
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 : Warning: pg_query() [function.pg-query]: No PostgreSQL link opened yet in /filer/c/l/clgjzay/utiles/assportive.php on line 21
voila pourquoi je me tourne vers vous
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
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80 table class="tablerubrik"> <tr> <th class="thprincipal">ASSOCIATION SPORTIVE</th> </tr> <tr> <td> </td> </tr> <tr> <td align="center"> <table class="tablein"> <tr> <td colspan="2" align="center"> <img src="utiles/gymnase.jpg" border="0" alt="Gymnase"> </td> </tr> <tr> <td align="right" valign="top" width="45%"><b>Enseignants E.P.S. :</b></td> <td width="55%"> <?php $sel_eps="SELECT user_nom,user_prenom FROM users WHERE user_disc='5' ORDER BY user_nom ASC"; $tab_eps=pg_query($sel_eps); $nb_eps=pg_num_rows($tab_eps); for($i=0;$i<$nb_eps;$i++) { $eps=pg_fetch_row($tab_eps); echo "- ".$eps[0]." ".$eps[1]."<br>\n"; } ?> </td> </tr> <tr><td colspan="2"> </td></tr> <tr> <td align="center" colspan="2"> <a href="index.php?link=utiles/charte_asport.htm">Charte : Fonctionnement de l'association</a> </td> </tr> <tr> <td align="center" colspan="2"> <a href="index.php?link=utiles/diapo_asport.php">DIAPORAMA</a> </td> </tr> <tr><td colspan="2"> </td></tr> <tr> <td align="center" colspan="2"> </td> </tr> <tr><td colspan="2"> </td></tr> <tr> <td colspan="2"> <table class="tableasport"> <tr> <th>L'association sportive, c'est aussi :</th> </tr> <?php for($m=0;$m<$nb_even;$m++) { $even=pg_fetch_row($tab_even); echo "<tr>\n<td class=\"tdasport\">\n"; echo $even[1]; echo " : "; echo $even[2]; echo "</td>\n</tr>\n"; } ?> </table> </td> </tr> <?php ?> </table> </td> </tr> <tr> <td align="center"> <a href="javascript:history.back();">précédent</a> </td> </tr> </table>
Partager