On Wed, July 6, 2005 10:14 am, Moises Zaragoza said:
> I was trying to get a MySQL Loop to run in side of a loop but I have to
> reset the MySQL Pointer so that It can start again for as long as my loops
> goes on.
http://php.net/mysql_data_seek
--
Like Music?
http://l-i-e.com/artists.htm
--
P
[snip]
I was trying to get a MySQL Loop to run in side of a loop but I have to
reset the MySQL Pointer so that It can start again for as long as my
loops goes on.
[/snip]
Can we see some of your code , that way we may be able to help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
>> //Untested code.
>> $connection = @mysql_connect('localhost', 'USERNAME', 'PASSWORD') or
>> trigger_error(@mysql_error() . " connecting to mysql", E_USER_ERROR);
> mysql_error() *never* returns warnings... so why are you prepending an @ ?
If $connection is an invalid link, it most certainly doe
Richard Davey wrote:
Hello Steve,
Tuesday, December 14, 2004, 3:52:26 PM, you wrote:
SM> I would like to loop the multiple variables rather than put all the
SM> variables into a single variable with an array. I can not figure out how to
SM> do this.
I assume you have placed the MySQL query and chec
Richard Lynch wrote:
Steve Marquez wrote:
Greetings. I am trying to display looped information from a MySQL database
in a PHP file.
Loop
$name (witht a br />) then
$description
End of loop
I would like to loop the multiple variables rather than put all the
variables into a single variable with an a
Hello Steve,
Tuesday, December 14, 2004, 3:52:26 PM, you wrote:
SM> I would like to loop the multiple variables rather than put all the
SM> variables into a single variable with an array. I can not figure out how to
SM> do this.
I assume you have placed the MySQL query and checked the number of
Gareth Williams wrote:
$result = mysql_query("SELECT name, description FROM table");
while ($row = mysql_fetch_assoc($result))
{
echo "{$row['name']}$row['description']";
that will throw errors.
echo "{$row['name']}{$row['description']}";
would work, just like all of the following would also:
e
Steve Marquez wrote:
> Greetings. I am trying to display looped information from a MySQL database
> in a PHP file.
>
> Loop
>
> $name (witht a br />) then
> $description
>
> End of loop
>
> I would like to loop the multiple variables rather than put all the
> variables into a single variable wi
$result = mysql_query("SELECT name, description FROM table");
while ($row = mysql_fetch_assoc($result))
{
echo "{$row['name']}$row['description']";
}
On 14 Dec 2004, at 16:52, Steve Marquez wrote:
Greetings. I am trying to display looped information from a MySQL
database
in a PHP file.
Lo
9 matches
Mail list logo