[PHP] Advice

2002-08-11 Thread Steve Jackson
as well so the server is going to have to be able to allow me to install support for them or have that already built in. Is PHP 4 established enough to develop this kind of project or should I look at PHP 3 instead? Any advice on a good server that would enable the points I suggested? Thanks. Steve

[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

[PHP] phpMyAdmin

2002-08-21 Thread Steve Jackson
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

[PHP] Different output on two different servers

2002-12-09 Thread Steve Jackson
another field to the 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

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

2002-12-10 Thread Steve Jackson
in 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] server problems.

2002-12-10 Thread Steve Jackson
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] How do I populate a select?

2002-12-10 Thread Steve Jackson
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] Mobile +358 50 343

[PHP] Rename an upload

2002-12-11 Thread Steve Jackson
: .$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

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 code: What is the problem? I can't

[PHP] Populating form value fields.

2002-12-11 Thread Steve Jackson
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe

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] Subject: Re: [PHP

[PHP] Update query

2002-12-12 Thread Steve Jackson
', price = '$price', description = '$description' shortdesc = '$shortdesc' where ItemCode='$oldItemCode'; Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -- PHP General

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

[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

[PHP] Preperation for News CMS?

2002-12-23 Thread Steve Jackson
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 PROTECTED

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

[PHP] Problem with simple update

2003-01-24 Thread Steve Jackson
='$categoryid'; Any suggestions? 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/ http

[PHP] Update row problems

2003-01-27 Thread Steve Jackson
the order in which categories appear changed.brbr/span; echo /td; echo /tr; echo /table; } 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

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 Message- From: Tim

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]] Sent: 27. tammikuuta

[PHP] Protecting a file via PHP.

2003-09-16 Thread Steve Jackson
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 Jackson Web Development

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: RE: [PHP

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

2003-09-16 Thread Steve Jackson
/vnd.ms-excel\n); break; default : // 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

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/');

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

2003-09-17 Thread Steve Jackson
?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 hanged explorer. Steve Jackson Web Development

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

2003-09-18 Thread Steve Jackson
is EventNotification_01.pdf P is Array Path is /home/.sites/144/site281/downloads/EventNotification_01.pdf FP is Resource 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

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 Konqueror

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

2003-09-18 Thread Steve Jackson
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 To: [EMAIL PROTECTED] Subject

RE: [PHP] shopping cart and login system

2003-06-17 Thread Steve Jackson
previous cart session. Should be easy by the looks of it. (watch for wrap): http://www.paypal.com/cgi-bin/webscr?cmd=_help-exteloc=762unique_id=02 413source_page=_homeflow= Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile

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

2003-07-07 Thread Steve Jackson
[PictureOne]}; $Picture2 = {$array[PictureTwo]}; $CatID = {$array[CatID]}; } // then write the function to call the page here // Any ideas thoughts or help much appreciated. Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com

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

