[PHP] Globals set to off - Sessions

2003-10-27 Thread Steve Jackson
Do admin functions } Else { //Do login form } How do I adapt the check_admin_user() function and the pages to work in 4.33? Thanks, Steve Jackson Web Development and Marketing Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General Mail

RE: [PHP] This is my fourth day of hitting this brick wall! Anyone...Purleeeeese help!

2003-09-18 Thread Steve Jackson
y can help someone else! Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Steve Jackson [mailto:[EMAIL PROTECTED] > Sent: 18. syyskuuta 2003 12:19 >

RE: [PHP] This is my fourth day of hitting this brick wall! Anyone...Purleeeeese help!

2003-09-18 Thread Steve Jackson
> Have you tried the obvious, such as using browsers other than > IE? Or a > different version of IE? > So far I've tried IE 6.0.2, IE 5.0, Netscape 7 and they don't work. > Fact is that there are versions of IE that have broken mime handling. This I didn't know, so I just tried it on Konqu

[PHP] This is my fourth day of hitting this brick wall! Anyone...Purleeeeese help!

2003-09-18 Thread Steve Jackson
esource is #1 Has anyone got any clue what the problem is? Steve Jackson Web Development and Marketing Manager 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] Getting part of a string...Was protecting a file via php

2003-09-17 Thread Steve Jackson
27;get.php?file=','','$file'); $p = explode('.', $pfile); $extension = $p[sizeof($p)-1]; $pfile when echoed is $file $file when echoed is the correct name of the file which is even more confusing. I figured that $file would include the URL which might be why it ha

RE: [PHP] Getting part of a string...Was protecting a file via php

2003-09-17 Thread Steve Jackson
Thanks to all so far. However I am still having problems I have directory outside the root with PDF's in it. The links to the PDF files are called successfully by this function in a page I call getlinks.php function do_non_root_links() { define('FILEDIR', '/home/.sites/144/site281/downloads/'); /

[PHP] Getting part of a string...Was protecting a file via php

2003-09-16 Thread Steve Jackson
// force download dialog if no extension defined. header("Content-type: application/octet-stream\n"); header("Content-disposition: attachment; filename=\"$file\"\n"); break; } Steve Jackson Web Development and Marketing Manager 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

FW: [PHP] Protecting a file via PHP.

2003-09-16 Thread Steve Jackson
Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -Original Message- From: Steve Jackson [mailto:[EMAIL PROTECTED] Sent: 16. syyskuuta 2003 12:15 To: '[EMAIL PROTECTED]' Subject

[PHP] Protecting a file via PHP.

2003-09-16 Thread Steve Jackson
to which the file is served to (a temp) or what? No matter what I've tried I get no error message and the browser (IE6) just hangs so it appears that PHP is trying to serve the file but failing for some reason. What is that directory I am supposed to define? What am I doing wrong? Steve Ja

[PHP] So in summary this can't be done due to permission problems?

2003-07-11 Thread Steve Jackson
around that due to permission settings on the webroot? So there is no way that PHP can write to the server unless the directory it's writing in is executable? Thanks for continued help. Cheers, Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [

RE: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Steve Jackson
> You *are* using the correct user/pass? It should be the same > as what you use to upload files to your webroot. > > If you can't get this to work then try the ftp functions. Yes I am. > > Alternatively, you could consider storing them in a DB. Yes that's what I was thinking they only need

RE: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Steve Jackson
h this method? All I wanted was for a file to be written into a safe directory and then moved automatically to the webroot. Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Messag

RE: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Steve Jackson
p";, "r"); <<<< Line 59. $move = fputs($fp2, $final_url); fclose($fp2); // end of function. and get a really odd error: Warning: fopen("ftp://172.16.2.4/~stephenj/misc/webpage/cms/this_wont_work.php","; r") - Inappropriate ioctl for device on lin

RE: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-11 Thread Steve Jackson
meone typed: http://www.mysite.com/generated.php They would get the page. Not (as I can currently do) http://www.mysite.com/cms/generated.php Thanks. Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159

RE: [PHP] Please assist - been on this for hours - Permissions on server

2003-07-10 Thread Steve Jackson
> The root of the problem (pun intended) Oh dear! ;o) > is that you're trying to > write to the > root (/) directory which is usually only possible if you're the root user. > > Again, the question is _why_ do you need to write to the root directory? > Wouldn't your file function if it wasn't

RE: [PHP] Please assist - been on this for hours - Permissions on server

2003-07-10 Thread Steve Jackson
> But _why_ do you need to write to the root directory? Why not > just write to a directory where you *do* have permission to write to? I can already do that. My problem is that I need to move or copy/delete the file from the place I do have permission to write to to the root. I have generated

RE: [PHP] PHP forum

2003-07-09 Thread Steve Jackson
I should also add that another 685 posts would say RTFM about lightbulbs. Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Richard Baskett [mailto:[EMAIL PRO

[PHP] Headers and server

2003-07-09 Thread Steve Jackson
t;../$pagename.php"); // end of function. } // call the function. generate_page($formid, $pagename); ?> The page generates great and everything is hunky dory if the root is chmoded 777 but I have a feeling I'm wasting my time with this route unless someone has a better idea. Steve Jack

RE: [PHP] Please assist - been on this for hours - Permissions on server

2003-07-09 Thread Steve Jackson
> On Tue, 2003-07-08 at 07:21, Steve Jackson wrote: > > If I set permissions of my server root to chmod 777 that's > a security > > risk right? How do I set my server to allow me to write a > file to my > > web root from another directory using PHP? Or is it a

[PHP] Permissions on server

2003-07-08 Thread Steve Jackson
as a PHP file however it occurred to me while I was doing this that chmod 777 the root might not be a good idea. Anyone have a simple fix or idea for this? Kind regards, Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +3

[PHP] Fputs problem

2003-07-08 Thread Steve Jackson
ndex($PageTitle, $BodyText, $Picture1, $Picture2, $CatID, $SECTION_NAME);\n // put the page footer in position\n do_html_footer();\n ?>\n"; $filename = 'test.txt'; $fp = fopen($filename, "a"); $write = fputs($fp, $string); fclose($fp); } generate_page($formid

RE: [PHP] How to insert a variable into a PHP template.

2003-07-07 Thread Steve Jackson
including ";''=}{[] etc"; And then calling the string with fwrite? Or am I going to run into serious problems? Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message---

[PHP] How to insert a variable into a PHP template.

2003-07-07 Thread Steve Jackson
$BodyText = "{$array["BodyText"]}"; $Picture1 = "{$array["PictureOne"]}"; $Picture2 = "{$array["PictureTwo"]}"; $CatID = "{$array["CatID"]}"; } // then write the function to call the page here ///

RE: [PHP] shopping cart and login system

2003-06-17 Thread Steve Jackson
om my previous cart session. Should be easy by the looks of it. (watch for wrap): http://www.paypal.com/cgi-bin/webscr?cmd=_help-ext&eloc=762&unique_id=02 413&source_page=_home&flow= Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EM

RE: [PHP] PHP Email Attachment problem

2003-04-03 Thread Steve Jackson
I also had a similar problem and it was simply because the directory holding the attachment didn't have permission to send the attachment, so check the permissions on the directory. Once I changed it it sends fine. Cheers, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystem

RE: [PHP] Connecting to a remote server

2003-03-28 Thread Steve Jackson
ew server. If it's remotely hosted ask your administrator what these variables are. If you have admin and root rights you should be able to configure your password and find out the information yourself. Regards, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com

RE: [PHP] last questions

2003-03-28 Thread Steve Jackson
Here's a function you could use. The input from your form should be email ($email in this script). function valid_email($email) { // check an email address is possibly valid if (ereg("[EMAIL PROTECTED]", $email)) return true; else return false; } HTH Steve Jackso

RE: [PHP] Passing data between the web to an Intranet

2003-03-27 Thread Steve Jackson
e thing, however the only way I can think of to do that is display the submissions on a page and and somehow parse that into SQL to insert it. Any ideas on how I can go about that? Cheers, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 34

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
Thanks to those that have helped thus far. To clarify what we need: Our CRM system (really a prospect gathering system) needs to internally hosted, be realtime and needs to be updated automatically. Our website (hosted externally) is *one of many* tools which we are going to use to gather informat

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
t line but not any of the thread you refer to. Don't suppose you could regurgitate it could you? I must have trawled through about 1 messages. I was back to Nov 2001! The above two links don't really help me that much, I just need the process explained so I know I'm on the right t

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
> Haven't the faintest idea what you mean by "direct from the > web" and "a secure > Intranet mysql db" and "web DB". > Sorry. What I mean is that we have an externally hosted website. Currently all the forms etc update tables in the web hosted mysql DB. I am in the process of building a small

RE: [PHP] Problem updating

2003-03-06 Thread Steve Jackson
Actually it didn't need the globals, But I did need to pass the variables into the function! Update_subscriber_account($var1, $var2 etc) I feel a right plonker now! Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343

[PHP] Problem updating

2003-03-06 Thread Steve Jackson
Been on this a couple of hours... anyone see what I'm doing wrong? I get a result of 1 when I echo $result but it doesn't want to update at all. The action of this form index.php?action=update-account is just a switch case Which asks you to use the function update_subscriber_account() below...

RE: [PHP] to Bryan Lipscy Re: [PHP] how___??

2003-02-26 Thread Steve Jackson
variables $localhost (with your servername) $user (your username) password (you guessed it your password) and $DBName with the name of your database. Then when you want to connect to the DB in php you just call db_connect(); The guys are right though for this level of questions you should read t

RE: [PHP] Re: MIME help needed please...

2003-02-26 Thread Steve Jackson
his->parts[$i]). "--$boundary"; } return $multipart.= "--\n"; } /* * void send() * Send the mail (last class-function to be called) */ function send() { $mime = ""; if (!empty($this->from)) $mime .= "From: ".$this->from. "\n"; if (!empty(

[PHP] PHP PDF attachment

2003-02-25 Thread Steve Jackson
nt to the message $message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" . " name=\"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename

[PHP] Using a PHP mime email attachment

2003-02-24 Thread Steve Jackson
t processing your subscription. Please email us and we will send you a copy of the file as soon as possible."; // carry variables into do_html_index() function in output_fns. do_html_index($PageTitle, $BodyText, $Picture1, $Picture2, $CatID, $SECTION_NAME); // put the page footer in position do_html_footer(); exit; } 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] Renaming an uploaded file

2003-02-24 Thread Steve Jackson
OK, Thanks that helped. I've sorted that part of the problem. 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: 24. helmikuuta 2

[PHP] Renaming an uploaded file

2003-02-24 Thread Steve Jackson
suggestions? 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] Process array after form submission problem

2003-02-13 Thread Steve Jackson
Cheers, Solved the problem exactly how I wanted it. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Matt Schroebel [mailto:[EMAIL PROTECTED]] > Sent: 13. helmikuuta 2003 2

[PHP] Process array after form submission problem

2003-02-13 Thread Steve Jackson
that $grant will be an array? (am I right?) so how do I use PHP to look at $grant as an array in my processing script rather than an ordinary variable? I can get the DB to update if there is only one checked box but otherwise it updates the DB with the value of the last checkbox. Any ideas? Steve

RE: [PHP] If no record in MySQL how to?

2003-02-11 Thread Steve Jackson
Thanks Marek, That is the solution I was looking for. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] > Sent: 11. helmikuuta 2003 1

[PHP] If no record in MySQL how to?

2003-02-11 Thread Steve Jackson
ing documents with this article mail us for more information"; } else //Display table with array of linked files. { print "$documents[name]"; } } // end check for documents

RE: [PHP] Update row problems

2003-01-27 Thread Steve Jackson
Thanks. That was the problem. Im using 4.0.6 so it's a bit out of date. Cheers, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From: Tim Ward [mailto:[EMAIL PROTECTED]]

RE: [PHP] Update row problems

2003-01-27 Thread Steve Jackson
I'm processing on a different page so what would I use instead of $_POST? print_r($_POST) Didn't display anything or diagnose anything. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Messag

[PHP] Update row problems

2003-01-27 Thread Steve Jackson
t;; echo " "; echo "The category page has had the order in which categories appear changed."; echo ""; echo ""; echo ""; } Any help appraciated. 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

