Re: [PHP-DB] Indepth Tutorial... need help.

2002-09-03 Thread Kodrik
These should be helpful: http://zc8.net/zc8/shownews.php?articleid=93 http://zc8.net/zc8/shownews.php?articleid=95 http://zc8.net/zc8/shownews.php?articleid=98 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] mysql_fetch_array limit? - more details

2002-07-30 Thread Kodrik
I use mysql_fetch array to retrieve large text data many many times without a problem. I've actually written functions to retrieve the data for me using this function, and I never had a single problem, truncated or speed, on Unix, Linux or Windows platform. Check out the code for the

Re: [PHP-DB] A challenge

2002-07-03 Thread kodrik
On Wednesday 03 July 2002 13:27, you wrote: ... At least, I found it challenging. Hopefully someone here will find this a lot easier =) I am developing a website wherein customers can log in, enter in the name and type of their business (rather like the yellow pages.) I have a

Re: [PHP-DB] PHP in Database Fields..

2002-06-24 Thread kodrik
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1    I want to put PHP code into database fields holding HTML text, how    can I make it execute that PHP before sending to the browser?? I save the code into a file and save the url of the file into a database and then just include that file into my

[PHP-DB] Variable names

2002-04-02 Thread kodrik
If I have a variable, how do I extract the name of the variable. In principle: $varname=somefunction($myvar); The value of $varname is then myvar How do I do it? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: Variable names

2002-04-02 Thread kodrik
Kodrik wrote: If I have a variable, how do I extract the name of the variable. In principle: $varname=somefunction($myvar); The value of $varname is then myvar How do I do it? Sorry, this was meant for the general list. You an still reply though :) -- PHP Database Mailing List

Re: [PHP-DB] Is it possible ?

2002-02-16 Thread Kodrik
On Saturday 16 February 2002 07:35 pm, you wrote: Is it possible to get the AUTO-INCREMENTed ID's value while doing an INSERT and have the value INSERTed to another table in the same FORM ? Raju mysql_query(insert whatever); $insertid=mysql_last_insert(); Then you use this value for your

Re: [PHP-DB] ABC listings

2002-01-07 Thread Kodrik
On Monday 07 January 2002 04:48 am, Barry Rumsey wrote: One last question for tonight as I have been given alot of help from this group to keep me going for awhile. I would like to set up one of those A B C D E F page listings. How do i query the database to grab the first letter from each

Re: [PHP-DB] Why use MySQL with PHP

2001-11-15 Thread Kodrik
I wrote this a few month ago for the db comparaison. It's simple and you can easily add to it: http://zc8.com/zc8/ZC8news/shownews.php?articleid=571 As for PHP my reasons are: * No need to typecast which makes it easier to code. * You can have multi-dimensional multi-cast arrays which in many

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

2001-11-09 Thread Kodrik
I'd also be interested in what people are charging as I'm thinking of setting up as a contractor myself and it would be nice to have a 'ball park' figure of what the going rate is ... A lot depends on what you've done and the image your customer has of the value of what you are doing. Many

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 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] 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