Re: [PHP-DB] MySQL Query not working via PHP

2003-10-17 Thread Matthew Moldvan, Jr.
I would say try single quotes instead of double quotes ... let me know if that works ... Regards, Matt. - Original Message - From: "Sean Smitz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 17, 2003 4:32 PM Subject: [PHP-DB] MySQL Query not working via PHP > I have

Re: [PHP-DB] CONGRATULATIONS You Win

2003-10-10 Thread Matthew Moldvan
your claims agent > as soon as possible. > Congratulations again from all our staff and thank > you for being part of our promotions program. > > Sincerely, > Clark Wood > THE PROMOTIONS MANAGER, SUNSWEETWIN PROMO LOTTERY,THE > NETHERLANDS. > NB. Any breach of confidentia

RE: [PHP-DB] % operator

2003-08-14 Thread Matthew Moldvan
There's probably a better way to do this, but to retrieve only the 0.8 from 24/5 try this: ($a/$b)-floor($a/$b) Regards, Matt. -Original Message- From: Alain Barthélemy [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 5:05 AM To: php-db Subject: [PHP-DB] % operator Hello, If y

RE: [PHP-DB] % operator

2003-08-14 Thread Matthew Moldvan
Well, it looks like your previous response was correct, but $a%$b in this case returns 4, not the 0.8 as intended ... fmod($a, $b) (I have php 4.1.2, so I can't test fmod()) will probably return 0.8 though. As a side note, this message seems a little off-topic ... though it is PHP, it has nothing

RE: [PHP-DB] silly problem

2003-07-22 Thread Matthew Moldvan
Because you forgot a $ before $sql in the second? Regards, Matthew Moldvan System Administrator Trilogy International, Inc. -Original Message- From: Patrik Fomin [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 4:41 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] silly problem

RE: [PHP-DB] Very confused with query

2003-07-07 Thread Matthew Moldvan
rude, but I recommend picking up a good book on database theory. :) Regards, Matthew Moldvan System Administrator Trilogy International, Inc. -Original Message- From: Sparky Kopetzky [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 12:20 PM To: PHP DB Group Subject: [PHP-DB]

RE: [PHP-DB] Testing code

2003-07-02 Thread Matthew Moldvan
Yes, but it can be complicated ... you have to install MySQL (www.mysql.com) and PHP (www.php.net) and web server software, such as Apache (www.apache.org). I recently setup a test server on Windows XP with little trouble ... Good luck! Regards, Matthew Moldvan System Administrator Trilogy

RE: [PHP-DB] T_String?

2003-06-11 Thread Matthew Moldvan
The function mysql_query() expects a string, so you have to put "select ..." in quote for it to be considered one string, instead of 4. Have fun, Matt. -Original Message- From: Jorge L. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 10:26 PM To: [EMAIL PROTECTED] Subject: [PHP-DB]

RE: [PHP-DB] Help Please!! Oracle/PHP connection

2003-06-10 Thread Matthew Moldvan
Have you tried the built in Oracle functions in PHP? http://us3.php.net/oracle oracle_logon() may be useful here ... Let me know if it works out for you. Regards, Matt. -Original Message- From: Y Al Hinai [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 8:03 PM To: [EMAIL PROTECT

RE: [PHP-DB] Is this query even possible?

2003-06-10 Thread Matthew Moldvan
gt; SET emailfwd='$emailfwd', > > mformat='$mformat', > > filter_code='$filter_code'"; I mean, the line breaks in the second example won't cause the query to bomb, will they? I agree

RE: [PHP-DB] Is this query even possible?

2003-06-10 Thread Matthew Moldvan
$sql .= "filter_code='$filter_code'"; if($FUNC=='USERPOST') $sql .= ", unote='$unote'"; $sql .= "WHERE user_id='$user_id'"; $result = mysql_query($sql) or die('mysql error #'.mysq

RE: [PHP-DB] forms with php/mysql

2003-06-09 Thread Matthew Moldvan
FYI, you should keep your connection.txt as connection.php so we can't all read the database password and host and put what we want in it. :) Regards, Matt. -Original Message- From: Philippe Rousselot [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 4:18 PM To: [EMAIL PROTECTED] Su

RE: [PHP-DB] Double Trouble!

2003-05-27 Thread Matthew Moldvan
That makes sense ... guess I shouldn't respond to questions so late at night and with any bit of alcohol. :P S.: did you find a workaround? Regards, Matt. x116 -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 2:47 AM To: Matthew Moldvan

RE: [PHP-DB] Re: Does Php support Flash files ?

2003-03-19 Thread Matthew Moldvan
I am assuming English isn't your first language. Yes, fuck is definitely swearing, cursing, or whatever else you would like to call it. And yes, it is considered rude in our culture. :D So there. :) Matthew Moldvan. System Administrator Trilogy International, Inc. http://www.trilogyint

RE: [PHP-DB] Re: Real Killer App!

2003-03-12 Thread Matthew Moldvan
w you implemented it. Thanks, Matthew Moldvan. System Administrator, Trilogy International, Inc. http://www.trilogyintl.com/ -Original Message- From: Nicholas Fitzgerald [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 7:58 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Re: Real Kille

RE: [PHP-DB] Storing browser stats

2003-03-06 Thread Matthew Moldvan
should get you started, at least. :) Good luck, and for curiosities sake let me know how the project turns out. Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecommerce

RE: [PHP-DB] php and local printing

2003-03-05 Thread Matthew Moldvan
Have you looked into the exec() function? Maybe exec("lpr something or other") may work, though I haven't tried it myself ... Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyint

RE: [PHP-DB] Re: Parse Error

2003-02-28 Thread Matthew Moldvan
Actually this is incorrect also and will only result in another parse error ... you have (), which is fine, but then {)}, which doesn't make any sense to the parser. Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc

