Re: [PHP] Table help needed
On 20-10-2012 21:52, admin wrote: Chris, Let me first apologize for a couple syntax errors I had in the real quick explanation. I answered your question in relationship to your knowledge of the subject based on the question it's self. I want to apologize for the comments that followed my reply, seems some people can't make constructive comments if their life depended on it. While the more complex version in PDO is the preferred method to obtain objects from mysql. This does require you to have the basic fundamentals of object oriented programming skills, which I am guessing at this point you do not have based on how the question was phrased. There are many people in the list who will gladly point you in the direction to learning aids and tutorials to get you started. Good Luck :) Hi "admin" (whoever you are), from your message I guess you are reacting to my reply. I dislike that you say that I "can't make constructive comments if their [my] life depended on it" based on a single post. In my defense, I first of all wasn't talking to the OP directly, but rather adding to a remark by Tamara (tamouse). This remark contained the exact steps that the OP should have followed to actually get anywhere (though not at all in detail, I must admit). Whereas with the steps you provided: "just use this code", the OP will 'use' it and not learn a damned thing. Anyway, what I wanted to say is: please don't be overly critical about the reactions you see when people respond to questions which show an obvious lack of trying (where a simple google search would answer the question). And if you do want to be that critical, do it on a personal level. In other words: contact me personally, not hidden inside a message which has nothing to do with it. - Tul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Table help needed
> -Original Message- > From: tamouse mailing lists [mailto:tamouse.li...@gmail.com] > Sent: Saturday, October 20, 2012 1:53 AM > To: admin > Cc: Chris Payne; php-general@lists.php.net > Subject: Re: [PHP] Table help needed > > On Fri, Oct 19, 2012 at 6:09 PM, admin > wrote: > >> -Original Message- > >> From: Chris Payne [mailto:oxygene...@gmail.com] > >> Sent: Friday, October 19, 2012 7:01 PM > >> To: > >> Subject: [PHP] Table help needed > >> > >> Hi everyone, > >> > >> So i'm stuck, and I admit it. I have to (QUICKLY) display > >> information from a database, easy. But the formatting they want is > >> in a HTML table, 3 columns at a time and unlimited rows - how can I > >> display 3 columns across at a time? Please help, it's a last minute > thing !!! > >> > >> Chris > > > > > > $query = "SELECT * TABLE"; > > $result = mysql_query($query); > > If(mysql_num_rows($result) >= 1) > > { > > Echo ""; > > While($row = mysql_fetch_assoc($result)) > > { > > Echo > > > "".$row[field1]."".$row[field2]."".$row[fiel > > d3]."< > > /TD> > > } > > Echo ""; > > } > > Surprised no one else has jumped on the "Don't use mysql anymore" thing > here. > > Quick and dirty PDO implementation: https://gist.github.com/3922192 Chris, Let me first apologize for a couple syntax errors I had in the real quick explanation. I answered your question in relationship to your knowledge of the subject based on the question it's self. I want to apologize for the comments that followed my reply, seems some people can't make constructive comments if their life depended on it. While the more complex version in PDO is the preferred method to obtain objects from mysql. This does require you to have the basic fundamentals of object oriented programming skills, which I am guessing at this point you do not have based on how the question was phrased. There are many people in the list who will gladly point you in the direction to learning aids and tutorials to get you started. Good Luck :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Table help needed
On 10/20/2012 8:26 AM, Maciek Sokolewicz wrote: On 20-10-2012 07:52, tamouse mailing lists wrote: Surprised no one else has jumped on the "Don't use mysql anymore" thing here. Quick and dirty PDO implementation: https://gist.github.com/3922192 I'm actually more surprised that the OP hasn't even bothered to check the standard HTML syntax for and find out himself. If you don't know how to make a table with 3 columns, that indicates you have no clue how to make an HTML table in the first place. So my advice to the OP: go learn some HTML first, before acting as-if you were a PHP expert. - Tul exactly! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Table help needed
On 20-10-2012 07:52, tamouse mailing lists wrote: Surprised no one else has jumped on the "Don't use mysql anymore" thing here. Quick and dirty PDO implementation: https://gist.github.com/3922192 I'm actually more surprised that the OP hasn't even bothered to check the standard HTML syntax for and find out himself. If you don't know how to make a table with 3 columns, that indicates you have no clue how to make an HTML table in the first place. So my advice to the OP: go learn some HTML first, before acting as-if you were a PHP expert. - Tul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Table help needed
On Fri, Oct 19, 2012 at 6:09 PM, admin wrote: >> -Original Message- >> From: Chris Payne [mailto:oxygene...@gmail.com] >> Sent: Friday, October 19, 2012 7:01 PM >> To: >> Subject: [PHP] Table help needed >> >> Hi everyone, >> >> So i'm stuck, and I admit it. I have to (QUICKLY) display information >> from a database, easy. But the formatting they want is in a HTML >> table, 3 columns at a time and unlimited rows - how can I display 3 >> columns across at a time? Please help, it's a last minute thing !!! >> >> Chris > > > $query = "SELECT * TABLE"; > $result = mysql_query($query); > If(mysql_num_rows($result) >= 1) > { > Echo ""; > While($row = mysql_fetch_assoc($result)) > { > Echo > "".$row[field1]."".$row[field2]."".$row[field3]."< > /TD> > } > Echo ""; > } Surprised no one else has jumped on the "Don't use mysql anymore" thing here. Quick and dirty PDO implementation: https://gist.github.com/3922192 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Table help needed
> -Original Message- > From: Chris Payne [mailto:oxygene...@gmail.com] > Sent: Friday, October 19, 2012 7:01 PM > To: > Subject: [PHP] Table help needed > > Hi everyone, > > So i'm stuck, and I admit it. I have to (QUICKLY) display information > from a database, easy. But the formatting they want is in a HTML > table, 3 columns at a time and unlimited rows - how can I display 3 > columns across at a time? Please help, it's a last minute thing !!! > > Chris $query = "SELECT * TABLE"; $result = mysql_query($query); If(mysql_num_rows($result) >= 1) { Echo ""; While($row = mysql_fetch_assoc($result)) { Echo "".$row[field1]."".$row[field2]."".$row[field3]."< /TD> } Echo ""; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php