SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast helpplease's Avatar
    Join Date
    Apr 2001
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Here is my MySQL command (using the Perl DBI):

    Code:
    $address = $dbh->prepare(qq(select name from users where emailaddress ="$email"));
    $address->execute;
    $name= $address->fetchrow_array
    When I do that, it gives me an error.
    For some reason I have to do:

    .
    .
    while($package_price = $package_info->fetchrow_array) {
    # blah blah...
    }

    Any ideas why?
    It will only pull one statement..

    Thanks

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you give us more of the code on the second example, and what error you're getting?

  3. #3
    SitePoint Enthusiast helpplease's Avatar
    Join Date
    Apr 2001
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply.

    That is the code, but it's in the middle of a while statement.
    The error returns something about still alive, and not to kill...?

    Do you need more info?

  4. #4
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The more info, the better we can help.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •