Re: [PHP] mysql auto increment question

2001-01-24 Thread Pavel Jartsev
David Banning wrote: > > I am working with php-mysql > and am inserting into mysql using a NULL value, > which allows mysql to auto-insert (increment) > a number - how could I find out what the value was > mysql inserted, say on the next line of code after the insert? http://www.php.net/manual/e

[PHP] mysql auto increment question

2001-01-24 Thread David Banning
I am working with php-mysql and am inserting into mysql using a NULL value, which allows mysql to auto-insert (increment) a number - how could I find out what the value was mysql inserted, say on the next line of code after the insert? -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Ideas?? (OT- MySQL)

2001-01-24 Thread Matthew Kendall
<[EMAIL PROTECTED]> wrote ... > I am creating a web site which allows users to post projects and then > others to place bids. I am setting up two tables in MySQL 'Projects' > & 'Bids' my problem is how best to cross reference. What I was > thinking of doing is creating a number of fields in the Pr

Re: [PHP] warning 1 is not mysql result index

2001-01-24 Thread [EMAIL PROTECTED]
still did not work. Keep returning the same error when I do this: $HotelName = mysql_fetch_row($resultHotel,1) or die(mysql_error()); And once again I am very sure there is data in the table. and the error keep saying that : 1 is not Mysql index. I don't see why? can anyone tell? cheers Jack [EMA

php-general Digest 25 Jan 2001 06:45:47 -0000 Issue 475

2001-01-24 Thread php-general-digest-help
php-general Digest 25 Jan 2001 06:45:47 - Issue 475 Topics (messages 36451 through 36574): -> 36451 by: Karl J. Stubsjoen 36452 by: Cal Evans 36454 by: Karl J. Stubsjoen 36458 by: Joe Stump 36459 by: Chris Lee 36460 by: Cal Evans Re: mysql_fe

RE: [PHP] How do you do this?

2001-01-24 Thread David Harrison
PHPBuilder.com has an article on this: http://www.phpbuilder.com/columns/rod2221.php3 --david > -Original Message- > From: Sefton [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 25 January 2001 4:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] How do you do this? > > > Hello, > >

[PHP] How do you do this?

2001-01-24 Thread Sefton
Hello, I am still new to PHP but so far, I am getting things sorted reasonably ok with some great from this group and other sites. I have a MySql Database, that is working great, but when my results are returned there is alot of information. How do you display say only 15 results when doing a q

Re: [PHP] warning 1 is not mysql result index

2001-01-24 Thread Christopher Allen
I want to get the result from first row (the one next from ID field) of the table using $HotelName = mysql_result($resultHotel,0,1) or die(mysql_error()); A suggestion: Why don't you use mysql_fetch_row or any other function that reaches beyond just getting 1 field? this would be easier per

RE: [PHP] Search for the documentation

2001-01-24 Thread Joe Sheble (Wizaerd)
or you download the PDF manual, and search it as well... Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com = > -Original Message- > From: Hrishi [mailto:[EMAIL PROTECTED]] > Sent: Wedne

[PHP] warning 1 is not mysql result index

2001-01-24 Thread [EMAIL PROTECTED]
I want to get the result from first row (the one next from ID field) of the table using $HotelName = mysql_result($resultHotel,0,1) or die(mysql_error()); // Note that there is data in the table for sure and I got the error back said Warning : 1 is not a Mysql result Index .. ( and point to t

Re: [PHP] Search for the documentation

2001-01-24 Thread Philip Olson
go here : http://www.php.net/tips.php it will turn your browser into a search machine. or, get the toolbar thingee from google : http://services.google.com/navclient/welcome.html it is FAR superior then the windows find thing as it highlights words. the manual everyone is talking abo

Re: [PHP] multiple function returns

2001-01-24 Thread jeremy brand
$array[0] will be the lang_pref and $array[1] will be the currency_pref. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "

[PHP] multiple function returns

2001-01-24 Thread Jamie
Can anyone help me I'm trying to read two results from a function by passing them out via an array but I'm not sure how to access them once I have done that. In the PHP manual it shows a list call which I can't seem to even find what the hell it does the code below runs without any errors but does

