Re: [PHP] ' giving problem while inserting in table.

2002-07-12 Thread Martin Clifford
Use addslashes() on ALL strings before inserting them into your database. Then, on your frontend, extract the data and use stripslashes() on all strings. Hope to help! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Anil

Re: [PHP] Final Year Computer Science Project involving PHP

2002-07-12 Thread Martin Clifford
that find solutions? That could be anything from a Weight Loss Tracking System to an advanced encryption/decryption algorithm. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Serdar Sokmen [EMAIL PROTECTED] 07/12/02 11:14AM Hi

RE: [PHP] PHP meetup

2002-07-12 Thread Martin Clifford
to pass! :o) I emplore all PHP Developers to sign up for MEETUP. You have nothing to loose, and everything to gain! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Jay Blanchard [EMAIL PROTECTED] 07/12/02 11:48AM [snip] Want

[PHP] Form/insert problem

2002-07-14 Thread Martin Kampherbeek
(addvoorspelling.php) Thanks, Martin. ?PHP $today = date( Y-m-d H:i:s); include(auth.php); mysql_connect(., ..., ..); mysql_select_db (..); $sql = SELECT * FROM wedstrijden WHERE status='actief' AND datum '$today' ORDER BY datum; $resultaat

RE: [PHP] IF inside LOOP?

2002-07-14 Thread Martin Towell
try using this if statement instead if ($m $num_rows2 - 1) or even use the ?: operator echo ($m $num_rows2 - 1 ? , : .); -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 12:04 PM To: PHP General List Subject: [PHP] IF inside LOOP? Hi

RE: [PHP] BREAK into the DB

2002-07-14 Thread Martin Towell
there's a function word_wrap() (or is it wordwrap(), something like that anyway) that'll help you there. -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 3:00 PM To: 'PHP General List' Subject: [PHP] BREAK into the DB Hi all. I have this DB

[PHP] Strange problem with apache 2.0.39/php 4.2.1/gd-lib

2002-07-15 Thread Martin Lucas
anybody have an idea ? thanks in advance martin Martin Lucas - ICT Manager - TechConsult GmbH European IT-Marketing Research Am Platz der Deutschen Einheit Leipziger Str. 35-37 34125 Kassel FON: +49(0)561 - 8109 172 FAX: +49(0)561 - 8109 2972 mailto:[EMAIL PROTECTED] http://www.techconsult.de

[PHP] Re: Good Forum...

2002-07-15 Thread Martin Clifford
a sample of what it can do in the forums link below. Good Luck! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ [EMAIL PROTECTED] 07/15/02 06:26AM phpbb is a good forum or phorum both are free to use :) i hope you can use one

[PHP] Alley-OOP! ... or not?

2002-07-15 Thread Martin Clifford
about the Pros and Cons to OOP, and why you prefer to use it/not use it! Personally, I've always used regular functions to accomplish my repetetive tasks, and OOP seems rather daunting for me, but I'm always open to new (and hopefully, more efficient) ideas! Thanks! Martin Clifford Homepage

Re: [PHP] newbie: mysql statement

2002-07-15 Thread Martin Clifford
You're right Andrew, got a little ahead of myself :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Andrew Brampton [EMAIL PROTECTED] 07/15/02 03:23PM Shouldn't this be UPDATE header SET parent='$this-parent' WHERE posted

[PHP] [PHP-DB] RE: PHP meetup [CROSS-POST] Meet other PHP Developersin Your Area

2002-07-15 Thread Martin Clifford
Yes, everyone please join up! I would love to find more developers in the Maryland area, and I'm sure others would in their areas as well! Let's do the great american get togeth... err... the great php get together! Martin Clifford Homepage: http://www.completesource.net Developer's Forums

Re: [PHP] ^k ? -- how do I match that?

2002-07-15 Thread Martin Clifford
Just try eregi_replace(\^k[.+], , $container); Regular expressions are the MASTERS of the INTARWEB! :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Jimmy Brake [EMAIL PROTECTED] 07/15/02 04:32PM Hi! I keep getting

RE: [PHP] Free PHP Books in PDF or HTML Format

