[PHP] Variable question

2001-05-07 Thread King, Justin
How can I evaluate a variable in a string? For example if I have a string defined as "my user name is $user_data["username"]", how do I echo that string and have php evaluate $user_data["username"]. Thanks in advance.. -Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Variable question

2001-05-07 Thread Jack Dempsey
you can do it a couple ways... echo "my user name is " . $user_data["username"]; or echo "my username is ${user_data["username"]}"; -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 3:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable question

[PHP] Bound comboboxes on form

2001-05-07 Thread Dezider Góra
I want to create two bound comboboxes for selecting cell operators within a range of available countries. I want it behave like this: Combo 1 will consist of list of available contries -> user selects a country and the second combo will requery the database and show the list od of all available oo

Re: [PHP] Variable question

2001-05-07 Thread Gyozo Papp
Try this one : $user_data['username'] = 'Alphonse'; $str = "my user name is {$user_data['username']}"; Papp Gyozo - [EMAIL PROTECTED] - Original Message - From: "King, Justin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. május 7. 21:48 Subject: [PHP] Variable question Ho

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
I think you're misunderstanding my question. I'm pulling $user_data["username"] from a databse so the string my user name is $user_data["username"]" is exactly as the database hands it to me. I know how to simply concat information. -Justin -Original Message- From: "Jack Dempsey" <[EMA

Re: [PHP] Book Question - PHP and MySQL Web Development

2001-05-07 Thread Luke Welling
Egon Wrote: > On Tue, May 08, 2001 at 01:24:02AM +1000, Luke Welling wrote: > > > I was wondering if anybody out there who has a copy of my book has found any > > errors. > > > > If you have noticed any errors in "PHP and MySQL Web Development" by Luke > > Welling and Laura Thomson, and have a sec

Re: [PHP] Converting a binary integer to a number

2001-05-07 Thread Siegfried Kettlitz
Thanx, I think that will save some time. > Use unpack(): > > // Grab as many signed 32-bit integers as possible > $array = unpack ('l*', $data); > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [PHP] Variable question