[PHP] How do you update multiple rows at the same time?

2003-01-24 Thread Steve Jackson
I am having trouble with this. I need to update 1column in a variable number of rows depending on how many categories are in my database at a given time. Can anyone provide any pointers or example code Steve Jackson Web Developer Viola Systems Ltd. <http://www.violasystems.com/>

[PHP] Problem with simple update

2003-01-24 Thread Steve Jackson
s the first two fields to one for some reason. $query = "update categories set catorder = '$catorder' where catid='$categoryid'"; Any suggestions? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobil

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

[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

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

[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] 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

[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] 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] 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] 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

[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] 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
Anyone like to recommend a good host with good uptime for a high traffic site? The host would need excellent technical support as well as be feature rich (Multiple MySQL database support/listserver/SSL support etc.) I have been trying out phpwebhosting.com and they seem very good but I am not happ

[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
I've been trying for ages to add a form field qty to an array to pass it to my shopping cart and have finally managed it but not quite. Please check this cart: http://www.violasystems.com/shop_testing/ When you add an item using the form text box it doesn't add more than 1 on the first submit. How

[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",

[PHP] Anyone used Luke Welling & Laura Thompsons shopping cart?

2002-10-27 Thread Steve Jackson
I am developing a shopping cart based on the above authors shopping cart fom their book. (Book is a must by the way). I am still pretty new to PHP and MySQL and need some help with the cart. Basically I need to add a form to adjust the quantity in the cart instead of just incrementing by one and th

[PHP] Adding to cart function.

2002-10-25 Thread Steve Jackson
[$new]) $cart[$new]++; Instead of incrementing by one how do I increment by a variable which would be the form input? 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

RE: [PHP] Weight function.

2002-10-17 Thread Steve Jackson
I'm using both variables called in another page. Taking globals off causes weight not to be calculated in the shipping cost? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 > -Original Message- > From:

RE: [PHP] Weight function.

2002-10-17 Thread Steve Jackson
Thanks. I have just this minute got it working. Basically the same function I used for determining price of the cart items could be used for determining weight. All I needed to do was assign my DB with a field called weight and call that instead of price from the DB so my calculate weight function

[PHP] Weight function.

2002-10-16 Thread Steve Jackson
$itemCode which defines the actual item which would probably be more reasonable? Thoughts? 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 unsubscri

[PHP] Shipping problem...

2002-10-15 Thread Steve Jackson
t as my shop is currently working I'm scared of messing with the code too much! I also need to have a combination of the two products so the customer might buy 1 of category 2 and 35 of cat 1 etc. Ideas to tackle this please? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystem

[PHP] Function to remember costs.

2002-10-11 Thread Steve Jackson
to our site. to the amount hidden field in the form. Any ideas? This is not all my code which is why I am having problems. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com <http://www.violasystems.com/> [EMAIL PROTECTED] Mobile +358 50 343 5159

[PHP] Shopping cart? Ahh!

2002-10-08 Thread Steve Jackson
deas? If not I'm off for a cry! 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] Scrollbars?

2002-10-06 Thread Steve Jackson
This might be off topic but I thought I'd give the list a try... Does anyone know of any PHP or CSS or something which allows you to change the appearance of scrollbars in Explorer and navigator? Kind regards, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [

[PHP] Looping?

2002-10-05 Thread Steve Jackson
Anyone help me? this is probably quite simple but I'm pretty new to PHP. All I want to do it loop through some DB records and display them in the format written in this PHP file: Anyone see where I'm going wrong? the error I get says: Warning: Unable to jump to row 0 on MySQL result index 2 "; ec

[PHP] help me please.

2002-10-04 Thread Steve Jackson
quot;; echo ""; echo ""; blueFont( "Arial", "Send this file: "); echo ""; echo "This file MUST be a JPEG (jpg) image."; //adminFooter($Relative); ?> Process the form: Steve Jackson Web Developer Viola Systems Ltd. http://w

[PHP] phpMyAdmin

2002-08-20 Thread Steve Jackson
L and PHP so would like some advice, is the way I describe (databases for each website function) a good way to design or should I have all my functions in one large database? Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 --

[PHP] phpMyAdmin is this possible

2002-08-20 Thread Steve Jackson
I am new to MySQL and PHP. Having looked at PHPMyAdmin the GUI I was wondering if it's possible to create a new database within the system? If so what are the commands? I ask because I only have one database on my server and don't want to populate it with different tables, I'd rather have seperate

[PHP] Advice

2002-08-11 Thread Steve Jackson
anks. Steve Jackson Phone +358503435159 Email [EMAIL PROTECTED] Web http://www.webpage.co.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php