Re: [PHP] mysqli_query() returns NULL?

2011-06-18 Thread James Colannino
On 06/18/11 13:27, Ashley Sheridan wrote: > You'll only get an error if there was an error with the query. A query that > has no result is still a valid query, so won't return an error. It's quite > common to check the value of mysql_num_rows() before trying to use the > results of the query.

Re: [PHP] Submit Using An Image Form Processing

2011-06-18 Thread Shawn McKenzie
On 06/18/2011 11:06 AM, Jason Pruim wrote: > > On Jun 18, 2011, at 11:54 AM, "Ron Piggott" > wrote: > >> > SRC="http://www.theverseoftheday.info/store-images/trash_can.png"; WIDTH="20" >> HEIGHT="20" style="float: right;boarder: 0;" alt="Remove Product From >> Shopping Cart" name="remove_pro

Re: [PHP] mysqli_query() returns NULL?

2011-06-18 Thread Ashley Sheridan
Alex wrote: >If you were to use the proper object form of it, you'd spot the >mistake, as it will tell you that you are trying to perform an action >on a non-object. > >It might be a bug, or the developers might not have cared figuring that >if you threw it in an if(!...) it would validate as f

Re: [PHP] mysqli_query() returns NULL?

2011-06-18 Thread Alex
If you were to use the proper object form of it, you'd spot the mistake, as it will tell you that you are trying to perform an action on a non-object. It might be a bug, or the developers might not have cared figuring that if you threw it in an if(!...) it would validate as false anyways. But i

Re: [PHP] Re: Submit Using An Image Form Processing

2011-06-18 Thread Ashley Sheridan
Geoff Lane wrote: >On Saturday, June 18, 2011, Ron Piggott wrote: > >> I am not getting anything. Is there a correct way of passing a >> variable through an image? The value in this above example is the >> auto_increment value of the product. From this I could remove the >> item from the sho

[PHP] Re: Submit Using An Image Form Processing

2011-06-18 Thread Geoff Lane
On Saturday, June 18, 2011, Ron Piggott wrote: > I am not getting anything. Is there a correct way of passing a > variable through an image? The value in this above example is the > auto_increment value of the product. From this I could remove the > item from the shopping cart. An image causes

Re: [PHP] Submit Using An Image Form Processing

2011-06-18 Thread Jason Pruim
On Jun 18, 2011, at 11:54 AM, "Ron Piggott" wrote: > SRC="http://www.theverseoftheday.info/store-images/trash_can.png"; WIDTH="20" > HEIGHT="20" style="float: right;boarder: 0;" alt="Remove Product From > Shopping Cart" name="remove_product" value="1" /> I would wrap the image in a link li

[PHP] Submit Using An Image Form Processing

2011-06-18 Thread Ron Piggott
I am writing a shopping cart using the PayPal API. Shopping cart works. Just adding additional functionality. >From the shopping cart contents I am trying to make it so the user may click >on a picture of a trash can to delete the item. I wrote the following line of >code: http://www.the

Re: [PHP] Doctrine madness!

2011-06-18 Thread Nathan Nobbe
On Fri, Jun 17, 2011 at 1:19 PM, Jim Lucas wrote: > On 6/16/2011 3:15 PM, Nathan Nobbe wrote: > > what it really amounts to is php is good at doing 1 thing and 1 thing > only, > > generating web pages. for anything else, including command line scripts > > that run for more than 30 seconds, choos

Re: [PHP] Doctrine madness!

2011-06-18 Thread Richard Quadling
On 17 June 2011 20:19, Jim Lucas wrote: > On 6/16/2011 3:15 PM, Nathan Nobbe wrote: >> what it really amounts to is php is good at doing 1 thing and 1 thing only, >> generating web pages.  for anything else, including command line scripts >> that run for more than 30 seconds, choose an actual prog