Re: [php-49] Re: sql error

From: Josh Y.
Sent on: Monday, February 18, 2013 2:59 PM
Ahh database issues.  Those are my favorite!
I spent half of yesterday trying to figure out how to import data from mysql 4.0 to 5.5 so if anyone has problems with that and doesn't want to waste 4 hrs.  Ping me.


From: max steinmetz <[address removed]>
To: [address removed]
Sent: Monday, February 18,[masked]:56 PM
Subject: Re: [php-49] Re: sql error

Thanks to Josh and JD, I got my error resolved. The problem was that my host provider's system 'unCamelCased' my db's name. Thank you for everything everyone. I will be doing a lot of reading today and tomorrow on what you all shared with me. I"m on to my next problem with gusto ;)


cheers and thanks 
On Feb 18, 2013, at 2:15 PM, max steinmetz <[address removed]> wrote:

Josh rules (he sent me an offline bit of extra help) J.D. rules too.

Again thanks for the pointers guys. Your awesome.



On Feb 18, 2013, at 1:42 PM, Pedro <[address removed]> wrote:

Hello, newb here with a question.

I'm attempting to build a simple shopping cart, this is my first time doing so and I am getting an error message which reads as follows:


Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in


Any help would be greatly appreciated as I'm google this error messag a bit and seen so many possible options that my mind turned to goop.

Again thank you for any help/direction possible.



This is the code starting with line #42

<div class="container">
<span class="top-label">
<span class="label-txt">PRODUCTS (TAKE Displayed things from here)</span>
</span>
<div class="content-area">
<div class="content drag-desired">
<?php
$result = mysql_query("SELECT * FROM internet_shop");
while($row=mysql_fetch_assoc($result))
{
echo '<div class="product"><img src="_img/products/'.$row['img'].'" alt="'.htmlspecialchars($row['name']).'" width="128" height="128" class="pngfix" /></div>';
}
?>
<div class="clear"></div>
</div>
</div>
<div class="bottom-container-border">
</div>
</div>






--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by max steinmetz ([address removed]) from The Seattle PHP Meetup Group.
To learn more about max steinmetz, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by max steinmetz ([address removed]) from The Seattle PHP Meetup Group.
To learn more about max steinmetz, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]


Our Sponsors

  • TUNE

    Meeting space and food

  • PluralSight

    PluralSight subscriptions for developer training

  • Siteground

    Information coming Soon

  • O'Reilly

    Disc Code: PCBW is good for 40% off print and 50% off ebooks and videos

  • JetBrains PhpStorm

    Occasional free licenses to raffle off at meetups

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy