| Index
» Projekty
» phpMyEdit
» Fórum
» mysql query |
 |
laspina
Založený: 01.10.2004
Príspevky: 13
Zaslal: 2004-10-01 12:22
Návrat hore
Odpovedať s citátom
|
Hi,
I would like to do a mysql query inside the script generated by phpmyedit. I tried in the obvious way:
$query="SELECT * FROM stud_mat";
$result = mysql_query($query);
$num_rows = mysql_num_rows($result);
but I get this error:
mysql_num_rows(): supplied argument is not a valid MySQL result resource in ....
Is there another way to do this?
Thank you for your help.
|
laspina
Založený: 01.10.2004
Príspevky: 13
Zaslal: 2004-10-04 08:27
Návrat hore
Odpovedať s citátom
|
| doug Napísal: |
| Are you selecting a database and connecting to MySQL before running the query? |
....oooops : I thought the connection was already open .
Thank you for your suggestion: now it works.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|