Ask a Question related to PHP Development, Design and Development.
-
Marc Collin #1
problem with db function php
hi
echo '<table>';
$requete = mysql_query("SELECT liv_nolivre, sec_nosection,
liv_commentaire, liv_titre FROM livre");
if ( mysql_num_rows($requete) != 0 )
{
while ($requete = mysql_fetch_assoc($requete)) {
echo'<tr class="tabtitre"><td>'.$requete["liv_titre"].'</td></tr>',
'<tr><td>'.$requete["liv_commentaire"].' </td></tr>';
}
}
echo '</table>';
i get:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL
result resource
any idea?
maybe my echo is not good?
--
Borland rulez [url]http://pages.infinit.net/borland[/url]
Marc Collin Guest
-
Problem with function ListGetAt
I have written the code for a DB driven image viewer. It is pretty simple. I am having a problem with my navagtion going to the previous and next... -
Problem using GD function
Hi all, I've got a Red Hat 9 system with gd-1.8.4 installed and php-4.3.4 working on apache 2.0.48. When I try to use the imagecreatefromjpeg... -
Function Problem
Hi, I have the following function below used to make a couple of calculations however as soon as I have two records the function calculation is... -
Problem with split function
Hi all, I am having a problem with the split function. Here is my code: $_ = "123 a 456 b 789 c"; my @words = split /+/, $_; print... -
[PHP] isset function problem
What about the rest of the code? How is this variable defined? I have had this happen in some code before, I found that the variable was set to... -
Virgil Green #2
Re: problem with db function php
"Marc Collin" <os2@videotron.ca> wrote in message
news:8eGjc.69832$Tu2.1587055@weber.videotron.net.. .Here you replaced your result set with an array. $requete is being assigned.> hi
>
> echo '<table>';
> $requete = mysql_query("SELECT liv_nolivre, sec_nosection,
> liv_commentaire, liv_titre FROM livre");
>
>
> if ( mysql_num_rows($requete) != 0 )
> {
> while ($requete = mysql_fetch_assoc($requete)) {
- Virgil
Virgil Green Guest



Reply With Quote