Re: [PHP] Search for the documentation

2001-01-24 Thread Hrishi
why dont you download the BIG one-file manual compilation from http://www.php.net and use the find t0ol in your web browser ? just my $0.02 --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have an

Re: [PHP] Search for the documentation

2001-01-24 Thread Rasmus Lerdorf
The online manual is searchable. Hence the big "Search" button. But if you don't like that and prefer a Windows-like searchable thing, well then just download that. It is listed right there on: http://www.php.net/docs.php -Rasmus On Thu, 25 Jan 2001, Jamie wrote: > I'm one of those ppl wh

[PHP] Ideas?? (OT- MySQL)

2001-01-24 Thread Website4S
Hi, I am creating a web site which allows users to post projects and then others to place bids. I am setting up two tables in MySQL 'Projects' & 'Bids' my problem is how best to cross reference. What I was thinking of doing is creating a number of fields in the Projects table... Bid1 Bid2

Re: [PHP] Search for the documentation

2001-01-24 Thread jeremy brand
The PHP manual online is searchable. If you are reading the HTML version on your local machine, doesn't your browser have "find"? Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - -

[PHP] Search for the documentation

2001-01-24 Thread Jamie
I'm one of those ppl who find it hard to sit and read documentation especially manuals like the PHP one - presented HTML with no inbuilt search functions. Being a fairly novice programmer and more of a designer I'm not even that familiar with the programming terms to figure out what sections to fi

Re: [PHP] Urgent help needed, sound scary when anyone did that on title :-)

2001-01-24 Thread [EMAIL PROTECTED]
I did try mysql_error() to see waht exactly is my problem and here hwat I really need to know. My sniplet was all correct about using last_insert_id() and the message from mysql_error(0 tells me that "no selected database". Although I did use mysql_select_db already and I am sure there is nothing

RE: [PHP] Urgent help needed, sound scary when anyone did that on title :-)

2001-01-24 Thread Maxim Maletsky
you know Jacky, there's another, less cool and less reliable way to get the last inserted id: SELECT id FROM table ORDER BY id DESC; it will sort them all giving you the biggest id *number* (not what mysql keeps) and you can keep it for as many milliseconds your script will run more... So if no

[PHP] HOWTO: Installation on Cobalt RaQ (RaQ3 or RaQ4)

2001-01-24 Thread Derek Sivers
I run about 8 Cobalt RaQ3 and RaQ4 boxes, and this is the installation procedure that always works for me. Don't use the Cobalt RPMs. They're bad & out of date. - GET THE SOURCE TARBALLS for MySQL and PHP4 from the command line: lynx h

Re: [PHP] Greek PHP mailing list

2001-01-24 Thread Brian White
>At least you're not sitting in high school calculus and actually >understanding everything on the board, but not being able to use any of it >because Texas Instruments is the only company that's figured out how to do >algebraic manipulation, and you can't exactly run a server on your >calculator

Re: [PHP] Greek PHP mailing list

2001-01-24 Thread Stephan Ahonen
> Ah, the good ol' days of sitting in college Match classes not understanding > all those letters on the chalkboard. :-) At least you're not sitting in high school calculus and actually understanding everything on the board, but not being able to use any of it because Texas Instruments is the onl

Re: [PHP] more about Last_insert_id

2001-01-24 Thread Richard Lynch
$sql1 = "insert into firsttable (firstname, lastname) values('Jack','Chan')"; $resultsql1 = mysql_query($sql1); Add ... or die(mysql_error()) to the end of that line. $sqlLastID = "select LAST_INSERT_ID() from firsttable"; $resultlast = mysql_query($sqlLastID); Add the same thing here. $FirstL

Re: [PHP] No Cookies

2001-01-24 Thread Richard Lynch
You can pass their user_id in the URL as a GET instead of hidden FORM. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: <[EMA

Re: [PHP] Greek PHP mailing list

2001-01-24 Thread Richard Lynch
> &Ggr;&egr;&igr;&agr; &sgr;&agr;&sfgr;, > > &ggr;&igr;&agr; &tgr;&ogr;&ugr;&sfgr; &egr;&ngr;&dgr;&igr;&agr;&phgr;&egr;&rgr;&oacgr;&mgr;&egr;&ngr;&ogr;&ugr;&sfgr; &dgr;&eegr;&mgr;&igr;&ogr;&ugr;&rgr;&ggr;&eeacgr;&sgr;&agr;&mgr;&egr; &mgr;&igr;&agr; &egr;&lgr;&lgr;&eegr;&ngr;&igr;&kgr;&eeacgr; > &l

Re: [PHP] Any PHP API for Meeting-Pro?

2001-01-24 Thread Richard Lynch
> I have a client uses Meeting-Pro database. Is there any API I can use with > PHP that will allow me to interact with Meeting-Pro db? If Meeting-Pro does ODBC, start looking for ODBC drivers/bridge on openlinksw.com and easyodbc.com (.org?) etc. If Meeting-Pro does not do ODBC, you probably wi

Re: [PHP] login authentication / session handling...

2001-01-24 Thread Richard Lynch
> 1. login page has username and password text boxes and a link to my https > login.php page. If you're trying to keep the username/password safe in SSL, both the receiving login.php *AND* the page with the FORM in it need to live on the secure server. > 2. after submit, login.php starts a sessi

Re: [PHP] Displaying Date correctly

2001-01-24 Thread Richard Lynch
http://mysql.org should have documentation a date_format() function or something like that somewhere in there. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

Re: [PHP] problem with imagecolorsforindex()

2001-01-24 Thread Richard Lynch
> I have this code in a php script, which takes all pixels from a PNG image > and produces a second "image" > with random numbers in HTML format this time. (an example can be found at > http://www.cyprusnews.org/sub/prog2.php). > > Instead of getting ALL shades of red from the pallette, I get onl

Re: [PHP] HELP!!! PDFLIB FOR PHP!!!!!

2001-01-24 Thread Richard Lynch
I think you can get the SDK from adobe.com Search for "fDF" I think. You may wish to specify your OS in your next plea, so people can help more. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: h

Re: [PHP] HTTP_REFERER vs. session_whatever() vs. header()

2001-01-24 Thread Richard Lynch
> //echo $test.""; > "//" . Without the remark, the code work but I get the error message > stating > > Warning: Cannot add header information - headers already sent by (output > started at test.php) in test.php on line ** Yes. A header is called a header because it come

Re: [PHP] Urgent help needed, sound scary when anyone did that on title :-)

2001-01-24 Thread [EMAIL PROTECTED]
I don't think I can use mysql_insert_id() because the ID field in the tables are all BIGINT Auto_Increment and I saw that in the manual, it said mysql_insert_id will not work corerctly with this type of data. I hope I am wrong though. But if it is as the manual said, what else could I do? Direct q

Re: [PHP] Urgent help needed, sound scary when anyone did that on title :-)

2001-01-24 Thread Joe Stump
remove the result - so just type $id = mysql_insert_id() and it should work fine. --Joe On Thu, Jan 25, 2001 at 10:21:17AM -0600, Jacky@lilst wrote: > Hi people, > I got here the syntax that is suppose to get the id from the "just inserted" record >and store it in value, did not work so far an

[PHP] Urgent help needed, sound scary when anyone did that on title :-)

2001-01-24 Thread [EMAIL PROTECTED]
Hi people, I got here the syntax that is suppose to get the id from the "just inserted" record and store it in value, did not work so far and I cannot see what is wrong in there, can anyone give me a hint what is wrong here? ( And the reason I did not use mysql_insert_id here is because the ID

[PHP] Status of debugger_on( ) (fwd)

2001-01-24 Thread [EMAIL PROTECTED]
Hello Can someone tell me the present status of debugger_on( ) function? Does it still exist? the documentation says it does! Is there someone who is really using it? Thanks in advance Tarique -- = B2B Application Providers http://www

[PHP] more about Last_insert_id

2001-01-24 Thread [EMAIL PROTECTED]
I got here the syntax that is suppose to get the id from the "just inserted" record and store it in value, did not work so far and I cannot see what is wrong in there, can anyone give me a hint what is wrong here? ( And the reason I did not use mysql_insert_id here is because the ID field at my

[PHP] No Cookies

2001-01-24 Thread Website4S
Hiya, I have a secure area on my site which users log into, once logged in all areas are linked together but I use a hidden form to authenticate, it works great but the only problem is if refreshed it makes the user log in again, just wondering if there are any other decent ways to authnticate

Re: Re: [PHP] PHP Editors

2001-01-24 Thread John R . Marshall
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I use PHPED (www.phped.com). It has some bugs but I like it. What is > important that it has online manual (F1 clicked on word you search for) EditPlus can do that if you have the manual in winhelp format. :-) -- John R. Marshall - W

[PHP] directory reading

2001-01-24 Thread Pat Hanna
I'm trying to read the contents of a directory and it's subdirectories. I use w while loop with readdir($handle) and then an if statement with filetype($file)=="dir" and that works that far. The contents of the subdirectory is listed. After that breaks out of the if statement though, the script go

Re: [PHP] --with-mysql, yet mysql_errno() is "undefined"?

2001-01-24 Thread Rasmus Lerdorf
The function is mysql_errno() not mysql_errorno() -Rasmus On Wed, 24 Jan 2001, CC Zona wrote: > I use mysql_* functions all the time, PHP was definitely compiled > --with-mysql, yet for some reason I'm getting "Fatal error: Call to > undefined function: mysql_errorno()" for this one mysql fun

[PHP] --with-mysql, yet mysql_errno() is "undefined"?

2001-01-24 Thread CC Zona
I use mysql_* functions all the time, PHP was definitely compiled --with-mysql, yet for some reason I'm getting "Fatal error: Call to undefined function: mysql_errorno()" for this one mysql function. Ex.: mysql_query($query,$connect); //echo of $query is successful at commandline, and $con

[PHP] regular expression help

2001-01-24 Thread Jamie Burns
can anyone help me figure out a regular expression to find the value of a tag element? for example: so in each of the above i need to find either "my value" or "value"... i tried this but it wont work for every situation: ereg("element[ ]*[=][ ]*[\"

[PHP] Greek PHP mailing list

2001-01-24 Thread Subbie Mitsman
Hello, for whom it may concern: We created a greek mailing list for PHP questions, discussions etc. Many people lack of fluency of the english language (including me =) so this list was a MUST. Subscribe by sending an email at: [EMAIL PROTECTED] Thanks, Demetris Glezos --

php-general@lists.php.net

2001-01-24 Thread Philip Olson
fyi, that little snippet that rasmus presented is being used incorrectly, i think you are actually wanting : if($retrn{strlen($retrn)-1} == '&') as $str was just the string which in this case seems to be $retrn . also, i think this tutorial will help you with strings : Using Strings

php-general@lists.php.net

2001-01-24 Thread James R. Butzen
try $retrn = "AASIDFIFJ&"; -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 4:17 PM To: PHP Mailing List Subject: [PHP] Finding an '&' Should this correctly find '&' or is & and special searching character? # looking for an & at

php-general@lists.php.net

2001-01-24 Thread Karl J. Stubsjoen
Should this correctly find '&' or is & and special searching character? # looking for an & at the end $retrn = AASIDFIFJ& if($str{strlen($retrn)-1}=='&') Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: [PHP] Editors, again (was Re: [PHP] Beginner in php!)

2001-01-24 Thread Brian White
That is a very useful looking link and it has gone into to my "very useful PHP links" box. I will point out that "codecharge" and "phpedit" don't appear to be on that list ... At 06:19 AM 1/24/01 -0800, Steve Edberg wrote: >At 4:40 PM +0600 1/24/01, Tshering Norbu wrote: >>Here is collection I go

Re: [PHP] how to rename a database

2001-01-24 Thread Chris Doyle
Prehaps you can rename the database file in mysql/bin ie. database_name.sql to new_database_name.sql and that will work? ___ This email may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by ot

RE: [PHP] I give - Whats wrong

2001-01-24 Thread Pickup, Jordan
Could it be the lack of $? It should be $retrn =. "$VariableName\=$VariableValue"; I do that all the time. The syntax is so close to javascript that when I'm typing I often leave out the dollar sign. Especially when I have php and javascript in the same file. On Wednesday, January 24, 2001 4:

Re: [PHP] easy question.

2001-01-24 Thread Chris Hayes
proposed IF: >> if(($fname) && ($lname) && ($email)) Alex: > if (isset($fname) && isset($lname) && isset($email)) { > echo "test"; > I believe the parens in your code don't do anything. anyway, best o' my > knowledge that's the way to do it. First IF tests whether the vars are 'true', Alex's

Re: [PHP] Cookie semi-security.

2001-01-24 Thread Alex Black
well, first off, you should md5 the cookie value or something to avoid having the value correlate directly with your system values. I like to use at least one level of "shift" in apps, to make sure that user input is never taken verbatim. -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The

Re: [PHP] I give - Whats wrong

2001-01-24 Thread Karl J. Stubsjoen
Freak'n Duhh! My eyes are still blury to PHP *obviously*. Thanks! So $QUERY_STRING eh? I'll look that one up. Karl - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> Cc: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, Ja

Re: [PHP] I give - Whats wrong

2001-01-24 Thread Chris Hayes
Karl, it's .= (read the fine manual ;-) ) > retrn =. "$VariableName\=$VariableValue"; > retrn =. "&"; Variables in PHP need a $dollarsign. Money makes the world go round Chris Send reply to: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> From: "Karl J. Stubsjoen

Re: [PHP] Turning off scrollbar

2001-01-24 Thread Alex Black
you cannot independently control the bottom scrollbar. if you want to get rid of it, find the problem in your table code, or if you layout is just too wide, make it less-wide :) I wish I could control that too, but nay. -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc

[PHP] IMAP PROBLEM

2001-01-24 Thread Jochen Kächelin
I want to set a link to download an email-attachment, but I don't know where to point the link to get the attachment - I am only able to view an attached image or text! -- ** * Jochen Kächelin* * Ihr WEBberater - Werbeagentu

Re: [PHP] easy question.

2001-01-24 Thread Alex Black
if(($fname) && ($lname) && ($email)) { echo "test"; } > > Is there an easier way to write the IF line? if (isset($fname) && isset($lname) && isset($email)) { echo "test"; } I believe the parens in your code don't do anything. anyway, best o' my knowledge that's the way to do it. "_) -a

Re: [PHP] I give - Whats wrong

2001-01-24 Thread Rasmus Lerdorf
You could of course just check $QUERY_STRING As for your error, you a missing a $ in front of retrn at the beginning of that line. -Rasmus On Wed, 24 Jan 2001, Karl J. Stubsjoen wrote: > I've tried and tried to figure out what is wrong with this function, but I > can't. Could you please have

Re: [PHP] I give - Whats wrong

2001-01-24 Thread jeremy brand
I don't think you need the \=, just the = should do. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete"

Re: [PHP] easy question.

2001-01-24 Thread Steven Deaton
the only thing I can think of, would be to eliminate the () around $fname, $lname, and $email if they all test true in the first place, the () are kinda obsolete. :) Nathan Cook wrote: > > I have always wrote code this like: > > if(($fname) && ($lname) && ($email)) > { echo "test";

Re: [PHP] easy question.

2001-01-24 Thread jeremy brand
if ($fname && $lname && $email) echo "test"; If by easier you mean typing less. ;) Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

[PHP] I give - Whats wrong

2001-01-24 Thread Karl J. Stubsjoen
I've tried and tried to figure out what is wrong with this function, but I can't. Could you please have a look. This function reconstructs the querystring values passed in the querystring: function PassOnGetVars() { global $HTTP_GET_VARS; #initialize retrn value $retrn = "?"; #loop th

[PHP] easy question.

2001-01-24 Thread Nathan Cook
I have always wrote code this like: if(($fname) && ($lname) && ($email)) { echo "test"; } Is there an easier way to write the IF line? Thank You .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer [ phone - 208.343.3110 ][ pager - 208.387.9983 ]

Re: [PHP] Look for and Trim Last Character

2001-01-24 Thread Rasmus Lerdorf
> Hello, I'd like to check for a character at the end of a string, if it > exists remove it, example: > > Looking for - Z > In string - StringZ > Result would be - String > > -or- > Looking for - Z > In string - StringZzz > Result would be - StringZzz (no change) if($str{strlen($str)-1}=='Z') $st

Re: [PHP] how do you erase quotes from variable?

2001-01-24 Thread Rasmus Lerdorf
> I have a variable(s) that hold the string: > > "name" > > and I'd like to kill the quotes so it contains: > > name $new = str_replace('"','',$old); Using a regex as others have suggested is a bad idea for something this trivial. -Rasmus -- PHP General Mailing List (http://www.php.net/) To

[PHP] Look for and Trim Last Character

2001-01-24 Thread Karl J. Stubsjoen
Hello, I'd like to check for a character at the end of a string, if it exists remove it, example: Looking for - Z In string - StringZ Result would be - String -or- Looking for - Z In string - StringZzz Result would be - StringZzz (no change) Thanks! Karl BTW: You guys are great! -- PHP Gen

[PHP] Any PHP API for Meeting-Pro?

2001-01-24 Thread James R. Butzen
Hi All, I have a client uses Meeting-Pro database. Is there any API I can use with PHP that will allow me to interact with Meeting-Pro db? Thanks in advance for any comments. James R. Butzen NEBIS Tech. Support http://www.nebis.com -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] how do you erase quotes from variable?

2001-01-24 Thread Nik Gare
In article , Michael Zornek <[EMAIL PROTECTED]> wrote: > I have a variable(s) that hold the string: > "name" > and I'd like to kill the quotes so it contains: > name $name = ereg_replace("\"","",$name); Maybe, Nik -- -- PHP General Mailing List (

RE: [PHP] how do you erase quotes from variable?

2001-01-24 Thread Boget, Chris
> I have a variable(s) that hold the string: > "name" > and I'd like to kill the quotes so it contains: > name > I am aware of the strlen() function but can find the concant $newVar = eregi_replace( "\"", "", $varWithAboveData ); Chris

[PHP] how do you erase quotes from variable?

2001-01-24 Thread Michael Zornek
I have a variable(s) that hold the string: "name" and I'd like to kill the quotes so it contains: name I am aware of the strlen() function but can find the concant Little Help? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: [PHP] Date/Time from Unix timestamp

2001-01-24 Thread Hardy Merrill
CDitty [[EMAIL PROTECTED]] wrote: > Ok, I have looked at all my sources, including the manual and I cannot find > any method of converting the Unix timestamp to a displayable date/time. I > have probably just overlooked it each time, but all I can find are methods > to convert the current dat

Re: [PHP] Processing PHP within a string variable

2001-01-24 Thread Matt
Haha, well I apologize for not seeing this earlier when I was hunting through the documentation. Silly me. Thanks a bunch! At 04:02 PM 1/24/2001 , you wrote: >So sprach Matt am Wed, Jan 24, 2001 at 03:56:37PM -0600: > > string is a mixture of PHP code and HTML. I want to be able to output the

Re: [PHP] Turning off scrollbar

2001-01-24 Thread Chris Hayes
> (Wac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes: > > Wac> Can anyone tell me how to turn off the bottom scrollbar in both > Wac> IE and Netscape?? Open the page from another page using javascript to open a window with feature not to scroll. See FAQS on www.irt.org or the Netscape Javasc

Re: [PHP] Date/Time from Unix timestamp

2001-01-24 Thread Ernest E Vogelsinger
At 23:10 24.01.2001, CDitty said: [snip] >Ok, I have looked at all my sources, including the manual and I cannot find >any method of converting the Unix timestamp to a displayable date/time. I >have probably just overlooked it each time, but all I can fi

RE: [PHP] Function / syntax varying from version to version?

2001-01-24 Thread Cal Evans
Guessing here: Define can't take a variable. It has to have a constant. define("RUSER", 1); would compile but not give you the results you want. I'm not sure you can do what you want. have you tried: define("RUSER", '$REMOTE_USER'); Cal http://www.calevans.com -Original Message-

Re: [PHP] Processing PHP within a string variable

2001-01-24 Thread Toby Butzon
Hmm... that may work for what you're trying to do and it may not... if your string contains something like this: $str = <

[PHP] Date/Time from Unix timestamp

2001-01-24 Thread CDitty
Ok, I have looked at all my sources, including the manual and I cannot find any method of converting the Unix timestamp to a displayable date/time. I have probably just overlooked it each time, but all I can find are methods to convert the current date/time to a Unix timestamp. Can anyone gi

[Fwd: [PHP] Function / syntax varying from version to version?] -- CORRECTION

2001-01-24 Thread Steven Deaton
What I meant to say, was that the top snippet works in php 3.0.16 but does not work in php 4.0.3pl1 yet the bottom corrected snippet works fine. Question being... why the changes, and does anyone have any clues about this occuring? Sorry about that. :) Original Message Return

Re: [PHP] Loop Through all Querystring Variables

2001-01-24 Thread Philip Olson
Assuming you are using GET (since you have a QUERY_STRING in url) : foreach ($HTTP_GET_VARS as $key => $value) { print "$key is $value \n"; } For form you can use POST and loop through HTTP_POST_VARS too. These are predefined variables : http://www.php.net/manual/en/lan

Re: [PHP] Loop Through all Querystring Variables

2001-01-24 Thread Steve Edberg
At 3:07 PM -0700 1/24/01, Karl J. Stubsjoen wrote: >What is the simplest way to set up a procedure to loop through all passed >querystring values and/or form values? > >I'm very new to PHP, and don't know how to set up loops at all. > reset($HTTP_GET_VARS); while (list($VariableName, $VariableVal

[PHP] Function / syntax varying from version to version?

2001-01-24 Thread Steven Deaton
Using the following snippet of code. -- 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] Cookie semi-security.

2001-01-24 Thread Toby Butzon
Enable track_vars in php's config and use $PHP_COOKIE_VARS['cookie_id'] to get the value of the cookie. --Toby - Original Message - From: "April" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 5:06 PM Subject: [PHP] Cookie semi-security. > S

Re: [PHP] Processing PHP within a string variable

2001-01-24 Thread Alexander Skwar
So sprach Matt am Wed, Jan 24, 2001 at 03:56:37PM -0600: > string is a mixture of PHP code and HTML. I want to be able to output the > string with the PHP code inside the string processed. Right now the PHP http://www.php.net/manual/en/function.eval.php Alexander Skwar -- How to quote: http

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Boget, Chris
> Instead of checking if(!$id), perhaps you would be better off to check the > result of your query (which in this example was successful, since you got > a return from mysql() ). I am. I just didn't include it in my previous message as it as I was trying to keep extraneous code down to a mini

[PHP] Cookie semi-security.

2001-01-24 Thread April
Stupid question, but I'm stumped. I'm passing a persons id through a cookie, then using that to determine if they're allowed to be doing what they're trying to do (change listings, etc.). Right now, I'm getting the value of the cookie by just accessing $cookie_id, without anything fancy. The pro

[PHP] Loop Through all Querystring Variables

2001-01-24 Thread Karl J. Stubsjoen
What is the simplest way to set up a procedure to loop through all passed querystring values and/or form values? I'm very new to PHP, and don't know how to set up loops at all. Thanks! Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Sam Masiello
Instead of checking if(!$id), perhaps you would be better off to check the result of your query (which in this example was successful, since you got a return from mysql() ). Also, what is the last_insert_id() function that you are referencing in your $insertIDQuery string? As for things getting

Re: [PHP] Help with INSERT query

2001-01-24 Thread Darren Evans
""Thor M. Steindorsson"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Some of your single quotes between values are missing (the . "','" . ), > messing up the query. > However it would probably be easier to do the addslashes() beforeyou do the > query so you

[PHP] Processing PHP within a string variable

2001-01-24 Thread Matt
On a project I am working on, I have a string variable, and inside the string is a mixture of PHP code and HTML. I want to be able to output the string with the PHP code inside the string processed. Right now the PHP isn't processed on output, it is merely cut out. I have been able to do this

RE: [PHP] Help with INSERT query

2001-01-24 Thread Thor M. Steindorsson
Some of your single quotes between values are missing (the . "','" . ), messing up the query. However it would probably be easier to do the addslashes() beforeyou do the query so you don't have to break the query up like that. So I'd do it like this: }else{ // Insert new entry $Name = addslashes

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Boget, Chris
> You probably stated this in your previous post, but what is > the result from your call to mysql() ? Is this call failing so > that when you get to mysql_insert_id(), the id doesn't exist? I did. It's returning a numerical one (1). What I'm doing now is as follows. It's getting me the val

Re: [PHP] PHP - Interrupted Scripts,

2001-01-24 Thread Rasmus Lerdorf
Read this: http://www.php.net/manual/en/features.connection-handling.php -Rasmus On Wed, 24 Jan 2001, [iso-8859-1] Timo Mika Gläßer wrote: > Hi, > I had this problem over and over again: A script takes a long time to > execute and is interrupted in the middle of its action by either a IE-Crash

RE: [PHP] mysql_insert_id()

2001-01-24 Thread Sam Masiello
You probably stated this in your previous post, but what is the result from your call to mysql() ? Is this call failing so that when you get to mysql_insert_id(), the id doesn’t exist? HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- F

RE: [PHP] Redirect

2001-01-24 Thread Thor M. Steindorsson
try this: http://www.dogpile.com"; header ("Location: $rdrct"); exit; ?> Thor M. Steindorsson - [EMAIL PROTECTED] http://www.netwood.net - Find Out Why We're Better. -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 1:03 PM To:

[PHP] Help with INSERT query

2001-01-24 Thread Darren Evans
I recently downloaded a phpDownload app. I'm having problems with it and can not reach the creator of this app. The INSERT query from the Admin portion of this app will not insert the info passed from a form. Can someone offer any help with this? Here is a portion of the code: } else { // In

Re: [PHP] PHP Editors summary page (was Re: Re: [PHP] PHP Editors)

2001-01-24 Thread eschmid+sic
On Wed, Jan 24, 2001 at 04:29:11PM -0500, Toby Butzon wrote: > Perhaps the PHP page should have a page of editors with > feature lists/ups & downs to each editor... a little > research & a public page by one person (and maybe > intermittent updates; moderated feedback might also be good) > would

Re: [PHP] Funny php://stdout behaviour

2001-01-24 Thread Toby Butzon
> >One thing that occurs to me -- stdout starts off by being the browser, so > >it's kinda funky to open it -- You've already got it open... I *think* it > >really only makes sense to fopen() stdout from the command line. At least, > >I'm not clear on what it would mean to open it from a HTTP en

[PHP] Test for Cookies (Stored vs. Session)

2001-01-24 Thread Karl J. Stubsjoen
So my Point is: What if you require "stored cookies" - cookies written to the users disk? Hmmm, this cookie test would return true if "per-session" cookies was enabled and "stored cookies" was disabled. Karl - Original Message - From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> To: <[EMAIL

[PHP] PHP Editors summary page (was Re: Re: [PHP] PHP Editors)

2001-01-24 Thread Toby Butzon
Just when this thread seems to die it comes back... Perhaps the PHP page should have a page of editors with feature lists/ups & downs to each editor... a little research & a public page by one person (and maybe intermittent updates; moderated feedback might also be good) would save us from even a

RE: [PHP] how to rename a database

2001-01-24 Thread Cal Evans
Step 1: Ask this question on the MySQL mailing list. :) (Sorry, I couldn't resist) The easiest way I can think of is to use MySQLDump to dump the schema and data, delete the original database, change the output of mysqldump to reflect the new database name and pump it back into mysql. Depending

  1   2   3   >