2002-07-15 Thread Martin Towell
try out http://www.informit.com -Original Message- From: Chris Carlson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: [PHP] Free PHP Books in PDF or HTML Format Hey guys, I was wondering if anyone on the list could recommend web sites

[PHP] Get Anchor out of Url

2002-07-16 Thread Martin Thoma
=SomethingMyVar2=Someother With PhpInfo, I couldn't find any JumpHere. Any ideas how I can get the anchor in a php-page? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Submit code

2002-07-16 Thread Martin Thoma
I am looking for PHP code that will submit (post) a form automaically to a ANOTHER php page. I do not want to press a submit button. I have found a class at PHPClasses but it is too complicated for my needs. What is the simplest way of doing this? What is the theoretical approach? I

[PHP] Re: Get Anchor out of Url

2002-07-16 Thread Martin Thoma
Oh, it seems, that only Netscape 4 is doing this wrong... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Clifford
), then those two properties can be readily accessible to any method within the class. At least I think that's how it works. I'm not all that knowledgeable on the subject :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Jay

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Clifford
to it's make and model, using the methods setMake and setModel. I'm sure this is right, but I'm sure I'm probably wrong (hehe, confused?). I'm also sure someone will correct me if I am! :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Clifford
with the procedural side of things (using functions). It's all a matter of preference, and just yet I haven't decided which is more useful :o) Good luck! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Chris Crane [EMAIL PROTECTED

Re: [PHP] strange beahaviour with a mysql query in php

2002-07-16 Thread Martin Clifford
If you only want to update the row if it exists, then you need to use a WHERE clause to make sure it does exist. Blah blah blah WHERE row_id='$id' LIMIT 1 might work. I'm lazy and didn't want to retype what you had. :o) Martin Clifford Homepage: http://www.completesource.net Developer's

Re: [PHP] Exit script early

2002-07-16 Thread Martin Clifford
RTFM re: Exit and Continue. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Michael Zornek [EMAIL PROTECTED] 07/16/02 01:08PM Ok, So I'm creating a details.php page where I'm expecting the url to be something like

Re: [PHP] I can't echo object variables

2002-07-16 Thread Martin Clifford
Try enclosing it in curly braces. echo p${db-field('name_long')}; Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Michael Zornek [EMAIL PROTECTED] 07/16/02 01:45PM We all know this works: echo p$someVar; However this does

Re: [PHP] Is there a way?

2002-07-16 Thread Martin Clifford
It's called here doc formatting, and follows the pattern below: $chunk = EOF; // stuff here EOF; Hmm. For some reason that just doesn't look right. I'm sure someone will correct it if I'm wrong though :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http

Re: [PHP] Session and output buffering

2002-07-16 Thread Martin Clifford
if you include those in your message so that we might be able to deduce the error from it's cryptic nature :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Divyank Turakhia [EMAIL PROTECTED] 07/16/02 02:46PM I have set

Re: [PHP] Newbie Question on Efficiency

2002-07-16 Thread Martin Clifford
Unless the file is getting retartedly big (10-20K), then I wouldn't separate them. Though if you have enough functions, you could justify making separate files for your database functions, output functions, backend functions, etc. Martin Clifford Homepage: http://www.completesource.net

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Towell
Martin Clifford wrote: Could someone please explain the difference between classes and functions and how to use a class. Whether you should like OOP or not is a religious matter, so I will not enter the field. OOP has its pluses and its minuses. It's a technique, not an ultimate

RE: [PHP] Printer margins

2002-07-16 Thread Martin Towell
You can't change this type of setting on a client's browser The only way you'd be able to do this is to tell the user that the page prints best when margins are set to 0.25 -Original Message- From: Manuel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 10:52 AM To: PHP General

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Towell
[snip] A CLASS after all is just a collection of functions with a data model. But ... there is modular and then there is OO imho. [snip] A class is more than just a bunch of functions that have been placed together. If you want to do that, then you might as well just throw them all into the

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Martin Towell
The only reason a compiled language would not include a function/module/etc is to reduce the size of the final executable. Since php doesn't store (barring the caching engines, but they work differently anyway) a compiled version, it doesn't need to worry about not including something. Martin

