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

2001-11-08 Thread kelvin
Hi everyone, I have designed a chat program which used a refresh function to update the chat list every 10 second. But How can I perdict the flicker screen, or Can anyone tell me how to re-write the program so everytime people send message to the chat box, the chat box will not flicker at

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

2001-11-08 Thread Kodrik
What I do is have an invisible frame that checks the timestamp of the last update to the chat against your last refresh timstamp. If it's superior, I refresh the chat list. I actually make this check without a call to the database, if you have 100+ chatters, check calls to the db can become

Re: [PHP-DB] Session Broken

2001-11-08 Thread Paul DuBois
At 9:25 AM + 11/8/01, Russ Michell wrote: 1: Rid any whitespace between '?php' and 'session_start()' 2: You need to populate the variable you wish to use as a session variable before registering it Is 2 actually true? The sessions chapter in the PHP manual doesn't seem to specify any order

[PHP-DB] Looking for a JavaScript routine built by PHP and populated from MySQL

2001-11-08 Thread Doug Daulton
Hello, I need to build a chunk of code which creates a click through view of all pictures in a given directory. The URL for each image is stored in a MySQL table as part of the image upload routine. I am thinking there would be PHP routine that says something like ... 1. (PHP) - For every

Re: [PHP-DB] Looking for a JavaScript routine built by PHP and populated from MySQL

2001-11-08 Thread Dan Brunner
Hello!! So you have a page that show pics and you want to have something that show the next and back url...right??? Dan On Thursday, November 8, 2001, at 04:23 PM, Doug Daulton wrote: Hello, I need to build a chunk of code which creates a click through view of all pictures in a given

[PHP-DB] Oracle, PHP4, BSD

2001-11-08 Thread D. Witten
These are pretty basic questions, but I would appreciate help: I need to access Oracle (already running on a separate server) via PHP4 from a FreeBSD Server. 1) Can this be done? (if so...) 2) Where do I find instructions? 3) Where do I get php_oci8 4) Do I HAVE to install code from Oracle (the

Re: [PHP-DB] Session Broken

2001-11-08 Thread Kodrik
1: Rid any whitespace between '?php' and 'session_start()' That makes no difference as long as you are not producing any output. You can have spaces and code withing the php brackets, just not echo anything. But don't have any spaces prior to ?php since it will be echoing a character. The

[PHP-DB] Not a valid MySQL result resource

2001-11-08 Thread MPropre
?php //.../... first part of the code is to connect to the right DB on a MySQL server. It works fine //This code to show the query. It runs well under MySQL and gives 1 result : $query=SELECT Login, Password FROM `user` WHERE user.login=''$login'' and user.password=''$password''; //This var

Re: [PHP-DB] Not a valid MySQL result resource

2001-11-08 Thread Paul DuBois
At 2:04 AM +0100 11/9/01, MPropre wrote: ?php //.../... first part of the code is to connect to the right DB on a MySQL server. It works fine //This code to show the query. It runs well under MySQL and gives 1 result : $query=SELECT Login, Password FROM `user` WHERE user.login=''$login'' and

[PHP-DB] what's a GOOD starting HOURLY rate for a PHP/MYSQL job?

2001-11-08 Thread leo g. divinagracia iii
okay, you consultants... i'm gonna venture at work to do some side jobs here for some online dynamic web pages. but what would be a good starting pay rate? or would you contract for the entire job? what about a per PAGE/SCRIPT basis? thanks... -- Leo G. Divinagracia III [EMAIL PROTECTED]

Re: [PHP-DB] Not a valid MySQL result resource

2001-11-08 Thread DL Neil
?php //.../... first part of the code is to connect to the right DB on a MySQL server. It works fine //This code to show the query. It runs well under MySQL and gives 1 result : $query=SELECT Login, Password FROM `user` WHERE user.login=''$login'' and user.password=''$password''; //This

RE: [PHP-DB] Create new directory-wenni

2001-11-08 Thread WNLeong
Dear Russ, Thank a lot. Your tips do help me. This is the answers I get through my research: $oldumask = umask(0); if(mkdir(path, 0777)) {echo New directory created!!;} else {echo Couldn't create directory;} umask($oldumask); Thank a lot. regards, Wenni -- PHP Database Mailing

Re: [PHP-DB] Not a valid MySQL result resource

2001-11-08 Thread Miles Thompson
I'd check for mysql_num_rows( $result_query) 0 as well. It's entirely possible the user mis-typed the login or password values. Miles At 07:26 PM 11/8/01 -0600, Paul DuBois wrote: At 2:04 AM +0100 11/9/01, MPropre wrote: ?php //.../... first part of the code is to connect to the right DB on a

[PHP-DB] inserting array into mySQL

2001-11-08 Thread Timothy Potter
I have an array coming from a form that I need to insert into mySQL. example: name[], phone[], address[] Please help? -- 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

[PHP-DB] php, oracle and ascii characters

2001-11-08 Thread Dan Christie
We are creating a content management system for a web site. In this app,I am filling the contents of an html text area with the contents of a field in an oracle database. This is our dynamic content for the site.The text area allows the user to update its contents. For the time being, any

[PHP-DB] Newbie Question

2001-11-08 Thread Jay Fitzgerald
Ok, I am still fairly new at PHP and MySQL also, so please bear with me. TASK: I have a client that wants to have job openings listed on their site and they want to be able to add, edit and delete the postings themselves. I would do this in flat-file format but there is the risk of that file

[PHP-DB] RE: [PHP] Newbie Question

2001-11-08 Thread Oosten, Sjoerd van
use nl2br! http://www.php.net/manual/en/function.nl2br.php Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 757

Re: [PHP-DB] Newbie Question

2001-11-08 Thread Russ Michell
Yes there is: Using a php function called: nl2br() When the data is called from the db and printed to the page use $textdata = nl2br($textdata) This will preserve the enter button being pressed. Regards: Russ On Thu, 08 Nov 2001 09:54:16 -0600 Jay Fitzgerald [EMAIL PROTECTED] wrote: Ok, I

[PHP-DB] Re: Newbie Question

2001-11-08 Thread Kodrik
I wrote this cleanup function: function cleanup($copy) { $copy=trim($copy); $copy=htmlspecialchars($copy, ENT_QUOTES); $copy=eregi_replace (%, #37;, $copy); $copy=eregi_replace (, lt;, $copy); $copy=eregi_replace (, gt;, $copy); $copy=eregi_replace

Re: [PHP-DB] Newbie Question

2001-11-08 Thread Kodrik
Hi Kodrik: I just looked at your function and would like to use it myself, but shouldn't the ampersand line: $copy=eregi_replace (amp;, , $copy); look like this instead? So it matches the other lines that have a symbol replaced by HTML?? $copy=eregi_replace (, amp;, $copy); Cheers. Russ No,

Re: [PHP-DB] RE: [PHP] Newbie Question

2001-11-08 Thread Jay Fitzgerald
Ok.I have it working half-way now.here is what I have so far: === PHP FORM (add_jobs.php - submits to the script below): FORM METHOD=post ACTION=do_addjobs.php TEXTAREA NAME=duties COLS=30 ROWS=10 WRAP=virtual/TEXTAREA INPUT TYPE=submit VALUE=Add Job /FORM

Re: [PHP-DB] RE: [PHP] Newbie Question

2001-11-08 Thread Bill Adams
Jay Fitzgerald wrote: displays fine now -- thanks for that help so far -- but the problem now (this may be normal, but I am not sure) is when I connect to the db and select * from jobs; the db is writing the entries like this: === mysql select * from jobs;