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 functions

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

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

[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 st

[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

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 y

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 fro

Re: [PHP-DB] Execution of non-PHP code from within PHP

2001-11-26 Thread Kodrik
Yes, you can make an exec call. This is how I made the pipe to Zork at http://phpzork.com On Sunday 25 November 2001 03:50 pm, Matthew Tedder wrote: > Using PHP, how can I spawn a process and execute non-PHP code > off the console? > > --Matthew -- PHP Database Mailing List (http://www.php.net/

Re: [PHP-DB] [newbie] passing variables

2001-11-19 Thread Kodrik
you have You have twice "action" and are missing the "method". In your case, I guess it would be "get". I didn't read on, so you might have more errors. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

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 ca

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.

Re: [PHP-DB] Session Broken

2001-11-08 Thread Kodrik
> >1: Rid any whitespace between ' >2: You need to populate the variable you wish to use as a session > >variable before registering it I don't agree with that either >> Without even going to another page, the $PHPSESSID and >> $UserName variables are both empty. They are also empty on subsequ

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 heav

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 ("&", "&", $copy); look like this instead? So it matches the other lines that have a symbol replaced by HTML?? $copy=eregi_

[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 ("%", "%", $copy); $copy=eregi_replace ("<", "<", $copy); $copy=eregi_replace (">", ">", $copy); $copy=eregi_r

Re: [PHP-DB] PHP and MySQL queries...

2001-10-24 Thread Kodrik
Why don't you let them enter it however they want in the form mm-dd- mm/dd/yy then in the php script that processes it, convert it with regulat expressions to a timstamp and enter it in your database as an int. That's how I do it. I don't understand the point in using the mysql timedate fiel