Re: [PHP] Anybody have a function to encode a string?

2002-03-20 Thread maxwello
> I need a function that encodes stuff, with a key. It, of course, needs to > be decodable too. Does anbody know/have a function like this? What is everyone's thoughts on RC4Crypt? http://sourceforge.net/projects/rc4crypt/ http://www.paphe.com/php/tutorials/230101.php -- PHP General Maili

Re: [PHP] Anybody have a function to encode a string?

2002-03-20 Thread maxwello
> > I need a function that encodes stuff, with a key. It, of course, needs to > > be decodable too. Does anbody know/have a function like this? > >http://www.php.net/manual/en/ref.mcrypt.php How about situations when mcrypt is not available? -- PHP General Mailing List (http://www.php.n

Re: [PHP] $DOCUMENT_ROOT behavior linux vs solaris

2002-03-20 Thread Alexander Skwar
»Dennis Moore« sagte am 2002-03-20 um 02:14:16 -0500 : > So when I build my paths I get an extra "/". Is there any way to make Sun version >to work like the Linux version. I hate to go back and change all my code. Uhm, is the double / a problem? On Linux, it doesn't seem to hurt. Alexander

Re: [PHP] Anybody have a function to encode a string?

2002-03-20 Thread maxwello
> I need a function that encodes stuff, with a key. It, of course, needs to > be decodable too. Does anbody know/have a function like this? What is everyone's thoughts on RC4Crypt? http://sourceforge.net/projects/rc4crypt/ http://www.paphe.com/php/tutorials/230101.php -- PHP General Maili

[PHP] $PHP_SELF on include file

2002-03-20 Thread José León Serna
Hello: I would like to do the following: a.php -- include "b.php"; b.php -- echo $PHP_SELF; in b.php, instead show a.php as the script is executing, I want to know if there's a way to show b.php, that is, the included file is being executed. Regards. -- PHP General Ma

Re: [PHP] $PHP_SELF on include file

2002-03-20 Thread José León Serna
Hello: > try it with __FILE__ > you might have to work a little on the resulting string, but it at least > delivers the current file's name What is __FILE__, a global var, an environment variable? Could you put a simple example? Regards and thanks for your quick answer. -- PHP General Mailing

[PHP] Loading files via HTTP or directly from the server?

2002-03-20 Thread andy
Hi there, I did recently discover that I might have a important failure in my webapp. But I am not sure about it. All the image files, js, css files I am accessing are loaded like this: http://www.server.com/test/image.gif Same with JS and css files. Now I am wondering if it would be faster to ac

[PHP] Re: Making a simple borderless pop up window with a "Close" button

2002-03-20 Thread qartis
If you want a popup window that lacks a border entirely, check out chromeless windows at www.microbians.com "Denis L. Menezes" <[EMAIL PROTECTED]> wrote in message 000f01c1cf3f$5321d520$c900a8c0@d8d0l7">news:000f01c1cf3f$5321d520$c900a8c0@d8d0l7... > Hello friends. > > I am making a database we

Re: [PHP] $PHP_SELF on include file

2002-03-20 Thread Wolfram Kriesing
On Wednesday 20 March 2002 10:12, José León Serna wrote: > Hello: > > try it with __FILE__ > > you might have to work a little on the resulting string, but it at least > > delivers the current file's name > > What is __FILE__, a global var, an environment variable? Could you put a > simple example

Re: [PHP] $PHP_SELF on include file

2002-03-20 Thread José León Serna
Hello: > echo __FILE__; > will show the current file name Oops! Thanks! ;-)) Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Receipts

2002-03-20 Thread Daniel Alsén
This may seem a bit off topic - but i am getting really tired of this... I am subscribing to a variety of mailing lists and receives hundreds, and sometimes thousands, of e-mails every day. One thing - that is almost unique to this list - is that some of you send a request for a read receipt with

[PHP] PHP - mssql