RE: [PHP] Bug in PHP?

2002-07-16 Thread Martin Towell
check that the gaps between the domains are really spaces eg: echo ord($HTTP_POST_VARS[domains]{11}); I did this through a test script: ? $HTTP_POST_VARS[domains] = www.php.net www.jokaroo.com www.gnu.org; $site = explode( ,$HTTP_POST_VARS[domains]); print_r($site); exit; ? and got this as the

Re: [PHP] $HTTP_SESSION_VARS ? Have I got it wrong

2002-07-17 Thread Martin Clifford
Define the value of $count before registering it, and it should work fine :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Henry [EMAIL PROTECTED] 07/17/02 10:14AM The answer is probably yes. I do a session_start

Re: [PHP] $HTTP_SESSION_VARS ? Have I got it wrong

2002-07-17 Thread Martin Clifford
Ignore that, I'll just go grab my copy of Hooked on Phonics so I can learn to read before replying. :trots off: Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Martin Clifford [EMAIL PROTECTED] 07/17/02 10:15AM Define

Re: [PHP] querying for one specific row number

2002-07-17 Thread Martin Clifford
certain columns from the row, then list those columns in place of the wildcard. SELECT first_name, last_name FROM table WHERE id=1 LIMIT 1 HTH! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Phil Schwarzmann [EMAIL PROTECTED] 07

[PHP] Of Jobs and Certs

2002-07-17 Thread Martin Clifford
to do it as a career. I just don't know where the hell to start, and I know that some of you might be able to offer some advice in this area. Thanks in advance! This is very important to me, so I thought I'd ask the people that would know best :o) Martin Clifford Homepage: http

Re: [PHP] $_SESSION - autostart, or session_start() ?

2002-07-17 Thread Martin Clifford
to the browser (the comment line), which is after the HTTP headers have already returned from the server. HTH Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Matt Babineau [EMAIL PROTECTED] 07/17/02 11:20AM If I set the SESSION

Re: [PHP] how to access javascipt variables in PHP

2002-07-17 Thread Martin Clifford
PHP vars that hold screen information. HTH Martin Seppo Laukkanen [EMAIL PROTECTED] 07/17/02 03:06PM Can anybody help? I have javascript code to find out browsers width and height, but they are stored in javascript variables. How can I access them from PHP? Or is there a method to do same

RE: [PHP] Re: Includes vs. Functions

2002-07-17 Thread Martin Towell
, and it returns another value. [snip] To add to this. If you're passing too many values to a function, then maybe that function isn't broken down enough. I remember hearing/reading that if you need to pass more than, I think, 5 or 6 values to a function, then you're passing too many. Martin -- PHP

Re: [PHP] Check for Associative Array

2002-07-18 Thread Martin Clifford
Try this: while($row = mysql_fetch_assoc($result)) { // code here } This way, the resulting array will ONLY be associative. HTH! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Henning Sittler [EMAIL PROTECTED] 07/18/02

Re: [PHP] Check for Associative Array

2002-07-18 Thread Martin Clifford
Oh well. And HTH means Hope to Help. For some unknown reason the OP specifically does not want to use mysql_fetch_assoc()! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] spawning scripts to different graphical targets

2002-07-18 Thread Martin Clifford
= screen.height; var width = screen.width; document.location = index.php?height= + height + width= + width; } body onload=getScreen(); :babbles on and on and on...: Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Alberto

[PHP] Arrays and Regs

2002-07-18 Thread Martin Clifford
reason, hehe. Any help would be great! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Please Help with LOOP!!

