Re: [PHP] occasional mcrypt problems

2003-01-10 Thread Steve Yates
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > try > $_POST['Credit_Card_Number']=stripslashes($_POST['Credit_Card_Number']); But if magic_quotes_gpc=on shouldn't that happen automat

[PHP] occasional mcrypt problems

2003-01-10 Thread Steve Yates
odule_close($td); Decryption code: function mydecrypt($enc) { global $td; return rtrim(mdecrypt_generic($td, $enc), "\0"); } Thanks for any insight! - Steve Yates - ASCII stupid question, get a stupid ANSI. ~ Taglines by Taglinator - www.srtware.com ~ -- PHP General Mailing

Re: [PHP] mmmmm SELECT

2003-01-06 Thread Steve Edberg
llation is set up to not echo PHP errormessages back to the screen, that's why you didn't see an error message. -steve ++ | Steve Edberg [EMAIL PROTECTED] | | Databa

Re: [PHP] Baffling output

2003-01-03 Thread Steve Keller
At 1/3/2003 12:25 AM, Lightfirst wrote: Can someone explain to me why the loop that counts to 99 appears before the 5 by 5 grid in the following php code? Yes. ## else { ## echo ""; ## echo ""; ## echo "Hello" ; $i++; ## } //for else You start the tags, but whenever your conditional echoes

Re: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Steve Keller
At 1/3/2003 05:21 PM, you wrote: I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the source generated it looks exa

RE: [PHP] Dropping Tables

2002-12-29 Thread Steve Buehler
Thank You so much John and Michael. SHOW TABLES LIKE 'a%' worked like a charm and was exactly what I was looking for. I guess my searches were using the wrong keywords. Kind of figures. Some of my searches were turning up 1000's of results. How do you know whether it's an "active" a* table

[PHP] Dropping Tables

2002-12-29 Thread Steve Buehler
ot;, I will need the script to find them and drop them. Has anybody done this before? I would sure appreciate some help here. Thanks Steve -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ow3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cheap Hosting

2002-12-27 Thread Steve Jackson
Dotserv are high response and fairly cheap depending on what you need. Or there's phpwebhosting.com http://www.dotserv.com http://www.phpwebhosting.com > -Original Message- > From: Edward Peloke [mailto:[EMAIL PROTECTED]] > Sent: 27 December 2002 18:29 > To: PHP List > Subject: RE: [PHP] C

Re: [PHP] Images not stored in Databases

2002-12-24 Thread Steve Vernon
? Also everyone logs in using there email address, not a username, so I would prefer not to have to give them usernames! THanks, Steve > How will the picture make it into the db? Will they be uploaded by users? > I had to create an upload script for a sight that puts the picture

[PHP] Images not stored in Databases

2002-12-24 Thread Steve Vernon
d anything suitable. Any help would be great. Have a great Christmas. Love, Steve XX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Preperation for News CMS?

2002-12-23 Thread Steve Jackson
o set-up a preview function? I was thinking that I should add checkbox which makes the article live so that the user could preview the page first from a link but is there any better way to do it? Thanks for your help. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL

[PHP] Email problems.

2002-12-22 Thread Steve Jackson
I have generated a page on our server using PHP (from within a CMS system) which I renamed the output .html to use in an html email. My problem is when I cut and paste the HTML into the email (Outlook) it either: displays the code, displays the html email and then when it's sent, sends it as an att

[PHP] Re: fgets() question?

2002-12-22 Thread Steve Yates
ne should return the newline (\n or \r\n), according to http://www.php.net/manual/en/function.fgets.php. Also try using '===' (3 = signs) as the operator, which enforces type checking on a comparison). - Steve Yates - If you only have a nail every tool looks like a hammer. ~ Taglines by

[PHP] Re: real time output

2002-12-21 Thread Steve Yates
the output_buffering INI setting set to "no value". Seems odd since I got the Perl script to not buffer, which would imply it's not a browser issue. - Steve Yates - A fool and his money are soon popular. ~ Taglines by Taglinator - www.srtware.com ~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] JavaScript or browser detection

2002-12-19 Thread Steve Vernon
r for JavaScript, so ignore this bit of the file. Thanks, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Security issues with file uploads

2002-12-18 Thread Steve Fitzgerald
would it make any difference if this directory was also password-protected? Is there anything else I have not covered or should be aware of? Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Odd Strpos Behavior

2002-12-16 Thread Steve Keller
At 12/14/2002 12:50 AM, John W. Holmes wrote: > And here's a good example of why you should always test each solution > and time it to see what's better. I was recommending a > preg_replace_callback solution which I thought, as a lot of other people > would also think, is a lot faster that your ow

[PHP] Image resize with database

2002-12-16 Thread Steve Vernon
the function below would work to do to return a text resized version. It does sort of works, but makes a picture where only part of it is the picture (top part), the rest is blank. Any help would be gr8! THanks, Steve function shrink_picture($tmp_name,$size,$name

[PHP] Re: Mail() Not working right

2002-12-12 Thread Steve Yates
I don't think this shows an error if it doesn't work. Try $mailsuccess = mail(...); if (!$mailsuccess) { echo "oops"; } - Steve Yates - How often should we practice sex before it is safe? ~ Taglines by Taglinator - www.srtware.com ~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Smarty + css + dreamweaver

2002-12-12 Thread Steve Yates
closely at /scriptN.php I am sure the template's link is not to "../style.css". - Steve Yates - Remember, you're unique. Just like everybody else. ~ Taglines by Taglinator - www.srtware.com ~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Odd Strpos Behavior

2002-12-12 Thread Steve Keller
At 12/11/2002 08:09 PM, you wrote: Okay, so how do you know what to replace something like [author] with? What exactly are you doing again? I've forgotten the original question. :) Ok, got a sentence, like: a pile of [metal] 600 feet wide and 30 feet tall. On top of it is a [monster].

RE: [PHP] Update query

2002-12-12 Thread Steve Jackson
It doesn't work in that it doesn't update the database. I have a form which when loaded takes a variable ItemCode from the previous page (which gets the Itemcode from the DB) and puts it into a hidden field which I call oldItemCode, then when I try to update the $ItemCode row in the database with t

Re: [PHP] 2 dates, difference in days AARGH!!

2002-12-12 Thread Steve Yates
hat just slow down processing as PHP jumps in & out of "code mode?" - Steve Yates - When you do a good deed get a receipt, in case heaven is like the IRS. ~ Taglines by Taglinator - www.srtware.com ~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Update query

2002-12-12 Thread Steve Jackson
, catid = '$catid', price = '$price', description = '$description' shortdesc = '$shortdesc' where ItemCode='$oldItemCode'"; Steve Jackson Web Developer Viola Systems

RE: [PHP] Odd Strpos Behavior

2002-12-11 Thread Steve Keller
At 12/9/2002 07:20 PM, you wrote: It'd be easier to use a regular expression for something like this. Something like this would work (from PHP Architect): $s = "I am going to be {a} years old on the {b}th of November, {c}."; $a = array( "a" => "one hundred", "b" => "seventeen", "c" => "two thous

[PHP] Looping through Form Elements in a form

2002-12-11 Thread Steve Vernon
check all the elements in a form in PHP would be nice, then if it fails it would return an array with the wrong fields, and the error, this could then be used to make a page where they correct there mistakes. Thanks! Love, Steve -- PHP General Mailing List (http://www.php.net/) To

Re: Fwd: RE: [PHP] Odd Strpos Behavior

2002-12-11 Thread Steve Keller
At 12/10/2002 03:43 PM, you wrote: John's suggestion of using '{', and '}' as the tag delimiters was to simplify the regex. You can continue to use '[', and ']' as your delimiters, just change the regex accordingly -- and don't forget that '[', and ']' needs to be escaped. Ah, all right. That w

RE: [PHP] Populating form value fields.

2002-12-11 Thread Steve Jackson
Cheers Jason. Sorted. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: 11. joulukuuta 2002 17:17 > To: [EMAIL PROTECTED] > Su

[PHP] Populating form value fields.

2002-12-11 Thread Steve Jackson
$result to get these values to appear but am stuck. How therefore do I select everything from the database sorted by ItemCode and then displayed in a form as shown above. Regards, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 --

RE: [PHP] Rename an upload

2002-12-11 Thread Steve Jackson
> On Wednesday 11 December 2002 17:30, Steve Jackson wrote: > > I'm trying to rename an uploaded file with the value of a select I > > have in the uploaded form. Can someone point me in the right > > direction. The PHP.net rename manual isn't helping a lot? My

[PHP] Rename an upload

2002-12-11 Thread Steve Jackson
attack. Filename:" .$HTTP_POST_FILES['userfile']['tmp_name'] } ?> TIA. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do I populate a select?

2002-12-10 Thread Steve Jackson
ELECT catname FROM categories ORDER BY catid"); But I want to give each catname in the DB a unique name in a form select and don't know how to go about it. Tutorials or tips anyone? Regards, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mob

[PHP] server problems.

2002-12-10 Thread Steve Jackson
part of my database, but everything else will work OK. Any ideas? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Theoretical - Device server using PHP - Is this possible?

2002-12-10 Thread Steve Jackson
advance. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fwd: RE: [PHP] Odd Strpos Behavior

2002-12-09 Thread Steve Keller
At 12/9/2002 07:20 PM, John W. Holmes wrote: > It'd be easier to use a regular expression for something like this. > Something like this would work (from PHP Architect): I appreciate that, but considering I'm working from about 1200 files that already exist and use [] to denote table names, I k

[PHP] Odd Strpos Behavior

2002-12-09 Thread Steve Keller
I'm getting a really weird return from Strpos. What I'm doing is this, and anyone familiar with any of the table-runner programs for RPG's will know what I'm getting at here, I have a fields, like [adjective], [noun], etc., which I need to pull out and replace with values from included php files

[PHP] Different output on two different servers

2002-12-09 Thread Steve Jackson
e database on the production server. Where should I start looking to de-bug this? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies help please

2002-12-06 Thread Steve Vernon
Thanks a million, must of had something else on my mind ;-) Love, Steve XX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cookies help please

2002-12-06 Thread Steve Vernon
if I have not explained it right, I want a feature like amazon where you go back to a site and you are still logged in. The test member has rememberpassword as y. The code below keeps my sessions but the cookie bit dosent work. Thanks, Steve XX /* Check a session is valid

[PHP] Re: mcrypt 2.4.x - trouble with small data fields?

2002-12-03 Thread Steve Yates
t; characters when encrypted. Mcrypt also apparently needs the extra characters when decrypting. - Steve Yates - If at first you don't succeed, lower your standards. ~ Taglines by Taglinator - www.srtware.com ~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Prevent storing data when reload

2002-12-03 Thread Steve Yates
"Lars Espelid" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When I reload the page the data gets stored once more. if (record already exists) { echo "hey you hit reload!" } else { [save record to database] } - Stev

[PHP] Cold Fusion conversion issues: app vars and cached queries

2002-12-03 Thread Steve W
can be resolved. Thanks in advance, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bad File Mode?

2002-11-29 Thread Steve Keller
At 11/28/2002 01:51 PM, Ernest E Vogelsinger wrote: > $data = "mtype=XMLDOC&outfile=true"; > $dataFile = >"http://www.healthtvchannel.org/courses/pay/data/test.xml";; > $fileSize = filesize($dataFile); Ah. It is a local file, I was just using an absolute reference for it

[PHP] mcrypt 2.4.x - trouble with small data fields?

2002-11-27 Thread Steve Yates
eneric_deinit() seems to be undefined on my system? Is that an mcrypt issue or an interaction between PHP 4.1.2 and mcrypt 2.4.x? - Steve Yates - Do trees moving back and forth make the wind blow? ~ Taglines by Taglinator - www.srtware.com ~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple page form

2002-11-27 Thread Steve Keller
At 11/26/2002 10:42 AM, Shane wrote: It's been a while since I have done any PHP work. I am creating an online employment application using multiple forms for a client. I was going to use PHP. I don't remember if I need to pass variables along with the form for each page, or can I just call them

[PHP] Bad File Mode?

2002-11-27 Thread Steve Keller
I'm still trying to get a file posted to another server, but I seem to have run across an odd snag, and I was hoping someone can point out where I've gone wrong. Here's the code: $data = "mtype=XMLDOC&outfile=true"; $dataFile = "http://www.healthtvchannel.org/courses/pay/data/t

[PHP] Re: Making verification code harder to OCR?

2002-11-26 Thread Steve Edberg
sh, or a 3-d looking one, perhaps combined with the color technique below. -steve At 8:09 AM +0100 11/26/02, Derick Rethans <[EMAIL PROTECTED]> wrote: Leif K-Brooks wrote: I'm using a verification code image to stop automated sign ups, but two hackers seem to be OCRing it. I'

Re: [PHP] Newbie mail () question

2002-11-22 Thread Steve Keller
At 11/22/2002 04:30 PM, Duncan Ellwood wrote: Can I personalise this a bit to display the From: as the email address that the user has supplied i.e $Email You can specify the "FROM" field in the headers before you call the mail() function. It's all in the manual. http://www.php.net/manual/

Re: [PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
At 11/21/2002 06:21 PM, Bret L Conard wrote: one of these should work to import the file The following options expect a file descriptor that is obtained by using the fopen() function: CURLOPT_FILE: The file where the output of your transfer should be placed, the default is STDOUT. CURLOPT_INFILE

Fwd: RE: [PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
At 11/21/2002 05:16 PM, Jonathan Rosenberg wrote: > I suspect your problem is that CURL is not built with SSL support. To test > this, replace the https:/.../ with a reference to a non-SSL URL > (http://.../). If you get a return that, you need to build CURL with SSL > support. Indeed it does.

Re: [PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
At 11/21/2002 03:18 PM, Bret L Conard wrote: Really appreciate the help Bret. But I've still got some problems: (FYI - I am using authorize.net, so some of the response parameters may be different for you) Actually, I appreciate the fields demonstration because it made me realize I was missin

Re: [PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
At 11/21/2002 11:55 AM, greg R wrote: I don't think cURL is very intuitive. Well, I'm glad to see someone else say that. Makes me feel less retarded. Can you at least echo a response code from your function, such as $res = curl_setopt($ch, CURLOPT_URL, "https://partners.netledger.com/SmbXml

[PHP] No Reply From cURL

2002-11-21 Thread Steve Keller
I apologize for being a pest about this, I'm just not getting it. I'm attempting to open a connection to NetLedger to post an XML file. I'm attempting this basic code, which is pretty much what I find everywhere: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://partners.netledger.com/

[PHP] copying tables

2002-11-20 Thread Steve Buehler
ut of it, then I need a copy of that table for a subroutine that will be running multiple times and need the same information to start off with. Thanks for any help Steve -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ow3 -

Re: [PHP] Re: cURL with PHP Help?

2002-11-20 Thread Steve Keller
At 11/20/2002 08:46 AM, you wrote: >Have you tried this: >http://curl.haxx.se/libcurl/php/examples/ Yeah. That's where you end up from the Sourcefourge site. There's a sample on there for a multi-part post, but I'm confused as to how it works. >Would help if you posted some code, or errors or s

[PHP] cURL with PHP Help?

2002-11-19 Thread Steve Keller
Ok, I'm going to break down and ask for help. I'm trying to post an XML file to NetLedger through HTTPs, but cURL isn't returning any errors when I run through PHP, and the file isn't getting there. Can someone point me in the direction of a site with some *good* help on how to do file posting

Re: [PHP] catching a robot or spider - asking too

2002-11-19 Thread Steve Vernon
nly the home page and the robot page. So you could do a page with your links on, that is linked from the home page but hard to click on! And do the meta tags on other pages to stop robots. Could work?! Love, Steve XX > > does anybody know a way to make a distinction > > between r

[PHP] Expert Paid Help Needed

2002-11-19 Thread Steve Buehler
would help. We have some people that work for us JUST for web/server space. Steve Buehler IT Director Internet Business Applications, LLC 11638 W. 90th St. Overland Park, Kansas 66214 913-438-3074 x 7 steve @ vespro.com

Re: [PHP] decode

2002-11-18 Thread Steve Keller
At 11/18/2002 07:55 AM, you wrote: I have document in encryption type : B*C*N**N but I don't know how do abbab abbab Well, assuming that the above isn't someone sending you The Kinks, and flogging myself for replying to an off-topic post... A simple Google search should have directed you rig

RE: [PHP] newbie's question

2002-11-15 Thread Steve Keller
Err... sorry. The logic was there but my fingers got a bit ahead of my brain. The check works, but if you want to just check if it's empty turn the conditional to a negative, like so: if (!$testVar) { etc. } That makes it "If NOT $testVar" > I may be crazy, but wouldn't if ($variable) work

RE: [PHP] newbie's question

2002-11-15 Thread Steve Keller
At 11/15/2002 06:09 PM, you wrote: Don't know about a correct way but you can use if(empty($variable)) I may be crazy, but wouldn't if ($variable) work just as well? If the string is empty it'll return a negatory on that check. Lemme double check that. $testVar = ""; if ($testVar) { echo "

Re: [PHP] query question

2002-11-14 Thread Steve Buehler
Not sure if I wrote and thanked you or not, but this did the trick. THANK YOU THANK YOU THANK YOU!!! Steve At 08:41 PM 11/14/2002 +0100, Marek Kilimajer wrote: This is checked: function getstart_end(){ $result=mysql_query("SELECT * FROM aplayabletimes ORDER B

Re: [PHP] query question

2002-11-14 Thread Steve Buehler
00 - 00:30:00 Problem is that it isn't giving me just the start and end times. I will keep working on it. Thanks Steve At 12:48 PM 11/14/2002 -0600, you wrote: Thanks for the help, but that is not actually producing the desired results either. This returns the following results: 00:00:0

Re: [PHP] query question

2002-11-14 Thread Steve Buehler
nd echo $row->min . " - "; // print this time as new start } $i = $tmp; // keep this new time for next loop } } echo $row->min ."\n"; // print last row } At 07:09 PM

[PHP] query question

2002-11-14 Thread Steve Buehler
hat too. function getstart_end(){ $result=mysql_query("SELECT * FROM aplayabletimes ORDER BY min"); while(($row=mysql_fetch_object($result))){ if(!$i){ echo $row->min . " - "; }else{ } $i++; } } // This just deletes the temporary table function drop

[PHP] NEVERMIND: mysql/php large integer query oddity

2002-11-13 Thread Steve Edberg
Boy do I REALLY need some coffee...one query was on the production database, the other was on the development copy. I suppose I should set the programmer_first_check_database_parameter_you_idiot setting in php.ini... Sorry for consuming unnecessary list space. -steve I have a query

[PHP] mysql/php large integer query oddity

2002-11-13 Thread Steve Edberg
there was no change in the numbers. I've never seen anything like this...perhaps I need more coffee? Versions: Apache 1.3.26/php 4.1.2, using mysql client API 3.23.47 MySQL 3.23.47-log Platform: SunOS 5.8 sun4u sparc SUNW,Sun-Fire-280R Thanks in advance, steve -- +---

RE: [PHP] PHP and MySQL sorting using COUNT

2002-11-13 Thread Steve Edberg
Actually, using your original query and referring to $row['count(*)'] would work too. However, when using calculated fields I always use a column alias as Rich recommends - it makes things a lot clearer. -steve At 1:54 PM + 11/13/02, "Rich Gray" <[EMAIL

[PHP] Online Booking System/Framework question

2002-11-10 Thread Steve Purkiss
waste lots of time on the wrong one. The site is http://www.belugablues.com (there's no events on it at the moment - the content manager hasn't quite got round the concept of having to keep a site up-to-date, but will do :O) - you can log in using the username 'testing' and passwor

RE: [PHP] Help me learn! with an explanation of these two functions.

2002-11-07 Thread Steve Jackson
Of course you are correct. I forgot to remove the $row["orderid"] etc.. I was just testing the function and thought I'd post the code rather than waste someones time answering me. However thanks for the help. Much appreciated. Steve Jackson Web Developer Viola Sy

Re: [PHP] Regular Expression

2002-11-07 Thread Steve Edberg
the output you may want to investigate PHP's file/directory functions instead: http://php.he.net/manual/en/ref.dir.php http://php.he.net/manual/en/ref.filesystem.php -steve At 10:33 PM -0800 11/6/02, Salman wrote: Hi, I have this ereg call ereg("([-d])[rwxst-]{9

RE: [PHP] Help me learn! with an explanation of these two functions.

2002-11-07 Thread Steve Jackson
w); { //echo "tests and "; echo $row["orderid"]; echo $row["ship_name"]; } } } Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original

RE: [PHP] Help me learn! with an explanation of these two functions.

2002-11-06 Thread Steve Jackson
My second query still doesn't return anything? Even with $orderid = $row removed as Jason suggested. This is my current function. function get_order_numbers() { $conn = db_connect(); $query = "select orders.orderid from orders, email where orders.orderid = email.orderid and email.checked='no'"; $

RE: [PHP] New to PHP, and stuck

2002-11-06 Thread Steve Bradwell
from there, it will tell you where your syntax is wrong. HTH, Steve Bradwell MIS Department. "If you give someone a program, you will frustrate them for a day. If you teach them how to program, you will frustrate them for a lifetime." -Original Message- From: Markus Jäntti [mail

RE: [PHP] Help me learn! with an explanation of these two functions.

2002-11-06 Thread Steve Jackson
> On Wednesday 06 November 2002 16:52, Steve Jackson wrote: > > Ok this is starting to get complex! (For me anyway) > > This is my function: > > function get_order_numbers() > > { > > $conn = db_connect(); > > $query = "select orders.orderid

RE: [PHP] Help me learn! with an explanation of these two functions.

2002-11-06 Thread Steve Jackson
Ok this is starting to get complex! (For me anyway) This is my function: function get_order_numbers() { $conn = db_connect(); $query = "select orders.orderid from orders, email where orders.orderid = email.orderid and email.checked='no'"; $result = mysql_query($query) or die("Error: cannot select

RE: [PHP] Help me learn! with an explanation of these two functions.

2002-11-05 Thread Steve Jackson
t;.mysql_error()); while( $row = mysql_fetch_array($result)) { extract($row); $orderid = $row; return $orderid; } } What does it mean ambiguous? Cheeky error! Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED]

[PHP] Help me learn! with an explanation of these two functions.

2002-11-05 Thread Steve Jackson
p before I actually attempt to do what I am after. I'll look back on this tomorrow so any help will be greatly appreciated. Kind regards, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Cookies disabled, new session ID each click!

2002-11-04 Thread Steve Fatula
connect to the same machine without cookies, same result. Steve Jason Wong wrote: On Monday 04 November 2002 10:24, Steve Fatula wrote: If you want to see a site where the small program works (and be SURE and turn cookies off), click here: http://www.thewebmakerscorner.com/snapmods_new

[PHP] Address array?

2002-11-04 Thread Steve Jackson
w["ship_city"]; $ship_zip = $row["ship_zip"]; $ship_country = $row["ship_country"]; } } Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Cookies disabled, new session ID each click!

2002-11-03 Thread Steve Fatula
? Logically, I don't see any settings that could possibly affect the outcome using this technique. Steve Steve Fatula wrote: Oleg and anyone else, PLEASE READ THE POST. This is vendor software, this is what it does, it doesn't matter if it's the way you would do it, if it is t

[PHP] Re: Cookies disabled, new session ID each click!

2002-11-03 Thread Steve Fatula
Oleg and anyone else, PLEASE READ THE POST. This is vendor software, this is what it does, it doesn't matter if it's the way you would do it, if it is the best way, or anything else. So, please tell me why the short program I uploaded as an example does or does not work for you. St

Re: [PHP] Cookies disabled, new session ID each click!

2002-11-03 Thread Steve Fatula
eason it does not work for me? Steve Chris Shiflett wrote: Steve, Check your php.ini file. PHP uses cookies for maintaining your Web client's unique ID, and unless you have use_trans_sid set, it will not attempt to pass the unique ID on the URL for those who have cookies disabled. Ch

[PHP] Cookies disabled, new session ID each click!

2002-11-02 Thread Steve Fatula
nt is IE5.5 with cookies disabled, running on NT. New session file is generated even though one already existed. This happens every other click as SID is blank every other click. Please help me understand what the issue is. Steve session_name('Steve'); session_start(); ?>

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread Steve Keller
At 10/31/2002 03:00 PM, John Wards wrote: On Thursday 31 Oct 2002 3:00 pm, jianking wrote: > Who can tell me where I can get the cracked Zend Encoder 3.0 ? Are you a muppet? This list is run by the people who make Zend Encoder! FOOL Ah, my first laugh of the day. -- S. Keller UI Engineer T

[PHP] Help please.

2002-11-01 Thread Steve Jackson
g how can I display that? I have called it in another page by doing get_shipping($shipping) And then Echo "test $shipping"; But that doesn't work. Ideas where I'm going wrong this time? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECT

[PHP] Get shipping problem continued!

2002-11-01 Thread Steve Jackson
ngvar) { $conn = db_connect(); $query = mysql_query("SELECT MAX(receipt_id) from receipts"); $myrow = mysql_fetch_row($query); $shippingvar = $myrow["shipping"]; return $shippingvar; } Surely it can't be much more complicated than that? Help please. Smoked 10 fags already

[PHP] Simple Problems taking me hours to solve!

2002-11-01 Thread Steve Jackson
ould return the last record? It doesn't return anything however. Any ideas? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com <http://www.violasystems.com/> [EMAIL PROTECTED] Mobile +358 50 343 5159

[PHP] How do you select?

2002-10-31 Thread Steve Jackson
I want to the select the very last record from my MySQL DB. How do I do it? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com <http://www.violasystems.com/> [EMAIL PROTECTED] Mobile +358 50 343 5159

[PHP] At last an error message!

2002-10-31 Thread Steve Jackson
ne 129 Warning: Wrong parameter count for mysql_result() in order_fns.php on line 131 What does that mean? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com <http://www.violasystems.com/> [EMAIL PROTECTED] Mobile +358 50 343 5159

[PHP] Anything wrong with this function?

2002-10-31 Thread Steve Jackson
t;; display_cart($cart, false, 0); echo " "; echo " "; display_success_form(); //empty shopping cart //session_destroy(); do_html_footer(); ?> Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com <http://www.violasystems.com/> [EMAIL PROTECTED] Mobile +358 50 343 5159

[PHP] Php web hosting

2002-10-30 Thread Steve Jackson
olume sites with a feature rich hosting solution? Any examples of Phpwebhosting welcomed as well. regards steve.

RE: [PHP] Yahoo moves to PHP

2002-10-30 Thread Steve Bradwell
We're taking over. Steve Bradwell MIS Department. "If you give someone a program, you will frustrate them for a day. If you teach them how to program, you will frustrate them for a lifetime." -Original Message- From: Nick Wilson [mailto:nick@;tioka.com] Sent: Wednes

Re: [PHP] Re: confirm subscribe to php-general@lists.php.net

2002-10-28 Thread Steve Purkiss
Whoops! Sorry about that. Hello everyone -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: confirm subscribe to php-general@lists.php.net

2002-10-28 Thread Steve Purkiss
eived: from unknown (HELO php.net) (64.246.30.37) > by pb1.pair.com with SMTP; 28 Oct 2002 16:13:29 - > Received: (qmail 9903 invoked by uid 99); 28 Oct 2002 16:10:05 - > Date: 28 Oct 2002 16:10:05 - > Message-ID: <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] &g

[PHP] New Error?

2002-10-28 Thread Steve Jackson
t;, "back", "Back"); echo ""; } } else { echo " You did not fill in all the fields, please try again."; echo " "; display_button("checkout.php", "back", "Back"); echo ""; } do_html_footer(); ?> Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com <http://www.violasystems.com/> [EMAIL PROTECTED] Mobile +358 50 343 5159

[PHP] Displaying one of three functions.

2002-10-28 Thread Steve Jackson
ress="" display function 2 or if country isn't finland do 3? Tried all morning and repeatedly failed! Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com <http://www.violasystems.com/> [EMAIL PROTECTED] Mobile +358 50 343 5159

[PHP] Here's a weird one!

2002-10-27 Thread Steve Jackson
t($product["price"], 2); echo ""; // if we allow changes, quantities are in text boxes if ($change == true) echo ""; else echo $qty; echo "€ ".number_format($product["price"]*$qty,2)."\n"; } // display total row echo "    $items € ".number_format($total_price, 2). " "; // display save change button if($change == true) { echo "      "; } echo ""; } Any help much appreciated. rgds Steve.

[PHP] Can anyone help please.

2002-10-27 Thread Steve Jackson
I have two test carts online at the moment. This one works fine: http://www.violasystems.com/shop/ this one is the one I want to get working http://www.violasystems.com/shop_testing/ The code for the first shop basically increments the cart by one when the submit button is added using the comment

[PHP] Error?

2002-10-27 Thread Steve Jackson
I get the following error and I don't know why this is the code: if($new) { $details = get_product_details($new); if($details["catid"]) $target = "show_cat.php?catid=".$details["catid"]; //line 55 is the bracket below. } $path = $PHP_SELF; $path = str_replace("show_cart.php",

<    4   5   6   7   8   9   10   11   12   13   >