2002-03-20 Thread chris
Hi. I have a table that contains lots of names in mssql. and i want to make a page where each of theese individuals can login with that spesific username and password. So my question is : what is the proper (best) command to use for sending and returning the info? This is not working... i have

[PHP] Source Code Formatter

2002-03-20 Thread José León Serna
Hello: Any of you know about any source code formatter for PHP? I mean a tool to take a source code and produces an output file with the source code indented like it must be. Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Return the column names of MySQL table?

2002-03-20 Thread Tim Ward
The result of the "DESCRIBE" query is a dataset like that of any other query so ... $query = "DESCRIBE montileaux_events "; if ($result = mysql_query($query)) { while ($field = mysql_fetch_array($result)) { foreach($field as $key => $val)

Re: [PHP] Making a simple borderless pop up window with a "Close"button

2002-03-20 Thread bvr
The 3rd parameter to JavaScript function window.open() allows you to disable a number of window elements every browser has, these include the toolbar (buttons), location, status, menubar, scrollbars. This functionality is provided by the most common browsers and versions (MSIE and Netscape) an

[PHP] mail

2002-03-20 Thread Sven Jacobs
hey Is it possible to put somebody in CC when you use the mail() function ???

Re: [PHP] PHP - Forced header downloads

2002-03-20 Thread Rénald CASAGRAUDE
Ian Wayne wrote: > [...] > > /*retrieve filename from url*/ > $current=$REQUEST_URI; > $url=parse_url($current); > $fileq=$url[query]; > $file=$fileq.".mov"; > > /*force download*/ > header("Content-type:application/octet-stream\n"); > header("Content-disposition:attachment; filename=\"$file\"\

Re: [PHP] mail

2002-03-20 Thread RIVES Sergio
yes I guess http://www.php.net/manual/en/function.mail.php Good luck. SR Sven Jacobs a écrit : > hey > > Is it possible to put somebody in CC when you use the mail() function ??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sorting

2002-03-20 Thread Uma Shankari T.
Hii, Actually i want to sort the files form mysql database using php sorting.I can get the correct result using php sorting if the data's are stored in the array like this format. $temp=array("apple","Orange","Gova") please tell me how i will store the field details in a array fetched from m

Re: [PHP] mail

2002-03-20 Thread TV Karthick Kumar
Yeah, just add "Cc:[EMAIL PROTECTED]" to your headers, that's it... Karthick - Original Message - From: "Sven Jacobs" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 20, 2002 11:51 AM Subject: [PHP] mail > hey > > Is it possible to put somebody in CC when you us

[PHP] How to parse db-stored code

2002-03-20 Thread heinisch
Hi Folks, I have stored several selects in a mysql-db, it is possible to parse the answer, but I couldn´t remember how. f.e. the answer on a query is: select * from somewhere where foo='$foo' and foofoo='$foofoo' this is a string, what is the method to make the $foo-vars "real" vars? TIA Oliver

Re: [PHP] how to seek and convert an email address to mailto link

2002-03-20 Thread Pekka Saarinen
At 3/20/2002, you wrote: >$newstr = preg_replace('/\b(\S+@\S+)\b/', >'mailto:\1";>\1', $oldstr); > >Take the time to learn Perl-style regular expressions. You can practically >write Photoshop with them. > >miguel Thanks! It seems to work fine. If I had time I'd try to learn regexp, but first

Re: [PHP] Sorting

2002-03-20 Thread Oliver Heinisch
At 20.03.2002 16:29, you wrote: > > > >Hii, > >Actually i want to sort the files form mysql database using php >sorting.I can get the correct result using php sorting if the data's are >stored in the array like this format. > > $temp=array("apple","Orange","Gova") > >please tell me how i will st

[PHP] Re:SOLVED [PHP] How to parse db-stored code

2002-03-20 Thread heinisch
At 20.03.2002 12:17, you wrote: SOLVED ! > > I have stored several selects in a mysql-db, > > it is possible to parse the answer, but I couldn´t remember how. > > f.e. > the answer on a query is: > > select * from somewhere where foo='$foo' and foofoo='$foofoo' > > this is a string, what is the m

[PHP] email password and username

2002-03-20 Thread Craig
I am trying to create a system where a user can retreive there user name and password details. The problem is that the user name /password is in one table and the contact details are in another. The contact details are refrenced to the username. I want to acheive the following: 1. A user enters

Re: [PHP] Re: [NEWMAN] make an "if" or "else if" statement from mysql.

2002-03-20 Thread Philip J. Newman
$sql = "SELECT accessIP FROM `access` ORDER BY `accessID` DESC"; $sql_result = mysql_query($sql, $connection) or die ("Could not get Query"); if (db_num_rows() > 0) { // Update view where ip = visitor_ip } else { // Normal insert $sql = "INSERT INTO `access` (`accessID`, `accessIP`,

Re: [PHP] mail

2002-03-20 Thread Krzysztof Kocjan
//-- function sendmail( $From, $To, $CC, $BCC, $Replay_To, $Subject, $Body, $Mailer, $Extra_Header ) { $Header = ''; $Heade

RE: [PHP] Re: [NEWMAN] make an "if" or "else if" statement from mysql.

2002-03-20 Thread Brian Drexler
Try if(mysql_num_rows($sql_result)) instead of "db_num_rows." Hope this helps. Brian Drexler -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 7:09 AM To: Philip J. Newman; Julio Nobrega Trabalhando Cc: [EMAIL PROTECTED] Subject: Re: [P

RE: [PHP] using reload within PHP when submitting a form

2002-03-20 Thread Rick Emery
I use this construct constantly. Assume name of script is "thisform.php3": -Original Message- From: Daniel Negron/KBE [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 10:29 PM To: [EMAIL PROTECTED] Subject: [PHP] using reload within PHP when submitting a form I have

[PHP] Problem with gethostbyaddr()

2002-03-20 Thread Brian Drexler
Greetings all, I'm having a problem with the gethostbyaddr() function in PHP 4.1.2. Whenever I use it, regardless of the IP (Intranet or Internet) it just returns the IP. It says in the manual if there is an error, it will return the IP, but I can't figure out what the error is. Anyone have any

[PHP] edit record in mysql and receive error

2002-03-20 Thread Manu Verhaegen
Hi, I have the following records in my table dnsDNS Record 1 : Login = company1 ip = 10.123.100.111 Record 2 : Login = company2 ip = 10.123.101.111 I want to update recordnumber 1 I receive error "); } ?> -- PHP General Mailing List (http://www.php.net/) To

[PHP] LDAP and 2k

2002-03-20 Thread Matt Williams
Hi all Has anyone been successful in authenticating ldap via win2k using samaccountname (username) instead of the users container name. I can successfully do it against the cn but this is not always the same as the username. All help/guidelines will be gratefully received. matt -- PHP Gene

[PHP] Filing Structure

2002-03-20 Thread Jesse Warden
I am coming from a Flash, Director, and VB type programming world. Filing structure and code structure in PHP is really new to me. Therefore, does anyone have some an example filing structure I can look at or documentation on how to best structure? I downloaded a free message board (phpBB2) fro

Re: [PHP] HTML (to XML?) to PDF

2002-03-20 Thread Chris Boget
> Hm. If you can't store the data as XML from the beginning (doesn't it > make more sense to go from XML to HTML than vice versa?), Yes, it does. However, the people creating these templates don't know XML, only HTML. As such, that is how they are going to be stored. :| > If your initial do

RE: [PHP] edit record in mysql and receive error

2002-03-20 Thread Rick Emery
We can't read your mind. What kind of error do you get? Second, I recommend that you ALWAYS add the die() clause to your mysql function calls -Original Message- From: Manu Verhaegen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 7:16 AM To: 'Php-General (E-mail) Subject: [PH

RE: [PHP] Problem with gethostbyaddr()

2002-03-20 Thread Brian Drexler
My apologies for wasting everyone's time. gethostbyaddr() works fine, I had gethostbyname() in my script. Is today Monday or something? Have a nice day! Brian -Original Message- From: Brian Drexler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:15 AM To: Php-General@List

[PHP] PHP for 3D scatterplots

2002-03-20 Thread Simon De Deyne
is there any code for this available yet? I am looking for a way of plotting gif images of objects in a 3D space... thank you! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] why doesnt this work???

2002-03-20 Thread chris
this script receives vars "b" and "p" from a form. If "b" and "p" matches the echo on IF, then it works just fine. The problem is that if the vars dont match the ELSE ECHO does not apear... why not? -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
if( $line[1]='$bruker' and $line[2]='$passord') {echo "hei $bruker.";} else {echo "FEIL";} -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:15 AM To: [EMAIL PROTECTED] Subject: [PHP] why doesnt this work??? this script receiv

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
nope... that did not do the trick... -Chris "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > if( $line[1]='$bruker' and $line[2]='$passord') {echo "hei > $bruker.";} > else {echo "FEIL";} > > -Original Message- > From:

Re: [PHP] why doesnt this work???

2002-03-20 Thread R'twick Niceorgaw
You need two = signs for comparision not just one . Also I think you need to enclose the variables in double quote. if( $line[1]=="$bruker" and $line[2]=="$passord") echo "hei $bruker."; else echo "FEIL"; > -Original Message- > From: chris [mailto:[EMAIL PROTECTED]] > S

RE: [PHP] why doesnt this work???

2002-03-20 Thread Stampe, Lars
Hi, I am not an expert, but try if( $line[0]='$bruker' and $line[1]='$passord') {echo "hei $bruker.";} else {echo "FEIL";} atb Lars -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 14:22 To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work?

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
It still just comes out blank when the vars is wrong "R'Twick Niceorgaw" <[EMAIL PROTECTED]> wrote in message 020501c1d01b$11eb1d00$[EMAIL PROTECTED]">news:020501c1d01b$11eb1d00$[EMAIL PROTECTED]... > You need two = signs for comparision not just one . > Also I think you need to enclose the v

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
instead of 'and' use '&&' if($line[1] == "$bruker" && $line[2] == "$passord"){ echo "hei $bruker."; }else{ echo "FEIL"; } Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: R'tw

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
First: you need == not = to test equivalence. Second, use " not '; otherwise $vars will not expand if( $line[1]=="$bruker" and $line[2]=="$passord") {echo "hei $bruker.";} else {echo "FEIL";} -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
it all works just fine exept that when the vars is wrong i get a blank page...wich means that the else echo doesnt work for some reason... and if i use == the correct vars become wrong... but it does print the else echo... hmm... "Robert Collins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTE

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
Try this if($line[1] == '$bruker' && $line[2] == '$passord'){ echo "hei $bruker."; }else{ echo "FEIL"; } Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: chris [mailto:[EMAI

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
Thanx for all the help guys, but i have tried all of the sugestions but the one that works best is the one i startet with... but that one does not work 100% either...im so confused my head is about to fall of i just dont get it... "Robert Collins" <[EMAIL PROTECTED]> wrote in message [EMAIL

RE: [PHP] why doesnt this work???

2002-03-20 Thread Stampe, Lars
Please try this :) for ($i = 0; $i < mssql_num_rows( $result ); $i++) { $line = mssql_fetch_row($result); if (($line[0] == $bruker) && ($line[1] == $passord)) { echo "hei $line[0]"; } else { echo "FEIL"; } L

RE: [PHP] PHP - mssql

2002-03-20 Thread Mark Roedel
> -Original Message- > From: chris [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 20, 2002 3:38 AM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP - mssql > > > $link = mssql_connect($hostname,$username,$password); > $dblink = mssql_select_db($dbname, $link); > if ( $link && $dblink

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
This works; I just tried it. -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? Thanx for all the help guys, but i have tried all of the sugestions but the one that works b

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
This works : Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt thi

[PHP] new to php/mysql - insert not working

2002-03-20 Thread ROBERT MCPEAK
Can somebody help me with this? The following code gets me "document contains no data." I have done a successfull select from mysql db, but not an insertion. I don't know how to troubleshoot this. Any help is much appreciated. Thanks! -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] why doesnt this work???

2002-03-20 Thread Stampe, Lars
Hi, Let me explain what is wrong with this line: if( $line[1]='$bruker' and $line[2]='$passord') when you use = instead of == it will always be true because you set $line[1] to $bruker, you have to compare them by using ==. Also looking at your sql query $line[0] would contain your username

[PHP] Re: PHP for 3D scatterplots

2002-03-20 Thread Hugh Bothwell
"Simon De Deyne" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > is there any code for this available yet? > I am looking for a way of plotting gif images of objects > in a 3D space... > > thank you! > Simon Don't know of any offhand, but it doesn't sound all

[PHP] Accessing form variables

2002-03-20 Thread Joshua E Minnie
I have a form with a menu which I need multiple select on. How does PHP handle this? I have to use $HTTP_POST_VARS["somevariable"] to access somevariable from the form. -- Joshua E Minnie CIO [EMAIL PROTECTED] "Don't work for recognition, but always do work worthy of recognition." -- PHP G

[PHP] safe_mode_include_dir not working

2002-03-20 Thread Estelle Martin
Hi all, I have PHP 4.1.2 as Apache module, Safe-Mode On. I want to use the safe_mode_include_dir directive and ... this does not work. I have this in the directory directive of httpd.conf, I put the include_path to exactly the same path, I use complete path, and I always get the "safe-mode restric

[PHP] Db Access Count

2002-03-20 Thread Randum Ian
Hi there, I want to have a field in a database that counts the number of times that particular record has been viewed on the website. When is the best time to increment the count in the file and how? Kind Regards, Ian.

[PHP] Re: why doesnt this work???

2002-03-20 Thread Matt Wallace
What I think you'd note, actually, is that you ALWAYS get the matching echo, and never the non-matching, because you're using an assignment operator instead of comparison. It should read if ($line[1]==' instead of ($line[1]='. --Matt Chris wrote: > this script receives vars "b" and "p" from a

[PHP] Re: Delete Confirmation

2002-03-20 Thread Matt Wallace
Daniel Negron/Kbe wrote: > Does anyone have examples of record deletions from php to mysql Could you be more specific? $sql = "DELETE from tablename where tablename_idx = $index"; $result = mysql_query($sql); would be a very simple example of deleting a record from a hypothetical database wi

[PHP] Re: new to php/mysql - insert not working

2002-03-20 Thread Matt Wallace
The actual typo in your code is a trailing comma in your sql statement. > '".$img_group."', '".$display."', )"; Strip out the comma after your last single quote. It's very useful to have CLI access to mysql. Then you could just say, print "QUERY: $query \n"; and instead of executing it, paste

Re: [PHP] new to php/mysql - insert not working

2002-03-20 Thread Michael Egan
Robert, I still feel fairly new to this myself but if I find that I'm having problems writing to the database I generally try to echo the query to the page and then test this out directly with the command line prompt directly to the database. At least that way you can test out the query in isola

[PHP] Re: Accessing form variables

2002-03-20 Thread Matt Wallace
If your form is: 1 2 1 2 Then you'd have two php post variables available, a and b, each would have a value of 1 or 2, which you could get from HTTP_POST_VARS or, with later php versions, $_POST["a"] and $_POST["b"]. Joshua E Minnie wrote: > I have a form

[PHP] Re: sessions not so secure..solution?

2002-03-20 Thread Matt Wallace
Steve Clay wrote: > Hello, > I'm building an e-commerce site which uses sessions to > hold my $cart object. This works great but I've two worries: > > 1) When the user connects through our secure hostname, can I ensure > the browser will send the server the cookie (w/ SESSID)? The user >

[PHP] HTTP_Upload with PHP

2002-03-20 Thread Rick
We have an application that used PHP's FTP function to upload files. Now it worked until we upgraded to 4.1.2. We have now downgraded back to 4.1.1 but still no luck, it won't work. We have set upload_max_filesize and post_max_size as well, and that doesn't seem to help. Here is the following cod

Re: [PHP] HTTP_Upload with PHP

2002-03-20 Thread Rasmus Lerdorf
'none' comes from a failed file upload. Figure out why the file upload is not working. Did you perhaps turn file uploads off in your php.ini file? -Rasmus On Wed, 20 Mar 2002, Rick wrote: > We have an application that used PHP's FTP function to upload files. Now it > worked until we upgraded

[PHP] Multipage form

2002-03-20 Thread David Johansen
I was just wondering what was the best way to handle a multipage form. Would the best way be to keep passing the variables through the forms as hidden values or should I use sessions and store all the values as session variables? What's the best way to handle all of this? Also the different forms

[PHP] environment variable code fails

2002-03-20 Thread jrfoutin
The environment variable in this code on index.php is not invoking main.home.php page in php folder in htdocs on new server. Code worked on previous server setup, but fails on new server. Other php calls to MySQL db in ported site code that uses environment variable seems to work fine, but thi

[PHP] Problem with HTTP Authorization

2002-03-20 Thread Brian Drexler
I realize this may be a bit out of the scope of this list, but I'm sure someone out there can help. Here is my problem. I'm using htaccess/htpasswd for authentication on my site. I want to know if there is a way that when a user opens a link in a new window, their htaccess information stays the

[PHP] mysql update help needed

2002-03-20 Thread ROBERT MCPEAK
Can somebody straighten this out for me? I can't get the update to work. I'm sure the variables are being passed to the code. Thanks! if ($postaction==edit) { echo "it fired"; // process form $db = mysql_connect("myhost, "myunam

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-20 Thread Kevin Stone
I'm not quite sure what you mean... If Javascript were disabled then this whole argument would be moot. Since our method requires Javascript to properly function we're really not interested in that particular situation. :) There are two ways a PHP script (or any scripting language for that mat

[PHP] drop down box

2002-03-20 Thread ...::: M.E. Suliman :::...
Hi I need to get info from a specific field in a MySQL database to appear in a drop box as options. Has anyone any ideas on this. Thanks Mohamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] page expired message

2002-03-20 Thread Gonzalez, Zara E
Is there any way to avoid getting this message when I hit back on my browser "Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit y

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-20 Thread Andrew Lopucki
I think the point here is that it be made clear to those who might get confused that the javascript (unless it's a server-side script) is running in a browser and as such there is no way for the server to 'make a call to it by URL.' The Javascript can call the server but the server-side PHP sc

RE: [PHP] drop down box

2002-03-20 Thread Demitrious S. Kelly
This is actually a small excerpt from a program I've written in the past... hope it helps... function show_downtime_form() { global $conf_file; global $filter; $data=file($conf_file); foreach ( $data as $line ) { $bang=explode(':', $line);

[PHP] HTMLnetscape issue

2002-03-20 Thread Vlad Kulchitski
Hi, Sorry for repeating myself, but am lost and still can't find a solution to the following problem, I need to specify a background image for like the code below: This code works EVERYWHERE (in all browsers) but Netscape Navigator 4.xx versions. Please help, Thanks, Vlad http://

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-20 Thread Kevin Stone
I think the point here is that I'm right and you're wrong *JUST JOKING!* Seriously you're absolutely right, a PHP script can not activate a Javascript function. What I'm saying (and what I wanted the original poster to understand) is that a PHP script CAN send input to a Javascript, and based on

Re: [PHP] HTMLnetscape issue

2002-03-20 Thread heinisch
At 20.03.2002 13:11, you wrote: > >Hi, > >Sorry for repeating myself, but am lost and still can't find a solution >to the following problem, I need to specify a background image for >like the code below: > > > > > >This code works EVERYWHERE (in all browsers) but Netscape Navigator 4.

Re: [PHP] building a control panel in php

2002-03-20 Thread James Arthur
On Wednesday 20 Mar 2002 02:42, Thalis A. Kalfigopoulos wrote: > > -Original Message- > > From: Miguel Cruz [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 19, 2002 5:49 PM > > To: Paul ... > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] building a control panel in php > > > > On Wed,

RE: [PHP] HTMLnetscape issue

2002-03-20 Thread Vlad Kulchitski
STILL DOESN'T WORK :( -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 20 ÂÅÒÅÚÎÑ 2002 Ò. 13:29 To: [EMAIL PROTECTED] Subject: Re: [PHP] HTMLnetscape issue At 20.03.2002 13:11, you wrote: > >Hi, > >Sorry for repeating myself, but am lost and still can't find

Re: [PHP] HTMLnetscape issue

2002-03-20 Thread James Arthur
On Wednesday 20 Mar 2002 18:11, Vlad Kulchitski wrote: > Hi, > > Sorry for repeating myself, but am lost and still can't find a solution > to the following problem, I need to specify a background image for > like the code below: > > > > > > This code works EVERYWHERE (in all browsers

Re: [PHP] Making a simple borderless pop up window with a "Close" button

2002-03-20 Thread Joe Webster
Using the options parameter will allow you to get rid of toolbarts and scrollbars, but NOT the window's border, which the question was asking. -Joe "Bvr" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > The 3rd parameter to JavaScript function window.open()

[PHP] Re: PHP - mssql

2002-03-20 Thread Joe Webster
I doubt msSQL differs from MySQL -- $link = mssql_connect( $host, $user, $pass ) or die( "Can't connect to the DB!" ); mssql_select_db( $dbname, $link ) or die( "Can't select database" ); $query = "SELECT * FROM members WHERE user='$user' AND pass='$pass';"; $result = mssql_query( $query, $link

RE: [PHP] mysql update help needed

2002-03-20 Thread Rick Emery
if ($postaction=="edit") -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 11:44 AM To: [EMAIL PROTECTED] Subject: [PHP] mysql update help needed Can somebody straighten this out for me? I can't get the update to work. I'm sure the varia

[PHP] Announcement: Smarty template engine 2.0.1 available

2002-03-20 Thread Monte Ohrt
This is a point release, a few bug fixes & clean up. http://www.phpinsider.com/php/code/Smarty/ There have been some nice plugins contributed to the plugin repository too! http://www.phpinsider.com/php/code/Smarty/contribs/plugins/ Version 2.0.1 - - rename plugin .make_timesta

[PHP] Problem with posting

2002-03-20 Thread James Arthur
I'm writing a voting script, but I have a problem with it. Voters cast their vote by submitting a form. When this form is received it is added to the database, and a session variable is set saying that they've voted. The problem is that once someone's voted they can just press reload on their

RE: [PHP] Problem with posting

2002-03-20 Thread Rick Emery
What do you mean "All other browsers either do not submit form data"? show your code. What kind of user authentication are you using? If none, they'll vote and vote often. -Original Message- From: James Arthur [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 1:39 PM To: [E

Re: [PHP] HTMLnetscape issue

2002-03-20 Thread Erik Price
On Wednesday, March 20, 2002, at 01:11 PM, Vlad Kulchitski wrote: > Sorry for repeating myself, but am lost and still can't find a solution > to the following problem, I need to specify a background image for > like the code below: > > > > > > This code works EVERYWHERE (in all br

Re: [PHP] Problem with posting

2002-03-20 Thread Miguel Cruz
On Wed, 20 Mar 2002, James Arthur wrote: > I'm writing a voting script, but I have a problem with it. > > Voters cast their vote by submitting a form. When this form is received > it is added to the database, and a session variable is set saying that > they've voted. The problem is that once someo

RE: [PHP] HTMLnetscape issue

2002-03-20 Thread Nathan Cassano
Yes here is a solution to this problem and I am surprised no one on this list pointed it out. Simply put a transparent dot within a cell table that you wish to have the background image display. Netscape 4 in retarded in the fact that it will not display a cell background image unless it has cel

Re: [PHP] Multipage form

2002-03-20 Thread Erik Price
On Wednesday, March 20, 2002, at 11:57 AM, David Johansen wrote: > I was just wondering what was the best way to handle a multipage form. > Would > the best way be to keep passing the variables through the forms as > hidden > values or should I use sessions and store all the values as session

RE: [PHP] HTMLnetscape issue

2002-03-20 Thread Vlad Kulchitski
The problem is it doesn't show the picture background, even if I type text in that cell... -Original Message- From: Nathan Cassano [mailto:[EMAIL PROTECTED]] Sent: 20 ÂÅÒÅÚÎÑ 2002 Ò. 14:43 To: [EMAIL PROTECTED]; Vlad Kulchitski Subject: RE: [PHP] HTMLnetscape issue Yes here is a solut

RE: [PHP] HTMLnetscape issue

2002-03-20 Thread Vlad Kulchitski
I agree, but there are sites like heavy GRAPHICS sites that look fine everywhere you know what I am saying... the only solution I see is to add more cells, like even 1 pix cells and 100 pix wide if I want a line of graphic etc... that is the only solution I see -Original Message- > Sor

[PHP] Sessions

2002-03-20 Thread Joshua E Minnie
I am kind of confused by this error that I am receiving when I try to logout of a session. If somebody could pleae help me out here. Warning: Cannot send session cache limiter - headers already sent (output started at /home/www/wildwebtech/cumc/default.php:9) in /home/www/wildwebtech/cumc/defaul

Re: [PHP] Db Access Count

2002-03-20 Thread Randum Ian
To increment the field $count by one I can just do $count ++ can I? Cheers, Ian. - Original Message - From: Randum Ian To: PHP Mailing List Sent: Wednesday, March 20, 2002 4:20 PM Subject: [PHP] Db Access Count Hi there, I want to have a field in a database that counts the number o

Re: [PHP] Problem with posting

2002-03-20 Thread James Arthur
On Wednesday 20 Mar 2002 19:40, Rick Emery wrote: > What do you mean "All other browsers either do not submit form data"? I mean when the user hits 'reload' the POST data is not resubmitted. Some browsers do not resubmit form data, some do, and some prompt. > What kind of user authentication ar

Re: [PHP] Accessing form variables

2002-03-20 Thread Miguel Cruz
On Wed, 20 Mar 2002, Joshua E Minnie wrote: > I have a form with a menu which I need multiple select on. How does PHP > handle this? I have to use $HTTP_POST_VARS["somevariable"] to access > somevariable from the form. For a multiple select, stick [] after the HTML name and you'll get it back

Re: [PHP] Again, and Again, and AGAIN!

2002-03-20 Thread Mike Gohlke
Are you hitting enter while in one of the fields or clicking the submit button. I've seen versions of IE that would not set the submit button if enter was used. Personally, I would check for isset($username) && isset($password). Mike... (Sorry for the very late reply, etc. I've been dealin

Re: [PHP] HTMLnetscape issue

2002-03-20 Thread James Arthur
On Wednesday 20 Mar 2002 19:43, Nathan Cassano wrote: > Yes here is a solution to this problem and I am surprised no one on this > list pointed it out. > > Simply put a transparent dot within a cell table that you wish to have > the background image display. > Netscape 4 in retarded in the fact th

[PHP] TIMESTAMP and COMPARISON

2002-03-20 Thread chris allen
Hello, I am looking for a standard way to compare to dates. I have a date/time stored in a field in a mysql table as date_added TIMESTAMP(14). (IE mmddhhmmss). I want to delete all records in this table if date_added is older than 2 hours. IE if current_date > date_added +2 hours then

  1   2   >