The only problem I can see is that you have a column named 'desc' which
is a reserved word. It can cause weird results some times, but seems
like it would cause an error
Don't know what to tell you...
---John Holmes...
> -Original Message-
> From: Austin W. Ma
You don't have MSSQL support in your PHP installation. Uncomment the
line in PHP.ini that loads the MSSQL .dll
Use a phpinfo() file to see what modules are loaded.
You're making this hard on yourself...PHP is easy to learn.
---John Holmes...
> -Original Message-
>
No...remove the semi-colon to uncomment it. Restart your web server.
Create a page that has just the following line in it:
Save it to a file with a .php extension and call it up through your web
server. Examining that page will tell you what modules are loaded.
---John Holmes
for($Cnt=0;$Cnt<$num_emails;$Cnt++)
---John Holmes...
> -Original Message-
> From: Rodrigo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 29, 2002 7:39 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to findout if the file is over
>
> I've got the following pr
Maybe, but I believe he's trying to connect to MSSQL, which uses mssql_*
functions.
---John Holmes...
> -Original Message-
> From: hugh danaher [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 29, 2002 8:36 PM
> To: php
> Subject: Re: [PHP] What's wrong
Check again. You're missing a closing bracket or an ending quote...
something along those lines.
---John Holmes...
> -Original Message-
> From: Ironfroggy [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 29, 2002 9:41 PM
> To: [EMAIL PROTECTED]
> Subject: [PH
I'm trying to find files in my array
for example
="lg_imode.gif"
and
="/db/imodeklein/edgar-IMODE-1-.gif"
I want to differentiate between the files with slash at the front and ones
without so that
I can add a server path !
but as usual I' m having problems with the correct regex
At the moment I'
still show even !
I've already got from the original file the original location
http://www.whatever.com
and now want to insert that in front of the gif files
ie
$imode_code[$i] = eregi_replace("( On Tuesday 30 April 2002 16:31, John Fishworld wrote:
> > I'm trying to find files i
r to use global arrays and functions to create select
boxes. Makes for cleaner code.
---John Holmes...
> -Original Message-
> From: Denis L. Menezes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 4:30 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] populating te
_1\\0",$imode_code[$i]);
// $imode_code[$i] = eregi_replace("([^\"]+[a-z_]+[\.php]+[\"$])",
"$next_path_1\\0",$imode_code[$i]);
// replace imode pictos with a real gif
$imode_code[$i] = ereg_replace("&#([0-9]{5});" , "" , $imode_code[$i] );
//
http://www.baesurl.com/imenu/";>i-menu
> On Tuesday 30 April 2002 19:43, John Fishworld wrote:
>
> > $imode_code = file("$url_file");
> > $file_name = basename($url_file);
> > $path = dirname($url_file);
> > $stripped_path = eregi_replace("^(
$body, $headers to a PHP script at the other domain and return some
notification that the send did not report errors?
TIA,
John Hughes
http://jomari.com
__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.
Thanks after playing about with that I've got the following which does seem
to work !
$imode_code[$i] = eregi_replace("(src=)(\")([a-z0-9_\/-]+\.gif)(\")",
"\\1\\2$path/\\3\\2", $imode_code[$i]);
Very very very slowly getting the hang of regexs !
What does your /i do at the end ???
Thanks
> T
aha !
thats very strange then because mine works at the moment but if I add the /i
at the end then it doesn't !
> On Wed, 1 May 2002, John Fishworld wrote:
> > Thanks after playing about with that I've got the following which does
seem
> > to work !
> >
> >
> 1. Can u guys provide any links on php script master details forms?
http://www.google.com/search?sourceid=navclient&querytime=B&q=php+script
+master+details+forms
> 2. data grids?
http://www.google.com/search?sourceid=navclient&querytime=-ZMXjB&q=data+
grids
---Jo
There are some classes that use sockets to send mail by connecting
directly to an SMTP server. Look on hotscripts.com or phpclasses.com
(.org?)
---John Holmes...
> -Original Message-
> From: John Hughes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 10:01 AM
>
Why do you even bother? Just name your file SFISFWEF.html and have that
as your password. If security isn't important, then don't use it at all.
And please don't program anything for anyone else.
---John Holmes...
> -Original Message-
> From: Rodrigo [mailto:[EMA
This one will actually remove money from your bank account if you pass
the constant PHP_TAKE_MY_MONEY as the 10th argument.
---John Holmes...
> -Original Message-
> From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 8:06 PM
> Cc: [EMA
That's not what a session if for. You'll have to set your own cookie to
remember who the person is, and start a new session for them when they
return.
---John Holmes...
> -Original Message-
> From: Justin French [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01
P jobs, they'll
subscribe to an ASP list. I wouldn't have anything to do with a company
that does this. Keep you SPAM to yourself next time and stop wasting my
time.
v/r
John Holmes
> -Original Message-
> From: Jacky Kenna [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday,
You realize the page will have to refresh to do this?
Put the elements in the URL to the next page, or into hidden elements in
a form.
---John Holmes...
> -Original Message-
> From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 4:28 AM
> To:
or learn how to write a
decent job description that accurately describes what you're looking
for. I'm sure other people agree with me. I should Cc: your message and
response to all of the PHP lists you spammed to so everyone can know
what kind of "company" you are running.
v/r
ose could be
handled differently on different versions of the browser on different
OSs.
---John Holmes...
> -Original Message-
> From: Kim Kohen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 5:27 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Windows based Mail() problem (ne
does anyone know if a session variable set within a class is accessible
outside the class and by other pages?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
m hooked on TextPad. Let us know if you have any
> experience using Dreamweaver MX.
>
> ---John Holmes...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n why
you need to do this?
You can call a function name with a variable. Like for your example
$variable = "new_func";
$variable("data");
That'll work. Explain what your trying to do and we can probably help
you find a better approach.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
There is a session problem with 4.1
If register_globals is ON, then use session_register().
If it's off, then use $_SESSION["name"] = "value"; and the value will
automatically be registered.
---John Holmes...
> -Original Message-
> From: Adam Douglas [m
is listserve, forums like on Devshed.com, and some
tutorials, you're good to go. You can download a windows help file
version of the manual, too.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Doesn't matter, PHP will juggle the type and make it a number. What do
you get for results, these look like they should work. Are you getting
errors or are you getting odd results?
---John Holmes...
> -Original Message-
> From: Tom Beidler [mailto:[EMAIL PROTECTED]]
> S
Just a general question of the best way to do it !
I've got a job search site with mysql at the back of it !
You choose on the first page - type of job, where and other bits,
go to the next page where query is done and then lists the jobs available!
Whats the best way of keeping this page tempora
ek disabled mail() in the
PHP build.)
John Hughes
--- Philip Olson <[EMAIL PROTECTED]> wrote:
> An issue/confusion of register_globals, global, and
> variable scope exists out there; here are some thoughts:
>
> a) As of PHP 4.2.0, register_globals default
and there are new super-global
arrays.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
reate it.
On the receiving end, PHP can take GET, POST, or COOKIE data from the
user. If you want to send something to PHP, send it through one of those
methods.
---John Holmes...
> -Original Message-
> From: Morten Nielsen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 200
om or PHPbuilder.com.
---John Holmes...
> -Original Message-
> From: Charl [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 1:08 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Search engine indexing
>
> Are PHP files indexed the same way as plain HTML files by sea
mysql_connect("host","username","password");
If there is no password, leave it blank. "host" is the name or IP
address of the MySQL server. Set it to localhost if it's on the same
machine as the script.
---John Holmes...
> -Original M
ned off unexpectedly?
Other than the security reasons, is there any disadvantage to adding
this line?
John Hughes
--- Philip Olson <[EMAIL PROTECTED]> wrote:
> > I have several scripts that take it for granted PHP will assign
> > variables to the information in the URL as in
Hello Gerard,
The point is that we wanted adodb to work "out of the box" so that is
why srand( ) is called. You can do it yourself if you want to (and comment
out the srand) , or let adodb do it for you.
Regards John
"Gerard Samuel" <[EMAIL PROTECTED]> wrote in messa
Just CPU time to make all of the new variables.
---John Holmes...
> -Original Message-
> From: John Hughes [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 9:58 PM
> To: Philip Olson; [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: tutorial on global variables
>
There's a whole section in the manual on it. There is a log_error() or
errorlog() function that'll write your errors to a file of your
choosing.
---John Holmes...
> -Original Message-
> From: .ben [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 4:04 AM
>
kes a minute.
---John Holmes...
> -Original Message-
> From: Pag [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 4:59 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP editing environment
>
>
> Hi, i am new to the list and i am quite impressed with whats
g
You're trying to call a function within an object. Something like
Something->getthis();
Which is not a "normal" PHP function. Show your code. You're probably
just calling it wrong.
---John Holmes...
> -Original Message-
> From: Richard Brenner [mailto:[EMA
> $db = ("localhost","databasename","databasepassword");
maybe add in a MySQL_connect() somewhere in there???
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try this:
http://www.phpclasses.org/browse.html/package/522.html
---John Holmes...
> -Original Message-
> From: Andras Kende [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 1:23 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] php zip/store locator code.
>
&
ore hand? It's not going to be shown, anyhow. Any page
with this problem needs to have it's logic rethought.
If you can't or are unwilling to do that, then use output buffering.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Except that the file can't exist. If it does, fopen() will cause an
error. You can use ftp_connect() instead...as per the MANUAL.
---John Holmes...
> -Original Message-
> From: serj [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 5:24 PM
> To: Mike Eheler
>
ing, for example, you would put
mail.mindspring.com instead of localhost.
---John Holmes...
> -Original Message-
> From: Alex Shi [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 6:52 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] I want to use a mailer other than sendmail
Get your data, and write it to a file with fopen()/fwrite()
---John Holmes...
> -Original Message-
> From: Yura [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 04, 2002 2:40 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to save records from MySQL in separate files?
No. PHP is server side, Javascript is client side and their code does
not mix.
---John Holmes...
> -Original Message-
> From: Morten Nielsen [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 04, 2002 2:42 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Javascript function
Yes, modify your php.ini file to tell PHP where to write the session to.
It's trying to write it to /tmp, which is either not a valid file, or
PHP doesn't have permissions to write a file there.
---John Holmes...
> -Original Message-
> From: Alex Francis [mailto:
> $Mensagem = $coments;
Where is $coments coming from? Why do you assign a variable to a
variable, without changing anything?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Have you tried using $_GET["name"] to get the value?
---John Holmes...
> -Original Message-
> From: Dylan Fitzgerald [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 04, 2002 9:53 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP 4.2.0 and the GET method URLs
Alternative methods are listed here:
http://www.php.net/manual/en/control-structures.alternative-syntax.php
---John Holmes...
> -Original Message-
> From: David Jackson [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 04, 2002 1:28 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTEC
Have you tried looking at a phpinfo() page and seeing what variables are
available?
Make a page with just the following line in it and load it up through
your web server.
---John Holmes...
> -Original Message-
> From: Kyle Gibson [mailto:[EMAIL PROTECTED]]
> Sent: Saturda
This is simpler than cookies?? Anyway, that's how you have to do it.
Fopen(), fwrite(), fclose()...not any way simpler that I know of.
---John Holmes...
> -Original Message-
> From: Jule [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 04, 2002 6:23 PM
> To: [EMAIL PRO
www.php.net/nl2br
---John Holmes...
> -Original Message-
> From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 04, 2002 11:27 PM
> To: PHP General List
> Subject: [PHP] HTML to mysql - from msql to html
>
> Hey PHP General List,
>
> I
Neither of those change. You don't have to use stripslashes() on
incoming DB data, unless magic_quotes_runtime is ON in php.ini.
---John Holmes...
> -Original Message-
> From: Dreamriver.com [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 05, 2002 2:33 AM
> To: [EMAI
>
> file.php?file=inc.foobar.php
> -
> include("include/$file");
>
That doesn't fix anything...
file.php?file=../../../etc/passwd
Just a matter of a few tries to see how many directories you have to go
up...
---John Holmes...
--
I've got a small function which checks city name with post codes
And because this needs to be checked in several scripts I want to have it in
my common functions file
and include it !
require ("common_funtions.inc");
and then use it
if (!check_city_from_plz($t_zipcode)){
echo "Your city does n
Are you having trouble pulling the data out of the file, or creating the
link? Do you want a link created for every row? What is the makeup of
the file? Is array[0] the URL, and array[1] the desription? If it's just
the link you need, that's easy...
echo "" . $array[1] .
>return 1;
>return $city_id;
>return $cityname;
You can't return 3 values...try returning an array, instead.
$ret[0] = $city_id;
$ret[1] = $cityname;
return $ret;
or...
$ret["City_ID"] = $city_id;
$ret["CityName"] = $cityname;
return $ret;
-
ray, instead.
>
> $ret[0] = $city_id;
> $ret[1] = $cityname;
> return $ret;
>
> or...
>
> $ret["City_ID"] = $city_id;
> $ret["CityName"] = $cityname;
> return $ret;
>
> ---John Holmes...
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It will work; you're just doing something wrong. Do you want to fix it,
or keep doing it this way?
---John Holmes...
> -Original Message-
> From: John Fishworld [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 05, 2002 10:55 AM
> To: [EMAIL PROTECTED]; 'PHP-Genera
RTM... www.php.net/flock
---John Holmes...
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 2:53 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Please, can you help me?
>
> Hello!
> I have a big problem an
And I need a PHP script to help me take over the world. It has to be
fewer than 666 lines and I don't have MySQL. Also, could you write the
PHP in ASP, please?
---John Holmes...
> -Original Message-
> From: George Nicolae [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 05,
should redirect output to a
file or email. You can use the -dump switch for lynx to dump any output
that does occur.
I know he said he did not want to invoke it from a browser, but I think
he meant that he didn't want to have to physically go to and load up the
page himself.
---John Holmes
I've got a form where people can enter a link into !
What's the best and quickest way of confirming if the link exists !
Just use fpassthru and see if you get an error ?
Or has anyone got any better suggestions ??
Regards
John
--
PHP General Mailing List (http://www.ph
e manual page on mysql_connect(), you're missing some arguments.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Did you restart your server and read the manual pages on mcrypt to see
if you need any other files? Some extensions can only be enabled at
compile time.
---John Holmes...
> -Original Message-
> From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 06, 2002 3:5
Why bother posting a perl forum here !
YaBB is a leading FREE, downloadable Perl forum that allows you to provide a
real-time chat and support system for your visitors. While chat programs
allow people to talk directly, you have to be on them 24/7 to please
everyone. With forum software like YaBB
but I'd prefer
to be able to redisplay at text form field if possible.
TIA,
John Hughes
__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yep...
http://www.php.net/manual/en/features.connection-handling.php
---John Holmes...
> -Original Message-
> From: Jarrad Kabral [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 06, 2002 6:16 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Is the browser still open? if not
Are you loading the entire result set of the query into an array, or
just row by row?
---John Holmes...
> -Original Message-
> From: Kevin Meredith [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 09, 2002 11:48 PM
> To: PHP
> Subject: [PHP] Array usage affecting
nt to show the date later in the european from
ie day/month/year !
What is the best format to use ??
Thanks in advance
reagrds
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lol ! no thats not what I meant !
what's best to put into MySQL
datetime from MySQL
now()
or from php date !
Regarding the format - its a german site so not expecting many yanks there !
:-))
> On Saturday 11 May 2002 19:42, John Fishworld wrote:
> > Due to the large variety of
Okay so I've then got
2002-05-08
and whats then the best way to manipulate it regarding
plus 3 days or plus 4 weeks ?
> > lol ! no thats not what I meant !
> > what's best to put into MySQL
> > datetime from MySQL
> > now()
> > or from php date !
> >
> > Regarding the format - its a german si
es embedded within them. Strings enclosed
with ' will not have variables evaluated within them.
$name = "John";
Echo "My name is $name";
Echo 'My name is $name";
The first echo will output "John" as the name, the second one will
output a literal &quo
Either store your files in the database (I hate saying that), or use
.htaccess to protect the directory.
---John Holmes...
> -Original Message-
> From: Nick Wilson [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 11, 2002 1:59 AM
> To: php-general
> Subject: [PHP] prote
Store your files outside of the webroot if you use this method. Then
they can't type in the address directly (otherwise this doesn't fix
anything).
---John Holmes...
> -Original Message-
> From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 11, 200
Set a cookie, redirect to same page, and see if cookie is sent to you.
---John Holmes...
> -Original Message-
> From: Nookie [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 11, 2002 4:21 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Cookies
>
> Hi.
>
> Is t
hat hard to understand.
Don't skip over them, read the chapter a couple times if you have to...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.similar to date() in PHP.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
; $img1_name = "n"+$img1_name;
> }
>
> should be:
>
> if(file_exists($img1_name)) {
> $img1_name = "n" . $img1_name;
> }
Umm...wouldn't you want to use file_exists("mjpalpics/$img1_name")
instead? Otherwise you're not checking for it
$name from the previous page in the variable
$_SESSION["name"]
It's a little different if you're not using PHP 4.2, so read the manuals
on sessions...
---John Holmes...
> -Original Message-
> From: Glenn Sieb [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 11, 20
> Am I missing something here? If one wants to have dynamic pages and
uses
> PHP,
> then *some* DB has to be available, correct?
Ideally, yes, you'd want a database. But you could do it with text
files...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
How about looking through the table of contents... ??
XXVII: Error Handling and Logging Functions
http://www.php.net/manual/en/ref.errorfunc.php
---John Holmes...
> -Original Message-
> From: Sqlcoders.com Programming Dept [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 12,
Nothing to do with PHP...
SELECT * FROM table ORDER BY RAND();
---John Holmes...
> -Original Message-
> From: Jule [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 12, 2002 9:49 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] random order
>
> Hey guys and gals,
> I
kind of "hack" you come up with in PHP is going to be a waste
of time and memory.
---John Holmes...
> -Original Message-
> From: Nick Wilson [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 12, 2002 9:23 AM
> To: php-general
> Subject: [PHP] help with sort pr
x27; in your host.
You hosting provider, if they're any good, will know all about this.
It's hard to talk people into giving you access, though, because they
are generally pretty paranoid.
---John Holmes...
> -Original Message-
> From: r [mailto:[EMAIL PROTECTED]]
is up into two
tables.
---John Holmes...
> -Original Message-
> From: Jule [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 12, 2002 1:28 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: [PHP] random order
>
> hmm it got a little mor
You have to do separate inserts...you can't JOIN inserts like that...
---John Holmes...
> -Original Message-
> From: Peter [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 12, 2002 8:38 PM
> To: Php
> Subject: [PHP] inserting data to mutliple mysql tables
>
&g
uery would work in other database programs, too.
---John Holmes...
> -Original Message-
> From: Neil Zanella [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 12, 2002 9:13 PM
> To: John Holmes
> Cc: 'Jule'; PHP General Mailing List; MySQL Mailing List
> Subjec
basically i've got a file upload script (that works)
what i want to do now is restrict it to filetypes of 'image/jpeg'
however now i can't upload jpegs cause their filetype appears to be
'image/pjpeg'
does anyone know of what could be happening here?
--
PHP General Mailing List (http://www.
ote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I guess you could check the $userfile_type for the correct type.
>
>
> "John Ngo" <[EMAIL PROTECTED]> schreef in bericht
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > basically i've
Why can't you use one query?
UPDATE Book2 SET stock = stock - $quantity WHERE stock >= $quantity AND
booktitle = '$booktitle'
---John Holmes...
> -Original Message-
> From: Matthew Ward [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 11:52 AM
> T
'string',
which will be true for every row in every table. It's no wonder you're
getting an odd result. Also, are you trying to display the values from
the database here? There is no fetch_* function to get anything out of
the result set. Where is $id coming from??
I can
Is register globals on in your PHP.ini? Are you sure there isn't a
cookie or session value of $user that's overwriting your POST value?
I really hope this is the case, it's such a perfect argument for why PHP
4.2 is the way it is... :)
---John Holmes...
> -Original M
will, umm, replace the "\n" with a "".
---John Holmes...
> -Original Message-
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 9:47 PM
> To: 'Rob Packer'; [EMAIL PROTECTED]
> Subject: RE: [PHP] make hitting enter in a
se
up extra time (processing power) unzipping things or not. Also, you're
using more processing time on your computer having to do the zipping for
every request, too.
---John Holmes...
> -Original Message-
> From: Girish Nath [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14
f your clients, etc.
Maybe it's not that big of a deal, but I just don't want some newbie
seeing this and thinking that it's going to be the answer to all of
their problems. I may even look into it for a couple large pages that I
have. You can control it on a page-by-page basis,
Your error_reporting is probably set to different levels.
www.php.net/error_reporting
---John Holmes...
> -Original Message-
> From: Bob Strasser [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 9:48 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Using PHP on
1501 - 1600 of 6736 matches
Mail list logo