Re: [PHP] how to resort results of a query

2002-07-05 Thread Matthew K. Gold
to go about it. Thanks in advance. best, Matt - Original Message - From: Chris Hewitt [EMAIL PROTECTED] To: Matthew K. Gold [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, July 05, 2002 7:34 AM Subject: Re: [PHP] how to resort results of a query Matthew, Its a new query unless

[PHP] how to resort results of a query

2002-07-05 Thread Matthew K. Gold
Hi, How can I set things up so that a user can resort the results of a query? Also, how can I make certain columns into links? I'm making a site that will list college courses. When users decide to browse listings by discipline, or college, I'd like the titles of the courses to be links to

Re: [PHP] Re: Development Tools

2002-07-10 Thread Matthew K. Gold
The difference between Dreamweaver and Homesite is that Homesite is easier to customize, and it doesn't mess with your code the way that Dreamweaver does. If you're happy with Dreamweaver, you should stick with it. But if you want more control over your code, you should consider switching. Of

[PHP] is_null question

2002-07-12 Thread Matthew K. Gold
Hi Everyone, Here's my problem: I'd like to make the printing of some text dependent on whether or not a variable is null. In the following example, when $row[1] is null, what gets printed on the page is Email: . I'd like the script to not print Email: if row[1] is null. It looks like I

Re: [PHP] How come this will echo No or nothing?

2002-07-14 Thread Matthew K. Gold
this is from the O'Reilly _Programming PHP_ (Rasmus Lerdorf Kevin Tatroe): Because echo is not a true function, you can't use it as part of a larger expression: // parse error if (echo(test)) { echo(it worked!; } Such errors are easily remedied, though, by using the print() or printf()

[PHP] Re: arrays, variables, and register_globals--solved--thank you

2002-07-25 Thread Matthew K. Gold
Thank you very much, David--you understood the problem exactly and your solution worked perfectly! I'd like to add a comment about mysql_data_seek to the php manual entry on mysql_fetch_row, because I would think that this might be a common problem... Matt - Original Message - From:

Re: [PHP] sessions

2002-07-26 Thread Matthew K. Gold
re php info: put this into a file, put it on your server, and call up the page in a browser: ?php phpinfo(); ? it will show the settings for php on your server. As Jim suggested below, you should check the register_globals setting. If register_globals is on, you'll need to use the _Get

[PHP] what is http://127.0.0.1?

2002-07-27 Thread Matthew K. Gold
ever since I put up a personal firewall, when I start MySQL I''ve been getting alerts that MySQL is trying to access this ip address when I start it... what, exactly, is it, and is there any reason why MySQL would need to access the internet if I have apache on my own machine? thanks, Matt

[PHP] frustrating problem

2003-01-06 Thread Matthew K. Gold
I hope that I can explain this problem in a logical and clear way. In MySQL, I have two tables for information:: foo, which contains FooID, FooLName, FooFName and foocontact, which contains FooID, FooContactID, FooEmail, FooPhone, FooAddress1, etc. Honestly, I can't remember why I split up