[PHP] Re: What's wrong with this IF statement?

2004-04-22 Thread Torsten Roehr
"Robert Sossomon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My IF statement should be picking up on the numbers, and if the number > matches not be displaying out the information, however I look at the > outputted page and the information is still there, what have I got wrong >

Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Torsten Roehr
"Tyler Replogle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hey, > i didn't quite get when you ment by that but have you tried using > $DOCUMENT_ROOT before your path, that might help it will be something like > this > require_once('$DOCUMENT_ROOT/test/db.php'); > $DOCUMENT_ROOT

[PHP] Re: MySQL Dump

2004-04-22 Thread Torsten Roehr
ecessary stuff. This has served me well for over a year now. Are you interested? Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Image Alpha - Water Mark

2004-04-22 Thread Torsten Roehr
"Anderson Ouriques" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I would like how use the image functions to put one water-mark in other > image. > I can't use with alpha functions. > I use PNG format. Maybe this is what you're looking for: http://phparch.com/news/1242 R

[PHP] Re: $PATH_INFO not working

2004-04-23 Thread Torsten Roehr
"Noel Da Costa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Anyone know what might stop the $PATH_INFO variable from working? I > developed a nav system using this which works on the test server, but not on > the live server. I'm guessing this is something to do with the

[PHP] Re: $PATH_INFO not working

2004-04-23 Thread Torsten Roehr
"Noel Da Costa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for the thought... > > I was using getenv('PATH_INFO'). I tried $_SERVER['PATH_INFO'], but it > didn't help. > > PATH_INFO is working, ie being filled, but Apache doesn't seem to know what > to do with it. So if m

[PHP] Re: Counting number of characters without spaces between them?

2004-04-23 Thread Torsten Roehr
"Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > It's a warm sunny day and I'm trying to wrap my head around the > following: > > I want to be able to check to see if, in a string, the user has > entered too many consecutive characters and not enough spaces.

Re: [PHP] Call to external function

2004-04-23 Thread Torsten Roehr
This is more of a JavaScript than a PHP question. Maybe you could search google for 'stop JavaScript function' or something. Torsten "Jeff McKeon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > [snip] > Is this possible? > [/snip] > > Anything is possible! > > Have you considered

[PHP] Re: PHP5 bloats the code

2004-04-24 Thread Torsten Roehr
"Johannes Reichardt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there, > > i don“t know if this is the right place to ask but since there are a lot > of cracks around i thought i throw this in here. actually i am using > typo3 (www.typo3.org) a full-blown, extendable cm-framew

[PHP] Re: mouse over problem on php

2004-04-24 Thread Torsten Roehr
This is more of a Javascript/Style Sheets question than anything else. Try your luck on a JS/CSS mailing list. Regards, Torsten "Gowthaman Ramasamy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi list , > In the web page, i display different bars (actually tables with single > c

[PHP] Re: Microsoft Update and how its done question

2004-04-24 Thread Torsten Roehr
"Anton Krall" <[EMAIL PROTECTED]> wrote in message news:!~!UENERkVCMDkAAQACABgAyt+Udpm8KEiSEdKfabIEWMKA [EMAIL PROTECTED] > Guys.. Ive been wondering this.. when you visit microsofts update sites, if > you click on look for updates, it loads something into your computer, an

[PHP] Re: Shared session ? (frames application)

2004-04-25 Thread Torsten Roehr
This is possible without problem. Just start your session in every script and forward the session id from your frameset (which is probably the first page to be called by the user) to each frame: frames.inc -- ?> Make sure to put the session start code at the top of EVERY page.

[PHP] Re: include (or require) doesn't seem to work