2001-05-07 Thread John Vanderbeck
I'm not sure what you mean... [code] $query = "SELECT username FROM Users WHERE userid=1"; $result = mysql_query($query, $link); $user_data = mysql_fetch_assoc($result); echo "my user name is ".$user_data["username"]; [/code] Is that _not_ what you mean? - John Vanderbeck - Admin, GameDesign (h

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
Here let me flesh this out a bit more Consider the query "SELECT datafield FROM myTable WHERE id=1"; This would return "My username is $userdata["username"]"; I want to then output what the database returns, and have php evaluate my variables. -Justin -- PHP General Mailing List (http://www

RE: [PHP] Variable question

2001-05-07 Thread Jack Dempsey
ok, look into eval() -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:07 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Variable question Here let me flesh this out a bit more Consider the query "SELECT datafield FROM myTable WHERE id=1"; This

[PHP] Variable Variable with array

2001-05-07 Thread Brandon Orther
Hello, I am trying to use variable variable. with arrays. this may be hard to understand so here is an example: $menu1[0] = "1"; $menu1[1] = "2"; $menu1[2] = "3"; $menu2[0] = "1"; $menu2[1] = "2"; $menu2[2] = "3"; $menu3[0] = "1"; $menu3[1] = "2"; $menu3[2] = "3"; does anyone know t

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
A simple eval($mysqldata) isn't going to do it though since the string is "Your username is $userdata["username"]"; it'll just spit a parse error. I've already tried that -Justin -Original Message- From: "Jack Dempsey" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 1:13 PM To: King, Ju

[PHP] Mcrypt + urlencode : how to pass encrypted values

2001-05-07 Thread Robert Mena
Hi I am developing an application which will encrypt (using mcrypt library) some data. Everyting is ok except the fact that I can no longer have links (GET) passing the values. For ex. I used to have a href="script.php?plaintext=foobar" now I need to pass that foobar value encrypted. a href="

RE: [PHP] Variable question

2001-05-07 Thread John Vanderbeck
How about manually parsing the string out to give you chunks, that can then be eval'd easy. - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues > -Original Message- > From: King, Justin [mailto:

Re: [PHP] Variable question

2001-05-07 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("King, Justin") wrote: > A simple eval($mysqldata) isn't going to do it though since the string > is "Your username is $userdata["username"]"; it'll just spit a parse > error. I've already tried that The code being eval'd has to be a valid PH

[PHP] Multiple select box and form submitting

2001-05-07 Thread ..s.c.o.t.t.. [gts]
i apologize in advance if the answer to my question is glaringly obvious. i've got a multiple select on a form and want to find out *all* selected values. the form looks like so: First Second Third when the form submits, $form['category'] is not an array of selected values, but rather a sing

Re: [PHP] Variable Variable with array

2001-05-07 Thread Gyozo Papp
are you thinking of what this snippet does: $menu = 'menu2'; $i = 2; echo ${$menu}[$i]; - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: 2001. május 7. 22:16 Subject: [PHP] Variable Variable with array > Hello, > > I am tr

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
I understand that, but that's what I'm trying to get around doing. -Justin -Original Message- From: CC Zona <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 1:24 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variable question In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("King, Jus

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
I'm trying to get around having to do that, I don't know regular expressions so it makes it difficult :( -Justin -Original Message- From: "John Vanderbeck" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 1:21 PM To: King, Justin; [EMAIL PROTECTED] Subject: RE: [PHP] Variable question Ho

RE: [PHP] Variable question (eval is cool)

2001-05-07 Thread ..s.c.o.t.t.. [gts]
$bob = "Roy"; $s = 'Hey there $bob'; $s = 'print "'. $s .'";'; eval ($s); prints: "Hey there Roy"; perhaps that's what you're looking for? > -Original Message- > From: John Vanderbeck [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 07, 2001 4:21 PM > To: King, Justin; [EMAIL PROTECTED]

[PHP] Need help with Database and variables

2001-05-07 Thread Ryan W. Zajicek
Hello, I was wondering if I do a database query like "SELECT count(*) FROM table_name AS song_count" if there is a way I can assign song_count to a variable that is accessable anywhere on the page and not just in a "WHILE" statement? Thanks is advance Ryan mailto:[EMAIL PROTECTED] -- PHP Gen

RE: [PHP] Variable question

2001-05-07 Thread ..s.c.o.t.t.. [gts]
this also works, since you mentioned that you're trying to get away from evalling an "echo" statement. $bob = "Roy"; $s = 'Hey there $bob'; $s = '$somevar = "'. $s .'";'; eval ($s); print $somevar; prints: "Hey there Roy"; personally, i think that using regexps to implement an entire symbol pa

Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1

2001-05-07 Thread Michael Stearne
Yeah, I hope it's a MacOS app also. Michael Meir kriheli wrote: >On Tuesday 08 May 2001 00:39, elias wrote: > >Is it a windows app (I hope it isn't)? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: [PHP] Multiple select box and form submitting

2001-05-07 Thread Johnson, Kirk
Use empty brackets in the name attribute, e.g., . PHP will then create an array indexed by numbers. PHP will automatically assign indices in assignments if you omit the index: "; echo $array[1].""; ?> Kirk > -Original Message- > From: ..s.c.o.t.t.. [gts] [mailto:[EMAIL PROTECTED]] > Su

[PHP] still getting multiple definitions of symbol _DayNameLong

2001-05-07 Thread Jeff Orrok
Thanks to Andrew and Cameron for assisting with my mosxs build of php and apache. But I am still stuck with the following: dyld: /usr/sbin/httpd multiple definitions of symbol _DayNameLong /usr/sbin/httpd definition of _DayNameLong /System/Library/Apache/Modules/libphp4.so definition of _DayName

[PHP] Variable Variable

2001-05-07 Thread Brandon Orther
Hello, I can't find Variable Variable in the php manual. If someone has a link to the section in the PHP manual about this please send me a link. Thank you, Brandon Orther -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

RE: [PHP] Variable Variable

2001-05-07 Thread Altunergil, Oktay
http://www.php.net/manual/en/language.variables.variable.php -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:53 PM To: PHP User Group Subject: [PHP] Variable Variable Hello, I can't find Variable Variable in the php manual. If someone ha

[PHP] updating flash file with php

2001-05-07 Thread py
Hello, any of you has a tutorial/info on how to update a flash file (swf) with a php script ? (data coming from a text file and a database) py

[PHP] PHPmyadmin

2001-05-07 Thread Theo Richel
Can anyone please tell me how to load a structure and datadumpfile (*.sql) into an empty database by means of PHPMyadmin? (I know there is a separate forum for this, but either this is a stupid question or there is no one there who knows an answer, it stays silent). I know how to do it through

RE: [PHP] PHPmyadmin

2001-05-07 Thread Ryan W. Zajicek
Theo, Make sure the database exists, then click on the database name on the left hand side of the screen. Now on the right hand side of the screen it should say something like no tables exist and below that you'll see some form fields. Look for the one that says "Run SQL query/queries on databa

RE: [PHP] PHPmyadmin

2001-05-07 Thread John Vanderbeck
I'm curious, Where can I get a copy of PHPmyadmin? Up till now, I have done all my database work strictly through php code and sql statements, which as you can imagine is cumbersome. Sounds like this might be easier? I'm starting up another project right now, and will have to be creating a bunc

RE: [PHP] PHPmyadmin

2001-05-07 Thread Jack Dempsey
http://www.phpwizard.net/projects/phpMyAdmin/ -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 5:21 PM To: Ryan W. Zajicek; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] PHPmyadmin I'm curious, Where can I get a copy of PHPmyadmin

RE: [PHP] PHPmyadmin - problem remains

2001-05-07 Thread Theo Richel
Yes the database exists Indeed there are no tables There IS an option to run SQL Queries BUT There is no Browse button here. (there is a browse button when one HAS a table - but this one is for browsing the table - and in the insert file option there is a way to browse to the file on the local di

[PHP] PEAR Versions

2001-05-07 Thread Michael Stearne
I have a version of PEAR installed now with 4.0.3pl1. I need some of the newer versions of the functions that have been added since then. I need mysql's afftedRows for instance. I see in the 4.0.5 of PEAR that was given with 4.0.5 that some function have "since 4.0.5" in PEAR.php in par

[PHP] logical expression 'simplifier'

2001-05-07 Thread Gyozo Papp
Hello, girls and boys, my question sounds a bit strange, but it 's very important for me to simplify my database queries. So, is there any known and implementable algorithm that simplifies an arbitrary logical expression such as: (either in PHP-style and in mathematical forms separated by comma

[PHP] Refreshing multiple frames?

2001-05-07 Thread Brandon Orther
Hello, I am using php with frames for a menu bar. In one frame I have a menu. When the link is clicked on the menu I would like two frames to be updated. Is there a way to do this? Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [PHP] Refreshing multiple frames?

2001-05-07 Thread Zak Greant
You are going to need Javascript to do this. --zak - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 5:19 PM Subject: [PHP] Refreshing multiple frames? > Hello, > > I am using php with frames for a menu

[PHP] Problem with PHP 4.0.5

2001-05-07 Thread Alvaro Collado
I have installed PHP4.0.5 in a Red Hat Linux 6.0 with Apache. When I run the test no problem, all is OK, but when I run a html index file in Netscape ( LocalHost ) whith a single code like this nothing was display, nothing. When I change the code for an know error for example Netscape prin

RE: [PHP] Problem with PHP 4.0.5

2001-05-07 Thread John Vanderbeck
Try, \n"; ?> Some systems are configured to not allow the shorthand "http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues > -Original Message- > From: Alvaro Collado [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 07, 2001 8:36 PM > T

[PHP] arrays and strings... a little confusing.

2001-05-07 Thread Christian Dechery
Whats is the difference between [] and {} ? define(NL,"\n"); $str="How do you do?"; echo $str[3].NL; echo $str{3}.NL; $array = array("how","do","you","do?"); echo $array[2].NL; echo $array{2}.NL; this outputs d d you you so there's no diff

[PHP] session_start ()

2001-05-07 Thread shawn
When using session_start () over alot of pages, do i need to reregister the origional session? example: page1:session_start(); session_register('data'); page2:session_start(); page3:session_start(); session_register('data'); new to sessions, (no really), so thanks for the

[PHP] Problem with PHP 4.0.5

2001-05-07 Thread Alvaro Collado
Mr . John Vanderbeck None of both codes works, all this test were do. The Netscape ingnore all the tags with \n"; ?> Some systems are configured to not allow the shorthand "http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues

Re: [PHP] Refreshing multiple frames?

2001-05-07 Thread Data Driven Design
Link to another frameset page if you choose not to use javascript. But IMO there's no such thing as a proper use of frames. Frames should never be used for anything. Data Driven Design P.O. Box 1084 Holly Hill, Florida 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net -

Re: [PHP] Problem with PHP 4.0.5

2001-05-07 Thread Philip Olson
1. What file extension are you using for your test file? 2. Is this extension found around httpd.conf in a form similar to : AddType application/x-httpd-php .php .php3 .html .phtml .parsemephp When you stated "All works ok except ..." what works ok? Regards, Philip On Mon, 7 May 2001, Alva

[PHP] PHP vs Coldfusion and ADO vd API

2001-05-07 Thread Jeff
I have two questions: 1) I've seen a lot of benching by pc magazine and they're saying how great cold fusion is and how bad php is. However, they don't use Zend in any of their tests. Does anyone know of benchmarks against popular systems that include php + Zend? 2) What is the performance gai

[PHP] getimagesize

2001-05-07 Thread todd kennedy
i'm having some odd problems with getimagesize. sometimes it works, sometimes it doesn't. this is the code i'm calling it with: $p_size = getimagesize($photos[$start]); where $photos[$start] has the value im000301.jpg. the php file and the image file are located in the same directory. this do

[PHP] if else and or ?

2001-05-07 Thread Andras Kende
Hello, I started to do a php page with mysql connection.. My problem is: I do query from a mysql, I try to setup usernames + passwords to protect the database They would need to use specific user+password+cities to be able to connect. Bad passwd would just print an access denied messsage.. ht

[PHP] Call to a member function on a non-object

2001-05-07 Thread Ender
Okay I get the: Call to a member function on a non-object error when trying to execute this script: It happens in this area: $db=mysql_connect(localhost,'***','***') or die("Unable to connect to database"); $edlist = new EditList("serverId", "hlstats_Servers", "server"); $edlist->columns[]

Re: [PHP] PHP vs Coldfusion and ADO vd API

2001-05-07 Thread Michael Kimsal
On Mon, 7 May 2001, Jeff wrote: > I have two questions: > > 1) I've seen a lot of benching by pc magazine and they're saying how > great cold fusion is and how bad php is. However, they don't use Zend > in any of their tests. Does anyone know of benchmarks against popular > systems that incl

RE: [PHP] if else and or ?

2001-05-07 Thread Maxim Maletsky
there are two ways to simplify your code: 1. database. Keep the usernames in another table. Check against it to verify that the passwords are correct and then go ahead pulling the data out. 2. read on about eval(). php.net/eval eval converts your string into php code. So your if else statements c

Re: [PHP] Pregunta

2001-05-07 Thread Michael Hall
Hombre, necesitamos un poco mas de informacion para ayudarte. Cuales versiones de PHP y IIS, por ejemplo, y cual version de Windows? Como lo instalaste? Como modulo o como CGI? La pagina de prueba, tiene todos los "tags" que necesita? (es decir, . Tiene el archivo la extension ".php"? Como has

[PHP] Whether through PHP/MySQL can I talk to Flash Generator's Flash ?

2001-05-07 Thread Manisha
Hi all, I am trying using PHP with Flash Generator. The designer has given me a Flash file created using Macromedia's Flash Generator 2. The platform is BSDi / Lang - PHP / Database - MySQL. I want to change the content INSIDE the Flash file dynamically (not the flash itself). From books I

Re: [PHP] PostgreSQL vs. Interbase

2001-05-07 Thread Luke Welling
"Altunergil, Oktay"wrote: > The link that goes to interbase's web site in freshmeat.com redirects to > http://www.borland.com/interbase/ > which does not list the product as free or open source? > > Is there another version? > > oktay My understanding is that the current open source version is a

Re: [PHP] Refreshing multiple frames?

2001-05-07 Thread Luke Welling
"Brandon Orther" wrote: > I am using php with frames for a menu bar. In one frame I have a menu. > When the link is clicked on the menu I would like two frames to be updated. > Is there a way to do this? As others have said, this is a JavaScript task not a PHP task. I am pretty sure there is a

Re: [PHP] updating flash file with php

2001-05-07 Thread Luke Welling
py wrote: > any of you has a tutorial/info on how to update a flash file (swf) with a php script ? > (data coming from a text file and a database) I have not seen a tutorial, but there are two simple working examples in Rasmus' Intro to PHP presentation here: http://conf.php.net/pres/index.php?p=s

[PHP] English ISP

2001-05-07 Thread tcuhost
A good friend of mine just moved to England. Devon to be exact. He's having quite a time finding a reliable internet provider. Anybody know of any reliable providers in that area? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] how to get RAW POST DATA!

2001-05-07 Thread ondi
What You mean? I cant read STDIN in cgi-bin module by my self? its worse that I thought : "Yasuo Ohgaki" wrote in message <9d0gam$rdu$[EMAIL PROTECTED]>... >This is not possible with current PHP. >If you search recent php-dev list archive, you will find some more info. > >""ondi"" <[EMAIL P

[PHP] Converting mySQL to PostgreSQL

2001-05-07 Thread Jason
Hi, I am in need a transfering an existing mySQL database to PostgreSQL. I have seen info on the converter. Before I get started I wanted to see info anyone has any insight or tips on converting these DBs (ie- is it problematic, inconsistent, etc). Thanks! John -- PHP General Mailing List (h

Re: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread Martín Marqués
On Mar 08 May 2001 02:07, you wrote: > Never tried it though...but can you try to empty or unset the > $PHP_AUTH_USER/PWD ? This doesn't work, thats why I use a login html page and sessions. :-) Saludos... :-) -- El mejor sistema operativo es aquel que te da de comer. Cuida tu dieta. -

[PHP] Re: [PHP-DEV] Dynamic Update of DNS ??

2001-05-07 Thread Stig Venaas
On Mon, May 07, 2001 at 06:54:53PM +0200, Vincen Pujol wrote: > Hi, > Sorry for the crossposting but I don't know where to find a > solution for this. I need to be able to update dynamically entries in a DNS > (Bind 9). My DNS supports dynamic updates but how to do dyna

[PHP] Dynamic Update of DNS ??

2001-05-07 Thread Vincen Pujol
Hi, Sorry for the crossposting but I don't know where to find a solution for this. I need to be able to update dynamically entries in a DNS (Bind 9). My DNS supports dynamic updates but how to do dynamic updates in my DNS server from a PHP Script ?? Th

RE: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread Robert Covell
I must support this fashion of "login" and "logout". I have never been able to find a way to clear the browser of the username and password. Once I combined sessions with a date and timestamp in the realm, it worked like a charm. Sincerely, Robert T. Covell President / Owner Rolet Internet Ser

<    1   2