2002-07-18 Thread Martin Towell
Asmodean - using comma is another way of using echo... Wee - try this instead - you're putting two loops together when you don't need to for($count=1; $count=$rows; $count++) { $query_data = mysql_fetch_array($result); $price = $query_data[price_lq]; $RowColor = useColor(); // current

RE: [PHP] vertical word match

2002-07-18 Thread Martin Towell
try changing the +'s with *'s + = 1 or more * = 0 or more -Original Message- From: Joe Rice [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 3:30 PM To: [EMAIL PROTECTED] Subject: [PHP] vertical word match hello, any regex gurus? i'm trying to match words put into a textarea

RE: [PHP] Sorting array based on key string

2002-07-18 Thread Martin Towell
dunno if this'll work... but here goes... sort($data); ksort($data); but ksort() might mangle the order from sort(). In that case, you'll need to write your sort routine that retains the old order -Original Message- From: Peter J. Pieczora [mailto:[EMAIL PROTECTED]] Sent: Friday, July

RE: [PHP] best way to delete char# 4-7 from a string?

2002-07-18 Thread Martin Towell
dunno how much slower it'd be, but it might look better. You could convert the strings to an array, use array_splice(), and then convert back to a string. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 3:39 PM To: php Subject: [PHP] best way

[PHP] Re: Arrays and Regs

2002-07-19 Thread Martin Clifford
) And to Dan: I would love to change the line margins of my email client, but unfortunately Novell Groupwise sucks, and the government will not, without exception, allow customization of any software, whatsoever. So I'm stuck with it. Thanks again guys! Martin -- PHP General Mailing List

RE: [PHP] Hex Help Please...

2002-07-21 Thread Martin Towell
Doesn't look like anyone has replied to you on the php-general mailing list. Have a look at this page http://www.wotsit.org/search.asp?s=graphics some of the docs there might help you HTH Martin -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22

RE: [PHP] automatic credit card processing

2002-07-21 Thread Martin Towell
either use curl, and set to option to return the results to you to on or use ob_start(), ob_get_contents(), etc -Original Message- From: Dominic [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:11 PM To: [EMAIL PROTECTED] Subject: [PHP] automatic credit card processing Hi all I

RE: [PHP] separated string by comas

2002-07-22 Thread Martin Towell
$string = str_replace( , ,, $string); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:57 PM To: php-general Subject: [PHP] separated string by comas I have a string that is separated by spaces like this $string=test test1 test2

[PHP] Re: Using Javascript

2002-07-22 Thread Martin Clifford
with standards. Martin Chris Earle [EMAIL PROTECTED] 07/22/02 01:18AM You use the onClick feature like this: input type=text name=text1 onClick=dd.value='? echo $correct; ?' no semicolon unless there is more than one thing being called/defined -- you use single quotes within the onClick's double quotes Uma

Re: [PHP] Newbie's question about \n

2002-07-22 Thread Martin Clifford
regards, KK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - Do You Yahoo!? Yahoo! Health - Feel better, live better Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http

Re: [PHP] What does register_globals do?

2002-07-22 Thread Martin Clifford
variable types. I'm sure there's a much better way to explain it, but it works for me :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Matt Babineau [EMAIL PROTECTED] 07/22/02 03:59PM I have never had a clear understanding

RE: [PHP] What does register_globals do?

2002-07-22 Thread Martin Clifford
unless defined otherwise was what I said. When I said that, I simply meant that you declare the variables as global within the function and/or class. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Matt Schroebel [EMAIL

RE: [PHP] Comma question

2002-07-22 Thread Martin Towell
thought of doing that, I alway's broke out of the quotes to do object dereferencing. Should make my future code more readable I think... Martin -Original Message- From: B i g D o g [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 9:06 AM To: PHP GEN Subject: Re: [PHP] Comma question

RE: [PHP] Formating datevariables...

2002-07-22 Thread Martin Towell
As Demitrious said, use mysql to do it. But if you want to use php, just use substr(), since all the numbers are there, there's no point converting to unix time, just to convert it back again... unless you're going to do some maths of it -Original Message- From: Demitrious S. Kelly

RE: [PHP] Problem with Not displaying HTML if data not found

2002-07-22 Thread Martin Towell
what about if (strlen($result[FLRPLAN_3]) 0) -Original Message- From: markbm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 2:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Problem with Not displaying HTML if data not found I am trying to develop a page that, in certain

RE: [PHP] redirecting after login

2002-07-22 Thread Martin Towell
of those tags that takes me ages to get the syntax right (I could chuck it into a code repository somewhere, but I'm too lazy to do that...) Failing the above two methods, you could put a hidden form that gets auto-submitted when the page loads HTH Martin -Original Message- From: Tim

RE: [PHP] Problem with Not displaying HTML if data not found

2002-07-22 Thread Martin Towell
each time, and cleared the browser cache, etc. Mark Martin Towell [EMAIL PROTECTED] wrote in message 6416776FCC55D511BC4E0090274EFEF5034CFB9D@EXCHANGE">news:6416776FCC55D511BC4E0090274EFEF5034CFB9D@EXCHANGE... what about if (strlen($result[FLRPLAN_3]) 0) -Original Message---

RE: [PHP] Passing Special Characters In url

2002-07-22 Thread Martin Towell
I think the proper way of sending an ampersand is to use amp; -Original Message- From: Ricky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP] Passing Special Characters In url Hi, I am having problems passing variables in a url

RE: [PHP] Re: Using fopen()/fread()/fscanf()

2002-07-22 Thread Martin Towell
I'm thinking that you need to remove the: $contents = fread($filename, 100); line. This is probably making the file pointer point to the end of the file. -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 4:17 PM To: David Robley; [EMAIL

Re: [PHP] control structure question

2002-07-23 Thread Martin Clifford
. Hope that helps! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Javier Montserat [EMAIL PROTECTED] 07/23/02 10:03AM is there a more programmatically elegant way of saying... $isError = ; function main() { doStep1

Re: [PHP] Using PHP with MySQL - Can I supress MySQL errors?

2002-07-23 Thread Martin Clifford
Put an ampersat symbol (@) in front of the function name to suppress errors. $link = @mysql_connect(host, user, pass); Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ DonPro [EMAIL PROTECTED] 07/23/02 12:08PM Hi, I'm using

Re: [PHP] PHP creating table for HTML layout

2002-07-23 Thread Martin Clifford
PHP is server-side, so it can't do anything that would help with the layout of HTML on the client-side. You might want to look into Cascading Style Sheets (CSS) to format the page so that it validates the way you want it to :o) HTH! Martin Clifford Homepage: http://www.completesource.net

RE: [PHP] Re: Credit card checks?

2002-07-23 Thread Martin Towell
Try this: function do_mod_10($num) { // The Luhn formula works right to left, so reverse the number. $num = strrev($num); $total = 0; for ($i = 0, $j = 1; $i strlen($num); $i++, $j=3-$j) { $digit = $num[$i] * $j; if ($digit 9) $digit -= 9; $total +=

RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Martin Towell
use the auto_append or auto_prepend directives in the php.ini file -Original Message- From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 1:48 PM To: PHPlist Subject: [PHP] Banner Ad Serving... Is there any way of automatically adding a certain bit of

Re: [PHP] Re-directing

2002-07-24 Thread Martin Clifford
: index.php); ? That would do the trick. But like I said, once the parser begins to write HTML to the browser, then you can no longer send HTTP headers. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Roberts, Mark [EMAIL PROTECTED] 07

Re: [PHP] Re-directing

2002-07-24 Thread Martin Clifford
Awesome! Learn something new everyday! That's why I love this list :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Chris Sharkey [EMAIL PROTECTED] 07/24/02 11:01AM Well you can actually, If you start your script

Re: [PHP] PHPMyAdmin interface

2002-07-24 Thread Martin Clifford
, but it did... sorry for the length :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ [EMAIL PROTECTED] 07/24/02 12:46PM I have just recently just signed up for virtual hosting with a MySQL database. They do not have a PHPMyAdmin

Re: [PHP] MySQL Backup and Restore

2002-07-24 Thread Martin Clifford
With phpMyAdmin, just scroll down until you see the dumping section. Select the appropriate information, tick the save as file box, then Go. It'll prompt you to save the file. You just use that file, then, as a query to your next database. Martin 1LT John W. Holmes [EMAIL PROTECTED] 07/24

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Martin Clifford
Shouldn't it be: $result = mysql_query($sql, $link_id); PHP will be quick to tell you that there is a missing link identifier in the mysql_query() call. It's happened to me plenty of times. HTH! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http

Re: [PHP] Hitting return in a textarea box...

2002-07-24 Thread Martin Clifford
I've never had a problem with this. Even using a textbox with only the required parameters works fine as far as hitting the return key to get a newline. If you're talking about hitting the return key to submit, that's something else entirely, hehe. Martin Clifford Homepage: http

RE: [PHP] RE: create object from variable class.

2002-07-24 Thread Martin Towell
This should work $object = new $classname; Martin -Original Message- From: Michiel ten Hagen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 11:17 PM To: 'Mathieu Dumoulin' Cc: [EMAIL PROTECTED] Subject: [PHP] RE: create object from variable class. Thx for quick

RE: [PHP] Numbers with leading zero...

2002-07-24 Thread Martin Towell
you could use: printf(%02d, ++$Num); or if you want to put it back into $Num, use the sprintf() version -Original Message- From: vins [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 10:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Numbers with leading zero... Hi. I've got this

Re: [PHP] PHP Meetup, how many of you have signed up?

2002-07-25 Thread Martin Clifford
if you haven't all! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Jay Blanchard [EMAIL PROTECTED] 07/25/02 10:15AM Top 10 Locales -- Washington DC (9 members) Amsterdam (7 members) Leeds, UK (7 members) London, England (7

Re: [PHP] pulling records from mysql

2002-07-25 Thread Martin Clifford
BY id ASC LIMIT 15 The functions you'll want to look into are mysql_connect(), mysql_select_db(), mysql_query() and mysql_fetch_array(). They can be found at http://www.php.net, do a search for any one of the functions ;o) HTH Martin Tyler Durdin [EMAIL PROTECTED] 07/25/02 11:18AM I have

Re: [PHP] Paying Job...

2002-07-25 Thread Martin Clifford
resists the urge to debate ethics Why didn't you just say, Charge by whichever will screw the client the worst.? Jesus. Martin Tyler Longren [EMAIL PROTECTED] 07/25/02 11:44AM Charge by which ever will get you the most money. tyler On Thu, 25 Jul 2002 11:46:38 -0400 Gerard Samuel [EMAIL

Re: [PHP] pulling records from mysql

2002-07-25 Thread Martin Clifford
Yes, that will indeed return the rows specified, but the result is very unstable. By it's nature, MySQL does not have to conform to any sorting method unless you specify it. So it's very good practice when retrieving multiple rows to ALWAYS order them. Just my thoughts :o) Martin Tech

RE: [PHP] Using one submit button

2002-04-16 Thread Martin Towell
user price[] as the name you'll also need to pass the ids as $id[] so you know which one you're updating -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 11:51 AM To: [EMAIL PROTECTED] Subject: [PHP] Using one submit button Hi all, I

RE: [PHP] Displaying Results

2002-04-16 Thread Martin Towell
I think you can get everything after the ? in the URL with $QUERY_STRING but I think that it would be a bit dangerous to just accept what's passed, I think some checking should be done before you use $QUERY_STRING as is -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread Martin Towell
[snip] If this allows a DoS attack, then this is a very real security problem. Why should it? Even if there is a verifiable bug allowing time/memory limits to be exceeded when header() goes into an infinite loop, how could someone exploit this from the outside? If a scripter is

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread Martin Towell
Is that memory usage used by PHP or apache? -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 12:35 PM To: CC Zona Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Nasty DoS in PHP For what it's worth, I just ran this script on my server, and

RE: [PHP] need your help

2002-04-17 Thread Martin Towell
is this a local server you're connecting to (as in, on the same machine as the script) if it is, then the ip address would prob. need to be 127.0.0.1 and not 172.0.0.1 -Original Message- From: Waty [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 1:29 PM To: [EMAIL PROTECTED]

RE: [PHP] PHP and Quicktime...

2002-04-17 Thread Martin Towell
you don't need php to do this - use html's embed to do it -Original Message- From: Pusta [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 3:49 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Quicktime... Hello all, I'm new at PHP but learning and loving it. For a school

[PHP] Open Download-Box

2002-04-18 Thread Martin Thoma
is okay, but why is the box opened twice? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Open Download-Box

2002-04-18 Thread Martin Thoma
try header(Content-type: application/pdf); Thanx, but it doesn't work, too, on IE. Another effect is, that Netscape now opens it in the broser window instead of downloding it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how to popup a new browser window from php

2002-04-18 Thread Martin Towell
use vbscript :P otherwise no - php = server - [java|vb]script = client -Original Message- From: Wo Chang [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 9:15 AM To: [EMAIL PROTECTED] Subject: [PHP] how to popup a new browser window from php Dear All, One simple question: Is

[PHP] printer functionality under 4.2

2002-04-19 Thread Dedek Martin
hi anybody knows how to activate printer functionallity under 4.2 ?? why was it removed from the releases afer 4.1 ?? thx m. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP @ 24-hour programming competition

2002-04-21 Thread Martin Towell
Firstly, since you can take in already written code, if you have a lot of pre-written generic code, that would be good. We're really interested in your opinions - is this feasible or are we just plain mad? :) You've probably both - aren't all programmer mad? g -Original Message-

RE: [PHP] Better standards in PHP-coding

2002-04-21 Thread Martin Towell
the statement is on a new line, surrounded by braces or not. So what I'm basically saying is - choose a style that suits you, and be _consistant_ with it - oh, and make sure you indent your code, there's nothing worse than trying to read code that's not indented, or indented all over the place! Martin

[PHP] Re: Open Download-Box

2002-04-22 Thread Martin Thoma
this is a problem of IE, not of PHP. Year, but since I controll IE with PHP, I thought someone has a php-workaround. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] From where was function called?

2002-04-22 Thread Martin Towell
um - (unix) grep (windows) find files That's something that I've been wanting for a while - a function call stack that the php script can look at. -Original Message- From: Nico van der Dussen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 3:04 AM To: [EMAIL PROTECTED]

RE: AW: [PHP] Re: Second opinion needed - javascript blocker

2002-04-22 Thread Martin Towell
? HTH Martin -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 6:49 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: AW: [PHP] Re: Second opinion needed - javascript blocker Thynks, but I don't want to block html, I want to block

RE: [PHP] Unsubscribe?

2002-04-22 Thread Martin Towell
[snip from bottom of msgs] PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php [end snip] -Original Message- From: Josiah Wallingford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 10:38 AM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Why isn't this working? :(

2002-04-22 Thread Martin Towell
Can someone try to figure out what's wrong with my code? What are you expecting, and what are you seeing? -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Why isn't this working? :( I have a

RE: [PHP] Interesting Links, can be not PHP

2002-04-22 Thread Martin Towell
it's a bookmark basically, it's telling the browser to scroll the page down until it finds the named bookmark eg a name=topTop of page/a blah... ... a href=#topgo to top/a clicking on that link will scrol the page to top in your case, it's a no-name bookmark, and most browsers treat this as

RE: [PHP] ASP to PHP

2002-04-23 Thread Martin Towell
I used it for a site I did. The code wasn't doing anything too funky. Just simple accesses to adodb and also simple form manipulation - worked like a treat. Although, the database stuff, it converts it the standard PHP functions, but I had some classes for that, so I still had to manually go

RE: [PHP] Re: Wich Database abstration layer?

2002-04-23 Thread Martin Towell
I hope we're not going to get into the this db class is better than that one thread again -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 9:28 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Wich Database abstration layer? Hello, Javier

RE: [PHP] how to give vars to a php(shell env) script?

2002-04-23 Thread Martin Towell
try setting an environment variable before calling your script -Original Message- From: Hermann Bier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 12:34 PM To: [EMAIL PROTECTED] Subject: [PHP] how to give vars to a php(shell env) script? Hi NG! how could i give some vars

RE: [PHP] SQL Warning

2002-04-23 Thread Martin Towell
or make it $config[prefix] -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 1:51 PM To: 'Jennifer Downey'; [EMAIL PROTECTED] Subject: RE: [PHP] SQL Warning Would you please direct your attention to this URL

RE: [PHP] SQL Warning

2002-04-23 Thread Martin Towell
The reason why I said that is 'cause the array was inside quotes, so quoting again would break out of the original quotes -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 2:03 PM To: Jason Murray Cc: [EMAIL PROTECTED] Subject: RE: [PHP] SQL

<    1   2   3   4   5   6   7   8   9   10   >