[PHP-DB] WML vs PHP and MYSQL

2001-04-25 Thread Kelvin
ml\";>\n\n"); ?> ------- Best Regards, Kelvin. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: [PHP-DB] Re: [PHP] How can this be done?

2001-04-27 Thread Kelvin
HI, assign another para. and set it up like this $somepara. = addslashes($line); than "insert into trivia(trivia) values ('$line'); that will work Kelvin. "Jack Dempsey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E

Re: [PHP-DB] Really embarassing newbie question...

2001-04-27 Thread Kelvin
Hi, Use this: $query="describe TableName"; $result=mysql_query($query) or die (mysql_error()); This is one good way to prevent update or delete or mass up the table without known. Kelvin. ""~BD~"" <[EMAIL PROTECTED]> wrote in message 02a601c

Re: [PHP-DB] I'm using mysql. How can i resolv this error?.

2001-04-27 Thread Kelvin
Hi Sample, $link = mysql_pconnect("localhost","login","pass") or die(mysql_error); if ($link && mysql_select_db("DBname")) { return($link) } Than.your Query here. Kelvin. ""hansol"" <[EMAIL PROTECTED]

Re: [PHP-DB] Include File Syntax

2001-04-27 Thread Kelvin
Hi, This is a small example to connect the Database. and save as "dedb.inc" And Then, in your php. file Before you start any statement or query. put this on first. OK... Kelvin. ""James McLaughlin"" <[EMAIL PROTECTED]> wrote in message 000801c0c

Re: [PHP-DB] file and mail

2001-04-27 Thread Kelvin
Hi Kancha, Try this one. $to=trim($staff[$x]); Kelvin. "kancha" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi all > > I have a text file with email addresses. Each line contains one email > address. I rea

[PHP-DB] mp3 upload????

2001-05-03 Thread Kelvin
help. I will be very appreciate. Best regards, Kelvin. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP-DB] Checking abuses

2001-05-11 Thread Kelvin
Hi Vipin, Don't want to explain to much , I have my code here , you can look at it and put it into your coding. P.S don't worry, the code is working fine. --- Post Board ---

[PHP-DB] Re: What does these error message mean?

2001-07-05 Thread Kelvin
t variable, but it won't close the link for U. Kelvin. "jong jong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I got the error messages with your help. Unfortunatly, > I didn't see any problem in these message

[PHP-DB] Re: Dbase function problem AGAIN !!!

2001-07-05 Thread Kelvin
Hi there, When u retrieve the data, did u specific the starting point. 0 or 1, because PHP is start from 0 bit. Kelvin. "Bartek Pawlik" <[EMAIL PROTECTED]> wrote in message 005401c0ffcd$848d3880$539f4dd5@administrator">news:005401c0ffcd$848d3880$539f4dd5

[PHP-DB] Re: setting cookies so the cookie will expire when the user's session ends.

2001-07-05 Thread Kelvin
Hi Ken, Do not specific the time in your cookie. ex: setcookie("usercookie","$username"); once the user close the session, it will terminate the cookie. Kelvin. "Ken Sommers" <[EMAIL PROTECTED]> wrote in message 001701c1056d

[PHP-DB] How to show table???

2001-08-24 Thread kelvin
Hi there, I just wonder how to list all the table when using PHP script. I know how to call when I in linux system. (show table) or (mysqlshow db_name) But don't know how to do it in PHP Please Help... Many Thanks. kelvin. -- PHP Database Mailing List (http://www.ph

[PHP-DB] I need help Please....

2001-09-12 Thread kelvin
is my code. -- Below Thanks. Kelvin. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-DB] Need Help on Chat Program!!!!!

2001-11-08 Thread kelvin
all. Oh, Please I'm not really good at PHP, so,please give me more details on it. Thanks. so much. Regards, Kelvin. Main window --index.html (break down into two frame. topframe for chat box, bottonframe for input message) Bottonframe PHP will sav

[PHP-DB] Need Help on subtract Time

2001-11-14 Thread kelvin
select * from tablename where time < date("H:i:s",(time()-720))"; Please help!!! Thanks. Kelvin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-DB] How to insert to DB from txt??? Please help

2002-01-04 Thread Kelvin
ot;,"somethingelse") Could someone help me out here, How to write the code? I know how to read from a txt file, but I don't know how to separate the data determine by "," Please help, I'll be very appreciate.Thanks Kelvin. -- PHP Database Mailing List (http:/

[PHP-DB] Re: Big Problem...Need Help Quick

2002-01-03 Thread Kelvin Yip
SomeOne Please Help Thanks. Kelvin. "Kelvn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have deleted the DB by mistake. Please I don't know how to write the > rollback statement. > > I need comple

[PHP-DB] Simple PHP Script

2003-02-13 Thread Poon, Kelvin (Infomart)
input box at the bottom of it and the button below and the process continue. I tried running it and inputted some text and pressed the button, and the Hello [ur name] didn't show up, it just display an input box and the submit button. Can someone please help me? Thanks a lot Kelvin --

RE: [PHP-DB] Simple PHP Script

2003-02-13 Thread Poon, Kelvin (Infomart)
mpty($_SERVER)) extract($_SERVER); if (!empty($_GET)) { extract($_GET); } else if (!empty($HTTP_GET_VARS)) { extract($HTTP_GET_VARS); } if (!empty($_POST)) { extract($_POST); } else if (!empty($HTTP_POST_VARS)) { extract($HTTP_POST_VARS); } <>< Ryan -Original Message

[PHP-DB] PERL/PHP, MSSQL, Unix AIX

2003-03-07 Thread Poon, Kelvin (Infomart)
ve an ideas? IS there anything in PHP I can use to do this? Any help is appreicated, thanks! Kelvin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Addslashes (MSSQL)

2003-03-20 Thread Poon, Kelvin (Infomart)
Hi, I have a problem that lets you add a record to a database. THere is a problem with it, and the following is the area of the program where it has problem. $created_date = date('m, d, Y'); $title = strip_tags($title); $keywords = strip_tags($keywords); $c

RE: [PHP-DB] Addslashes (MSSQL)

2003-03-20 Thread Poon, Kelvin (Infomart)
lmes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 11:06 AM To: Poon, Kelvin (Infomart); [EMAIL PROTECTED] Subject: Re: [PHP-DB] Addslashes (MSSQL) > where my $content value is osmethign like this. > > "Step 1: Access the homepage > Step 2: type in your username under

[PHP-DB] MSSQL/PHP problem

2003-03-31 Thread Poon, Kelvin (Infomart)
o it should exceed the limit, but I just don't know why it takes only 6 lines of the total 11 lines of what I had in the mssql table. Please advise! THANKS! Kelvin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] MSSQL/PHP problem

2003-03-31 Thread Poon, Kelvin (Infomart)
nt of space even though the actual text is small? Second question, I notice when I switch it to text, the length becomes "16" and I can not change it. So how much text can the column contain then? Or what is the limit or maximum number of words/letters I can fit into this column? Thank