RE: [PHP-DB] Storing Boolean Values

2003-02-14 Thread Matthew Moldvan
I would say using a 'tinyint' as either a 1 or 0 would be the same ... thats basically all a boolean TRUE or FALSE is, anyway. Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com

RE: [PHP-DB] fgets find string help please

2003-02-11 Thread Matthew Moldvan
Correct me if I'm wrong, but something like: if(($string=fgets($socket,128)) == "hello") echo 'success!'; should work. In C or C++ you would use strcmp, but luckily PHP doesn't have that drawback. Out of curiosity, what are you working on?

RE: [PHP-DB] MySQL Error

2003-01-29 Thread Matthew Moldvan
I would guess something is wrong with the services that are running on your machine, maybe MySQL isn't on the same machine as your PHP? ... Also, are you running this on a Windows machine or UNIX? Matt. -Original Message- From: JordanW [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27,

RE: [PHP-DB] simple mail attachment with php?

2003-01-27 Thread Matthew Moldvan
Did you forget to attach the class? Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc Work: (313) 593-7993 x 116 Cell: (734) 658-0997 http://www.trilogyintl.com/ecommerce

RE: [PHP-DB] How to copy databases?

2003-01-10 Thread Matthew Moldvan
Choose the database from the list on the left, then do a dump of the database by selecting "Structure and Data". Then, create the new database and use the INSERT that was generated by your dump. Regards, Matthew Moldvan --- System Administrato

RE: [PHP-DB] QUERY question (group by) - please help

2003-01-10 Thread Matthew Moldvan
Well, I just assumed he was using PHP since this is a PHP list ... :) Otherwise, he'd have to use SELECT count() FROM ... Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecom

RE: [PHP-DB] QUERY question (group by) - please help

2003-01-10 Thread Matthew Moldvan
Try mysql_num_rows() ... http://www.php.net/manual/en/function.mysql-num-rows.php for the documentation. Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecommerce

RE: [PHP-DB] Examine button

2003-01-10 Thread Matthew Moldvan
Oh I see ... you need to use the http://www.trilogyintl.com/ecommerce/ --- -Original Message- From: Sabina Alejandr Schneider [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 11:54 AM To: Matthew Moldvan Subject: Re: [PHP-DB] Examine button

RE: [PHP-DB] Stumped...

2003-01-10 Thread Matthew Moldvan
Out of curiosity, what was the solution? It's always good to learn from someone else's mistakes ... :) Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com

RE: [PHP-DB] which DBMS... MySQL or PostgreSQL

2003-01-10 Thread Matthew Moldvan
Why not direct your energy to an existing project? No sense in reinventing the wheel ... http://phprpg.org/. BTW, they are using MySQL, and it is open source. Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http

RE: [PHP-DB] Authenticating through a php script