2004-05-12 Thread Torsten Roehr
l_fopen = On' in /etc/php.ini. I'll take a > closer look later and report the problem if I find it. Thanks again, > > Daniel Using the absolute path works as well - but you have to use the full LOCAL file path, e.g. /htdocs/www/your-domain etc. You can get this value from $_SERVER[&

[PHP] Re: User/Group rights system?

2004-05-12 Thread Torsten Roehr
"David David" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > Does anyone know of an open source "user/group" based > permission system built with php/MySQL? > > That is, the effective rights for any user on a > specific secured object are computed from various > permit/den

[PHP] Re: Memory usage

2004-05-12 Thread Torsten Roehr
"Oliver Hankeln" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi! > > I get memory exceded errors and want to find out why. So I am looking > for a way to determine how much memory is currently beeing used by my > script. Is this possible? > getPID + reading from /proc dosent work

[PHP] Re: Zip-code Form Validation Scripts and Zipcode Program

2004-05-13 Thread Torsten Roehr
"Ryan Munevar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey Guys, > > Question 1: Does anyone have a really good php form validation script > for Zip-codes? > > Question 2: Does anyone know of a great depository of form validation > scripts for all kinds of form inputs? Take

[PHP] Re: problem install pws and php

2004-05-13 Thread Torsten Roehr
"Lee 03" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > i am a beginner for php programming, my OS is win98 while my webserver is PWS, all is in the same machine,when i try to run my internet explorer( type in http://localhost/phpinfo.php), phpinfo.php cannot be display. > > i try

[PHP] Re: mysql blob and phpmysqladmin

2004-05-13 Thread Torsten Roehr
"Jianping Zhu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have mysql table call com. One colum of table com will store > user's comments. Because user-provided comment might be too big to fit in char(255), i > use blob. but when i try to see it by use phpmysqladmin, i can only

[PHP] Re: php calender

2004-05-11 Thread Torsten Roehr
"Edward Peloke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am currently working on a site for a vacation rental company. They want > the ability to show users the availability of certain properties. The > availability will be held in a mysql db so I assume I will have to > d

[PHP] Re: include (or require) doesn't seem to work

2004-05-11 Thread Torsten Roehr
"Daniel Barbar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm almost ashamed to ask this question as surely enough the > problem is something very basic but, nonetheless, I can't put my finger on > it. I'm trying to implement the concept of a library (librar

[PHP] Re: include (or require) doesn't seem to work

2004-05-11 Thread Torsten Roehr
> Try including it as a local file: > require_once library.php'; // if it is in the same directory as the file you Forgot a quote here, sorry: require_once 'library.php'; Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: export mysql to excel

2004-05-14 Thread Torsten Roehr
>>> "Curlybraces Technologies Ltd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] hi , i want to export data in mysql to excel .. but problem is mysql runs in the linux machine , How can i get that data from mysql-Linux machine to windows-Excel machine , plz help asap thanx in advan

Re: [PHP] tracking users

2004-05-14 Thread Torsten Roehr
"Alessandro Vitale" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I am currently running a web application which has an increasing number of > users. The application uses PHP sessions. As administrator, I would like to > know which users are currently logged in. Any brie

[PHP] Re: breaking the string

2004-05-14 Thread Torsten Roehr
"Gowthaman Ramasamy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hello list, > can we split a string into substrings of particular size. > for example .. > i have as sting of 1000 characters. can i split it into stings of 150 > and feed them into an array. > This should be EXACTL

[PHP] Re: thumbnails of images

2004-05-10 Thread Torsten Roehr
"John" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > is there any code or function out there that gives you a thumbnail of an > image in the size and compression means you specify?? ive been looking, but > found nothing, youd think thered be a function > > -- > *

Re: [PHP] PHP graphing tool?

2004-05-10 Thread Torsten Roehr
"Amanda Hemmerich" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Also, the cheaper, the better, and free is best! Older versions are available for free but may not be used commercially: http://www.aditus.nu/jpgraph/jpdownload.php Regards, Torsten > > Thanks again. > > On Mon, 10

Re: [PHP] Re: thumbnails of images

2004-05-10 Thread Torsten Roehr
"Edward Peloke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > won't the gd library do this? > > http://www.php.net/manual/en/function.exif-thumbnail.php > > if there is a better function..I am interested in it also as I have to do > this something this week for a project. > > Thanks

[PHP] Re: Remove cahracters in string

2004-05-10 Thread Torsten Roehr
"Mike Mapsnac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I search on php.net and couldn't find the function. I need a function that > will remove characters in the string until it reached the pattern and > remove characters in the string after another pattern. > > The program r

Re: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Torsten Roehr
te05Oct2004 > > No characters before Philadelphia and after 20004 Is the character you want to remove ('t') always the same? Torsten > > > > > >From: "Torsten Roehr" <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: [PHP] Re: Remove cah

[PHP] Re: Putting a stop in a foreach

2004-05-09 Thread Torsten Roehr
"Verdon Vaillancourt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi :) > > I'm trying to put a stop in a foreach statement following the user > suggestion here, php.net/manual/en/control-structures.foreach.php > > Not really knowing what I am doing, I am running into some synatx

[PHP] Re: Putting a stop in a foreach

2004-05-09 Thread Torsten Roehr
> > This is my attempt to count items and put a stop in the foreach so it only > > returns 5 items. > > > > foreach ($this->_content as $n => $item) { > > if ($n=="5") > > > break; > > } else > > > if ($this->_content[$n] => $item['type'] == 'item'){ > > $element

Re: [PHP] Re: Putting a stop in a foreach

2004-05-09 Thread Torsten Roehr
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Torsten Roehr ([EMAIL PROTECTED]): > > > > Sorry, I mixed up the for and the foreach syntaxes. Here my (hopefully > > correct) loop proposal: > > > > for ($i;

[PHP] Re: exclude_once(); ?

2004-05-10 Thread Torsten Roehr
"Matthias H. Risse" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi again! > > Question: > Does anyone know of a possibility to exclude files which > have been included _before_ my script starts on the > fly (e.g. at the first lines after the entrypoint) ? > > Reasons: > This ISP

[PHP] Re: Complicated sql for search query ?

2004-05-10 Thread Torsten Roehr
>"Dave Carrera" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >Hi List, > >I think this a complicated sql query but I am sure one of you gurus will >show me how easy this is. > >I am doing a search script an have it finding multiple words and >highlighting those words. > >Now my issue

Re: [PHP] Re: form submission logic

2004-05-10 Thread Torsten Roehr
>"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >[snip] >This is more of a HTML than a PHP question, but anyway: >It doesn't matter where you put the buttons as long as they are INSIDE >the >form-tag and have different names. >[/snip] > >Actually you can name them all t

[PHP] Re: Active PHP Sessions

2004-05-07 Thread Torsten Roehr
"Paul Higgins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I'm on a shared server, and I do not believe that I have access to the /tmp > directory where the session files are stored (I believe that is how it works > :). I want to keep track of which sessions are activ

Re: [PHP] Re: Active PHP Sessions

2004-05-07 Thread Torsten Roehr
et started just post on the PEAR mailing list. The session table has a timestamp column named expiry which will make it easy to count the active sessions. By the way, doing the DB session count should also be faster than counting the files in your /tmp dir ;) Regards, Torsten > > Thanks >

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Aaron Wolski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > Was wondering if someone had any idea's on this logic and if it'd work, > before I tried to implement it: > > Within the tags I have my buttons - Publish, Unpublish, > New, Edit and Delete. > > Next I have a t

Re: [PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Adam Voigt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 2004-05-07 at 13:47, Torsten Roehr wrote: > > > > This is more of a HTML than a PHP question, but anyway: > > It doesn't matter where you put the buttons as long as

[PHP] Re: please remove this user

2004-05-07 Thread Torsten Roehr
"Tim Traver" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can any admin remove this user from the list ? > > "Advance Credit Suisse Bank" <[EMAIL PROTECTED]> > > Every time I post, I get an autoresponse from that address... > > Anyone else get that ? Unfortunately, yes. Torsten

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well, > > I would include another hidden field and name it something like "ACTION". > I would also include a checkbox on every item you want to do something with > like this : > > > > Then use javascript on your actions

[PHP] Re: form submission logic

2004-05-07 Thread Torsten Roehr
ople when it comes to binary numbers: > those who understand them, and those who don't. > -- > www.steinhaug.com - www.easywebshop.no - www.webkitpro.com > -- > &

[PHP] Re: Best way to do "Last 3 Items Viewed"

2004-05-14 Thread Torsten Roehr
"Chuck Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anyone have any code snippits that would allow me to do a "Last 3 Items > Viewed" like on ebay? > > Thanks, > Chuck Why not mark your records with a timestamp at every view and then do a limited select sorted by the time

Re: [PHP] Listing all id's in array

2004-04-29 Thread Torsten Roehr
"Alex Hogan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have asked a lot of questions in the last few weeks, but I do try to > preface those questions by checking out the php.net online manual first. > > Anyway, here is one way to do it. There are probably more elegant > solut

[PHP] Re: Single quotes inside double quoted string (Was: Re: [PHP] Re: Problem with a class... any help will be appreciated.)

2004-04-29 Thread Torsten Roehr
"Elliot J. Balanza" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Actually you are right the problem is not in the proccess of writing to the > database, the problem is that after writing to the database it wont "jump" > to the next function it wont go to login() or any other functi

[PHP] Re: popup windows & variables

2004-04-30 Thread Torsten Roehr
"William Stokes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello > > I need to open a popup window from my php page . The information displayed > on this popup depends on a variable value on the first page. How do I > paste/move the variable value to the popup window. The popup

[PHP] Re: unexpected array_diff output

2004-04-30 Thread Torsten Roehr
"Frederic Noyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello there ! > I am trying to fill and then compare two arrays: one filled by a > foreach construct, and the second by a while construct. > I check both with a print_r to be sure that both are correctly filled > (which

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Torsten Roehr
"Frederic Noyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On 30 avr. 04, at 11:00, Torsten Roehr wrote: > >> > > > > I think this is correct because the 3 key/value pairs from the first > > array > > are NOT in the s

Re: [PHP] Re: unexpected array_diff output

2004-04-30 Thread Torsten Roehr
"Frederic Noyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On 30 avr. 04, at 11:31, Torsten Roehr wrote: > > > "Frederic Noyer" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> > >> O

[PHP] Re: @session_start()?

2004-05-01 Thread Torsten Roehr
"Brandon Goodin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I noticed this notation in one of the PEAR packages @session_start()? What > is the purpose of the '@' sign? It suppresses/ignores any error output for this function. Regards, Torsten > > > > Thanks > > Brandon > > -

[PHP] Re: reversing an IF statement

2004-05-01 Thread Torsten Roehr
"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Often I end up using a "dumb" IF statement which to me seems that > it could have been done some other way. > > Example : > if( > ($_GET["id"]==1) or > ($_GET["mode"]=="home") or > ((!isset($_GET["item"])) &&

Re: [PHP] - Delete records in an Access DB

2004-05-01 Thread Torsten Roehr
So the problem is not the delete statement but that you cannot even open a connection, right? Have you tried PHP's ODBC functions to connect to the Access DB?: http://de.php.net/manual/en/function.odbc-connect.php There are some user comments regarding Access - maybe this helps. Regards, Torsten

[PHP] Re: Frage

2004-05-02 Thread Torsten Roehr
"Draw-A-Line" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hallo, > ich hoffe mir kann jemand bei folgendem Problem helfen. Habe ein Formular > erstellt und darin ist ein "file field" eingebettet zum Hochladen von > Dateien (z.B. Word-Dokumente). Habe den Zusatz enctype="multipart/

[PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
"Msa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > 'SELECT * FROM table WHERE YEAR(date) = ' . date('Y') . ' AND MONTH(date) > = > > ' . date('m') . ' ORDER BY SORT DESC' > > > > What column type is your date column of? I know that the above statement > > works with the MySQL dat

Re: [PHP] Re: repeating data from one column until data from anothercolumn changes

2004-05-04 Thread Torsten Roehr
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > msa wrote: > > My date format is as aboveI am getting the following error message: > > > > You have an error in your SQL syntax. Check the manual that corresponds to > > your MySQL server version for the right synta

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
"Msa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > date('m') was not parsed by php as it was in the string. Syntax > > highlighting would help you see it. Try: > > > > "SELECT * FROM NewsArchive W

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
"Daniel Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Are you looping through the record set? > > >> "SELECT * FROM NewsArchive WHERE YEAR(date) = '" . date('Y') . "' AND > >> MONTH(date) ='" . date('m') . "' ORDER BY sort DESC"; > > > > Well, still not working...but maybe

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
"Msa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Daniel Clark" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Are you looping through the record set? > > i thought I was, but it isn't working!! > > here is the code with all of the latest suggestions. > >

Re: [PHP] Class Help Extended

2004-05-06 Thread Torsten Roehr
"Richard Harb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > More often than not it's a good thing to assign 'default' values to > class variables like that. > > In this case though I've observed that common practice is to get the > user/pass values from a config file and pass them

[PHP] Re: I can't make session work, but cookie can, why?

2004-05-06 Thread Torsten Roehr
"Told" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I can't make session work if I set "session.use_trans_sid = 0", or I must > append SID to the URI to get session work. > And, the cookie works OK. > > Here is my test code: > > session_start(); > > if (!isset($_SESSION['test'

[PHP] Re: Calendar math .... how to count in week days....?

2004-05-06 Thread Torsten Roehr
"Anthony" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've run into a bit of a problem, that I know has been dealt with before, > but I don't know how to deal with it. Very simple, I have an application > that needs to do calendar math and do it specifically on business days. I

[PHP] Re: Carrying Variables

2004-05-15 Thread Torsten Roehr
"Ronald "The Newbie" Allen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How would I carry a variable from one page to another > > Here is what I mean > > I have a send.php page and this is sent to > insert_into_database.php where the values of the previous page are inserted > into

[PHP] Re: Carrying Variables

2004-05-15 Thread Torsten Roehr
ue with '"> This should work. Regards, Torsten > > > check.php > $event = $_GET['Event_Type']; > echo "$event"; > ?> > > This is still not working for me > > "Torsten Roehr" <[EMAIL PROTECTED]> wrote in message

[PHP] Re: New Newbie Question

2004-05-15 Thread Torsten Roehr
"Ronald "The Newbie" Allen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Here is my problem: > When I get the value of $date and I echo it it shows up just fine > > $date = date("Y-m-d H:i"); > echo "$date"; > 2004-05-15 16:20 > > but when I go to insert the value into a form like

[PHP] Re: New Newbie Question

2004-05-15 Thread Torsten Roehr
"Torsten Roehr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Ronald "The Newbie" Allen" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Here is my problem: > > When I get the value of $date and I ec

[PHP] How to get class name in static function (PHP 4.2.3)

2004-05-16 Thread Torsten Roehr
nts would be greatly appreciated. Thanks in advance! Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: change database from mysql to mssql

2004-05-17 Thread Torsten Roehr
"David" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all > > I have been using mysql as the database for my PHP application. > Now my manager ordered me to use Microsoft SQL Server as the database. > I have been using the mysql interface to access the database, so I have > to ch

Re: [PHP] [Newbie] Simple stats from mysql table data

2004-05-18 Thread Torsten Roehr
"Vans Hallden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >Here is one way: > >(probably not the best) > > I was able to get almost everything working with your help. Thanks!!! :) > > >>average ages for male/female respondents (database column 'age') > > > >SELECT AVG(age) FROM t

Re: [PHP] between date

2004-05-18 Thread Torsten Roehr
>"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message ews:[EMAIL PROTECTED] >[snip] >I have a table whereby I use the php date() and time() function. > >I retrieve the data etc, no problem. > >but I now need to perform a query of between dates. > >Is there a function or method to perform this. >[/

[PHP] Re: Date Function - Empty Value

2004-05-19 Thread Torsten Roehr
"Gabe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Environment: > PHP 4.3.6 > Access DB > W2K IIS 5 > > > I'm trying to store a date in a date/time field using the short date > format ( m/d/ ). For some reason it won't let me post an empty > value to that field in the DB. I'

[PHP] Re: Date Function - Empty Value

2004-05-19 Thread Torsten Roehr
"Gabe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Torsten Roehr wrote: > > > "Gabe" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > >>Torsten Roehr wrote: > >> > &

[PHP] Re: Date Function - Empty Value

2004-05-19 Thread Torsten Roehr
"Gabe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Torsten Roehr wrote: > > > "Gabe" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > >>Environment: > >>PHP 4.3.6 > >>Access D

[PHP] Re: Date Function - Empty Value

2004-05-20 Thread Torsten Roehr
"Gabe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Torsten Roehr wrote: > > "Gabe" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > >>Torsten Roehr wrote: > >> > >

[PHP] Re: an array question

2004-05-20 Thread Torsten Roehr
"Blake Schroeder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What is wrong with whis syntax: > $array = array("$_POST['input_1']","$_POST['input_2']"); You don't need the double quotes: $array = array($_POST['input_1'], $_POST['input_2']); Regards, Torsten -- PHP General Ma

[PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
"Michael R. Wayne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I've posted several times mentioning that I am completely unable > to cause sessions to persist. Over the intervening time, I have > replicated this problem to a different machine, with the same > results. Here's a

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
"Michael R. Wayne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, May 21, 2004 at 08:04:00PM +0200, Torsten Roehr wrote: > > > > As far as I remember session.use_trans_sid does NOT work with forms (action > > attribute). Have you trie

[PHP] Re: MDB2 and single INSERT statement, prepare+execute or just query?

2004-05-21 Thread Torsten Roehr
always why. Inserts don't happen very > often in my apps so compatibility accross multiple dbs is more important to > me than speed. Finally, is this the right place to ask questions about MDB2, > or is there a more specific group for discussing Pear projects? > Please send you

[PHP] Re: what is the preferred method for outputting HTML?

2004-05-21 Thread Torsten Roehr
ts=>['eenie','minie']), > p, > "What's your favorite color? ", > popup_menu(-name=>'color', >-values=>['red','green','blue','chartreuse']), > p, > submit, >

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
"Michael R. Wayne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, May 21, 2004 at 08:35:37PM +0200, Torsten Roehr wrote: > > Sorry, I'm an idiot! The ? was missing: > > > > > > > > Well, I spoke too soon. It d

[PHP] Re: Searching a file

2004-05-22 Thread Torsten Roehr
"Ian Barnes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > [code] > $file=file("/ian/testing.file"); file://Load the file into array > unset($file[0]); file://Remove the first #gc line > foreach($file as $line){ // Run through each array line > $array[]=ex

[PHP] Re: RSS/RDF generator

2004-05-22 Thread Torsten Roehr
"Electroteque" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there, I was wondering if there is a standard pear class like the > XML_Tree to build RSS/RDF documents from the database ? Let me know You just had to go to pear.php.net and type rss into the search form - not too muc

[PHP] Re: Searching a file

2004-05-22 Thread Torsten Roehr
"Ian Barnes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > [code] > $file=file("/ian/testing.file"); file://Load the file into array > unset($file[0]); file://Remove the first #gc line > foreach($file as $line){ // Run through each array line > $array[]=exp

Re: [PHP] Re: RSS/RDF generator

2004-05-22 Thread Torsten Roehr
"Electroteque" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > > You just had to go to pear.php.net and type rss into the search form - not > > too much effort, right? > > http://pear.php.net/package/XML_RSS > > > > Regards, Torsten > > > > Hi there, if you read my email properl

[PHP] Re: concatenating strings

2004-05-22 Thread Torsten Roehr
"Bill Freeburg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > how do I add newline commands in the middle of a text string? > > I'm sending an email with the function > mail($sendto,$subject,$message,$headers) > > The message is > $message = "My name is " . $myname . " My favorite

[PHP] Re: How to display all keys in a multi-dim array?

2004-05-23 Thread Torsten Roehr
"1"; > $array['a']['b'] = "2"; > $array['a']['b']['c'] = "3"; > $array['a']['b']['c']['d'] = "4"; > > What I need is to be able to somehow print out the

Re: [PHP] Re: How to display all keys in a multi-dim array?

2004-05-23 Thread Torsten Roehr
"Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Torsten, > > Sunday, May 23, 2004, 6:44:08 PM, you wrote: > > >> $array = array(); > >> $array['a'] = "1"; > >> $array['a']['b'] = "2"; > >> $array['a']['b']['c'] = "3"; > >> $array['a']['b']['c']['d'] = "4"; > > TR

[PHP] Re: sessions

2004-05-23 Thread Torsten Roehr
Haven't followed this thread yet. Are you using cookies or passing the session id via GET? Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: best way to do this with arrays...

2004-05-24 Thread Torsten Roehr
tr($check,0,4)); if ($timestampCheck >= $timestampStart && $timestampCheck <= $timestampEnd) { // do what you want } Haven't tested it. Hope it works for you. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions simply do not work?

2004-05-25 Thread Torsten Roehr
x27;re diving into the PHP core, have you tried using a DB (MySQL) as the container for your session data? You could easily set up a test script with PEAR's DB and HTTP_Session. I'm using this configuration and my provider just upgraded to 4.3.6 - no problems at all. http://pear.php.net/p

Re: [PHP] Re: Customer Session Handlers Using MySQL

2004-05-25 Thread Torsten Roehr
source code. It includes a DB session container: http://pear.php.net/package/HTTP_Session Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: session & HTML target = "_blank" element

2004-05-26 Thread Torsten Roehr
"Hardik Doshi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi group, > > I have discovered a strange behaviour while using > session. I have a page from which i am opening other > pages using target = "_blank" element. Now when i open > the child page, it doesn't get $_SESSION val

[PHP] Re: File Upload within form

2004-05-26 Thread Torsten Roehr
DED TO, > > if($file){ > print("File name: $file_name/n"); > print("File size: $file_size bytes/n"); This should be: if (isset($_FILES) && isset($_FILES['spec'])) { echo 'File name: ' . $_FILES['spec']['name'] . ''

[PHP] Re: clearing new pages

2004-05-26 Thread Torsten Roehr
goodbye > > how do I clear the screen so the end results looks like this: a.php: echo 'hello'; header('location: b.php'); exit; Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Changing variable names in a while loop

2004-05-28 Thread Torsten Roehr
if I put in > $composer$countything that will just output the value of $composer followed > by the value for $countything, but I want it to output the value for > $composer1 if $countything=1 or $composer10 if $countything=10 . Is there > something I can do with variable variables? I co

[PHP] Re: Send HTML/plain text email using PHP

2004-05-28 Thread Torsten Roehr
Maybe you could use a ready-made package such as PEAR's Mail_Mime: http://pear.php.net/package/Mail_Mime Regards, Torsten Roehr "Matt Macleod" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've been having a little trouble configuring a script to s

Re: [PHP] Re: Changing variable names in a while loop

2004-05-28 Thread Torsten Roehr
"I.A. Gray" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks, Torsten. That clears things up quite a bit. I do find the PHP > manual a little heavy going sometimes. Does this mean then that I have to > do this: > $tempcomposer = 'composer' . $countything; > $tempsubheading = '

[PHP] Re: Mysql Problem

2004-05-28 Thread Torsten Roehr
','PHP') group by > name; You are missing the closing quote here! Please set your error reporting to E_ALL while developing: ini_set('error_reporting', E_ALL); Regards, Torsten Roehr > $mysql_rslt1 = mysql_query($sql, $mysql_bconn) > or die ("Could

Re: [PHP] making selection in drop down

2004-05-28 Thread Torsten Roehr
fault based on the previous search. > > > >Make Selection > $i = 1; > while($row = mssql_fetch_array($result)) > { > $v = $row['loc_id']; > $n = $row['loc_city']; > echo "$n"; > } Try this: while ($row = mssql_fetch_array($result)) {

Re: [PHP] datetime formatting problem

2004-05-28 Thread Torsten Roehr
> > / begin code demo > > > > > > function formatDate($val) > > { > > $arr = explode("-", $val); > > return date("M d, Y g:i A", mktime(0,0,0, $arr[1], $arr[2], $arr[0])); > > } Hi Matt, try this: function formatDate($val)

Re: [PHP] Text file wont' have newlines?

2004-05-29 Thread Torsten Roehr
"Ashwin Purohit" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi everybody, > > I have this script in a file that allows users to upload files, and I want > to know who submitted what so I write $userfile_name and $credit1(their > name) to CREDIT.txt in the same directory like so :

<    1   2   3   4   >