2003-07-07 Thread Steve Jackson
; 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- From: Andrew McCombe [mailto:[EMAIL

[PHP] Fputs problem

2003-07-08 Thread Steve Jackson
including formid passed from // previous form $string = ?php $SECTION_NAME = \goldfish_cms.php\;\n //\n // Written by Steve Jackson. Copyright and all rights reserved Webpage 2003.//\n /functions here all

[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 +358 50

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 Unix problem? I have a generator file

[PHP] Headers and server

2003-07-09 Thread Steve Jackson
with this route unless someone has a better idea. 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] 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 PROTECTED

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 a

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 in

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

2003-07-11 Thread Steve Jackson
://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 -- PHP General Mailing

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

2003-07-11 Thread Steve Jackson
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 line 59 Any ideas people? Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL

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

2003-07-11 Thread Steve Jackson
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 Message- From: Marek Kilimajer [mailto:[EMAIL

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 put

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

[PHP] If no record in MySQL how to?

2003-02-11 Thread Steve Jackson
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] 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 13:39

[PHP] Process array after form submission problem

2003-02-13 Thread Steve Jackson
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 Jackson -- PHP General Mailing List (http

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 21:29 To: Php

[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] 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 2003 11:20

[PHP] Using a PHP mime email attachment

2003-02-24 Thread Steve Jackson
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

[PHP] PHP PDF attachment

2003-02-25 Thread Steve Jackson
=\{$fileatt_name}\\n . Content-Transfer-Encoding: base64\n\n . $data . \n\n . --{$mime_boundary}--\n; } $ok = @mail($to, $subject, $message, $headers); Real stuck here. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com

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

2003-02-26 Thread Steve Jackson
; if (!empty($this-headers)) $mime .= $this-headers. \n; if (!empty($this-body)) $this-add_attachment($this-body, , text/html); $mime .= MIME-Version: 1.0\n.$this-build_multipart(); mail($this-to, $this-subject, , $mime); } }; // end of class ? Hope this solves the issue. Steve Jackson Web Developer Viola

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

2003-02-26 Thread Steve Jackson
to the DB in php you just call db_connect(); The guys are right though for this level of questions you should read the manual all of this is explained in greater detail than we can go into. 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] 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 5159

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 CRM

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

2003-03-26 Thread Steve Jackson
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 track. Cheers, Steve Jackson Web Developer Viola Systems Ltd. http

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

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 Jackson Web Developer

RE: [PHP] Connecting to a remote server

2003-03-28 Thread Steve Jackson
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 [EMAIL PROTECTED] Mobile +358 50 343 5159 -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 28

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.violasystems.com

[PHP] help me please.

2002-10-04 Thread Steve Jackson
into directory; 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

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

[PHP] Scrollbars?

2002-10-07 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 [EMAIL

[PHP] Shopping cart? Ahh!

2002-10-08 Thread Steve Jackson
and then go back and try adding a starter kit. I want both to appear in the cart if possible. Any ideas? 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

[PHP] Function to remember costs.

2002-10-11 Thread Steve Jackson
($shipping+$total_price, 2); ? 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] Shipping problem...

2002-10-15 Thread Steve Jackson
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.violasystems.com [EMAIL PROTECTED] Mobile

[PHP] Weight function.

2002-10-17 Thread Steve Jackson
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 unsubscribe, visit: http

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

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: Jason Wong

[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

[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

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

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

[PHP] Displaying one of three functions.

2002-10-28 Thread Steve Jackson
but express= 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] New Error?

2002-10-28 Thread Steve Jackson
; } 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

[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] Anything wrong with this function?

2002-10-31 Thread Steve Jackson
='760' cellpadding='0' background='images/shopbg.gif'trtdnbsp;/td/tr/table; 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

[PHP] At last an error message!

2002-10-31 Thread Steve Jackson
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] Simple Problems taking me hours to solve!

2002-11-01 Thread Steve Jackson
? 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] Help please.

2002-11-01 Thread Steve Jackson
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 PROTECTED] Mobile +358 50 343 5159 -- PHP General Mailing List (http

[PHP] Get shipping problem continued!

2002-11-01 Thread Steve Jackson
) { $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! Steve Jackson Web Developer Viola

[PHP] Address array?

2002-11-04 Thread Steve Jackson
]; $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 me learn! with an explanation of these two functions.

2002-11-05 Thread Steve Jackson
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] Help me learn! with an explanation of these two functions.

2002-11-05 Thread Steve Jackson
($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] Mobile +358 50 343 5159 -Original Message- From

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-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 from orders, email where orders.orderid = email.orderid

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-07 Thread Steve Jackson
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 Message- From: Jason Wong [mailto:php-general;gremlins.com.hk] Sent

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 Systems Ltd. http

[PHP] Globals set to off - Sessions

2003-10-27 Thread Steve Jackson
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 Mailing List (http://www.php.net/) To unsubscribe