2003-01-10 Thread Matthew Moldvan
authentication). Now, if PHP can connect to the types of databases your system would need to use is a different story ... you would probably have to ask the vendor about that. Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http

RE: [PHP-DB] Design suggestions - performance improvement

2003-01-10 Thread Matthew Moldvan
What does your SQL look like? I would say make sure you use UNIQUE if that doesn't mess up your implementation ... also, some code snippets would help if you need assistance. Regards, Matthew Moldvan --- System Administrator Trilogy International

RE: [PHP-DB] Examine button

2003-01-10 Thread Matthew Moldvan
Sounds like maybe he/she wants to print a directory listing and save it in a database ... ? As good of a guess as I could figure ... =P Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecommerce

RE: [PHP-DB] Retreive email address from MySQL DB

2003-01-08 Thread Matthew Moldvan
;, echoing RESULT[x]. hope this helps. Matthew Moldvan. System Administrator, Trilogy International. > -Original Message- > From: Info@Best-IT [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 07, 2003 11:34 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Retreive em

RE: [PHP-DB] Re: Is MySQL available from my host.

2003-01-06 Thread Matthew Moldvan
Basically all it does is start the Apache server and allow it to interface with MySQL through configured parameters. Like I said, I haven't played with it too much, because my web host does support PHP and MySQL, but when I recently had a lapse in internet service, I tinkered with it a

RE: [PHP-DB] Users on line

2003-01-03 Thread Matthew Moldvan
Don't mean to nitpick, but from what I read onUnload works both when navigating away and when closing ... :) Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecom

RE: [PHP-DB] Re: Is MySQL available from my host.

2003-01-03 Thread Matthew Moldvan
for a very reasonable price ... Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecommerce/ --- -Original Message- From: Hutchins, Richard [mailto:[EMAIL

RE: [PHP-DB] Re: select date YYYY-MM mysql help

2003-01-03 Thread Matthew Moldvan
I guess for consistencies sake you can use SELECT * FROM table WHERE date LIKE '2003-01%' also ... just a thought. :-) Anyway, glad to help out. Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilo

RE: [PHP-DB] Re: select date YYYY-MM mysql help

2003-01-03 Thread Matthew Moldvan
Which solution did you end up using? Just curious, I wasn't sure if mine was correct ... Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecom

RE: [PHP-DB] Users on line

2003-01-03 Thread Matthew Moldvan
I think the easiest way to do this would be to use the JavaScript "onClose();" to load the PHP logout page ... that works whether they simply leave the page or whether they close the browser also. Regards, Matthew Moldvan --- System Administrato

RE: [PHP-DB] select date YYYY-MM mysql help

2003-01-02 Thread Matthew Moldvan
Sounds more like an SQL question than PHP, but try the following: SELECT * FROM table WHERE date LIKE '2002-12%'; Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com

RE: [PHP-DB] How to Make a Pop Up Window and show there a mysql table for help input data?

2002-12-30 Thread Matthew Moldvan
I would say generate the product id you want to show in your new window, then for your "?" link, or whatever it may be, include that in the parameters passed in the URL (aka http://www.trilogyintl.com/ecommerce/ --- -Original Message- From: José Luis [ma

RE: [PHP-DB] Searching DB and Printing Results

2002-12-30 Thread Matthew Moldvan
Your company does PHP development, and you don't know how? Hmm ... I would say pick up a PHP book from Half.com or invest in hiring a good Script Programmer/Database Developer for your project (me, hehe). Regards, Matthew Moldvan --- System Administ

RE: [PHP-DB] Theory help needed

2002-12-20 Thread Matthew Moldvan
I would recommend phpBB ... very useful and best of all, FREE! :) http://www.phpBB.com -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 12:02 PM To: Chris Payne; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Theory help needed why not use one of

RE: [PHP-DB] Newbie PHP/MySQL question

2002-12-20 Thread Matthew Moldvan
lol ... sorry but that was just funny :-D Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecommerce/ --- -Original Message- From: Jason Wong [mailto

RE: [PHP-DB] random rows...what about tables

2002-12-18 Thread Matthew Moldvan
, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecommerce/ --- -Original Message- From: Hutchins, Richard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 9

RE: [PHP-DB] pictures into MySQL

2002-12-18 Thread Matthew Moldvan
I'm not completely sure of the implementation details, but look into the BLOB data type. http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#BLO B Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc