I cannot figure out why this button does not work any suggestions
are appreciated. Thanks.
$table = inventory;
$sql = SELECT * FROM $table where category='$category';
$result = mysql_query($sql);
while ($myrow = mysql_fetch_array($result))
{
printf(trtd border=1 bgcolor=#A0AAB9font
your code works for me. it would be helpful to know how your code doesn't
work. does it pop the window at all?
couple of suggestions: use onClick instead of onclick - if I recall
correctly case matters in Javascript event names depending on your browser.
also, you don't need to use the
At 01:37 29-7-01 -0700, you wrote:
email the file
Read the manual:
http://www.php.net/manual/en/function.mail.php
Bye,
B.
-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
- Original Message -
Hi all,
Apologies if this has been asked before, I'm new here. I've got a PHP
script that's returning a formatted string of variables to a Flash movie.
The string getting returned looks like so (currently it's just the 1 variable):
bAcquired=Y
Flash's debugger seems to think that there is a
Change your output string to look like
bAcquired=Y
and you should be ok.
You may find as you get further into this that you need a delay loop to
make sure that flash has read all of your data, since it happens
asychronously (at least in Flash 4 it did) so you'll want a sentinel
value at the
Hi,
I would like to run a variable of unlimited length through a filter that
would limit its length to 55 lines (ie limiting it's length to less than 1
printed page). Does anyone know of an easy way to do this?
thanks.
Regards,
Dan Barber
Mojolin
---
Mojolin: The Open
Hiya Dan,
If you're expecting new lines, you could do this:
$length = explode(\n, $message);
if (sizeof($length) 55) {
// error
}
And also limit the number of characters, using strlen()
James
Dan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I
Hi,
How to get return value from a recursive function .. here is the test code
which I was trying
?
function abc_recurse()
{
static $i = 1;
echo $i;
$i++;
if ($i == 4) return (xyz);
abc_recurse();
}
$returnvalue = abc_recurse();
echo $returnvalue;
?
maybe it is just me and my preferred syntax/style...
if ($i 4) {
abc_recurse();
}
return 'xyz'; # NOTICE REMOVED ()'s
Did not look to closely at your shortcut symantics to verify legitimacy
Also, unless I am mistaken, people generally advise against
I tried to detect the Web-Servers operating system. Under Windows it's easy
to read the environment variable OS (or one of the relatet Server
Varaibles). Under Linux I found the following very strange behaviour:
system(echo \$OSTYPE) correctly returns linux-gnu whereas
getenv(OSTYPE) returns
You wrote:
I was wondering what I would have to do in order to have index.php
load up
automatcially when someone went to my domain. IE if they go to
www.mydomain.com and I have index.html or index.htm there then those
pages
get loaded first. How could I do it so index.php, index.php3,
Just so you know, you can also list them off in order you want them to
appear.
DirectoryIndex index.php index.html default.php
etc. etc.
Your Systems administrator for whomever you host with should be able to take
care of this, he probably should have already :)
- Original Message -
Use the DirectoryIndex directive in your '.htaccess' file, as Ryan
states. You'll find more information at:
http://httpd.apache.org/
Nelson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
I have the following question :
I have a picture of a floor and the dimention are W=500 H=375
I put this image on te screen by the following command
img border=0 src=red.jpg WIDTH=500 HEIGHT=375
I want to make this picture smaller
img border=0 src=red.jpg width=250 height=100
Now the
Thanks for the quick answers.
Problem is, the only new lines are at the end of paragraphs, so that, in
effect, is limiting them to 55 paragraphs. I'm using a textarea
wrap=physical which says that it adds a %0A%0D (carriage return/line
feed) at the end of each line.
Anyone know how to
Define not work Some tips :
1. echo your query, make sure it appears as intended. In otherwords, make
sure the variables $table and $category contain proper data.
echo $sql;
2. make use of mysql_error() function as it can be useful.
echo mysql_error();
For example, you may want
See :
http://www.faqts.com/knowledge_base/view.phtml/aid/4058/
This faq needs to be updated soon but should help regardless. If anyone
has suggestions for this faq, please suggest or implement them.
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
You may want to use the predefined constant PHP_OS as described here :
PHP Manual : Predefined Constants
http://www.php.net/manual/en/language.constants.predefined.php
Regards,
Philip
Rainer Rosenberger wrote:
I tried to detect the Web-Servers operating system. Under Windows it's
ummm... problem
Forbidden
You don't have permission to access /manual/en/function.mail.php on this
server.
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.
-legokiller666-
http://www.StupeedStudios.f2s.com
New address new
Kyle,
http://www.php.net/manual/en/ref.mail.php is the correct URL, but the easiest way to
access these sort of things is:
http://www.php.net/mail (substitute mail with any function name)
HTH,
John
ummm... problem
Forbidden
You don't have permission to access /manual/en/function.mail.php
Hi,
I've made a nice working skript for managing MySQL database of
about 300 records (this is my first PHP script). But I don't know
how to split search results on pages? Does anyone have an
example of such script for me to work on it and understand how it
works?
My script is done as if:
Check out PEAR. There is a class that do that for you.
-slowpork
Hi,
I've made a nice working skript for managing MySQL database of
about 300 records (this is my first PHP script). But I don't know
how to split search results on pages? Does anyone have an
example of such script for me
Forbidden
You don't have permission to access /manual/en/function.mail.php on this
server.
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.
2 options:
- you tried to get that file from your own server
- someone screwed up the
At 13:30 29-7-01 +0100, John Steele wrote:
Kyle,
http://www.php.net/manual/en/ref.mail.php is the correct URL, but the
easiest way to access these sort of things is:
The link I send does gives you the manualpage for mail()
Both should work fine.
Bye,
B.
--
PHP General Mailing List
Manu Verhaegen [EMAIL PROTECTED] wrote in message
E10E651CDD2DD5118912E8E8C70F53D6@COMPUVER01">news:E10E651CDD2DD5118912E8E8C70F53D6@COMPUVER01...
I have the following question :
I have a picture of a floor and the dimention are W=500 H=375
I put this image on te screen by the
How can I recompile Apache so that I can use PHP4 as a Dynamic Module (DSO).
This is a working server and I can not change the httpd.conf file so I do
not what to just do a compile and make install. Also there is not a copy
of apxs on the server where can I get a copy of this. The server is
http://www.f2s.com
its what im on but you can only use FTP which is a bitch to set up (no
ads no nutting)
-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
- Original Message -
From: Philip Olson
On 29-Jul-2001 Mike Gifford wrote:
Hello,
I've got a number of press releases that I'd like to be able to order by
year.
I'd like everything from this now to a year ago (ie. July 29th, 2000) to be
ordered together and then allow folks to scroll back to the previous year
July
30, 2000
It works fine.
You probably need to specify libpq location explicitly.
--with-pgsql=/your/pgsql-7.1.2/somewhere
Regards,
--
Yasuo Ohgaki
Stuart Grimshaw stuart[get@smgsystems.co.uk wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Has anyone sucessfully used these two versions
Well, you could try:
extract( $GLOBALS )
inside a function - that might work..
At 22:14 26/07/2001 -0400, [EMAIL PROTECTED] wrote:
How can I read in all of the global variables and give them local
scope? PLEASE HELP ME.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
OK - a bit of a long shot, but I was just looking into the MS passport
service - they've got some
docs on how to interface to it from other platforms.
They ask you what server type, what OS, then what 'platform'. It's a
freeform box, but the examples they give are
interesting:
Platform Type
What's the deal with that NuShere stuff... I visited their website and
download a Free version (40MB)...
I just don't get what are they asking 200, 400, 500 and even 5.000 dollars for.
It's just a combo of PHP, MySQL and Apache pre-configured, some samples and
some tools... but other than
Quoting Gerard Samuel [EMAIL PROTECTED]:
Hey all, Im running freebsd 4.3, apache 1.3.20, mysq.3.23.39, php 4.0.6.
Im trying to figure out file uploading.
If I echo $pic, $pic_name, $pic_size, $pic_type, after the form is
submitted, everything echoes correctly.
In my script I have ==
Hey all,
I want to craft a header such that it seems to the page that data has
been POST'ed to it... Here's the situation: I'm writing a login page to
my application, and if they log in incorrectly, I want the page to
redisplay, but I want it to throw out an error message. I'm currently
doing
Ben Bleything [EMAIL PROTECTED] wrote in message
01c11891$447271c0$0201a8c0@allegro">news:01c11891$447271c0$0201a8c0@allegro...
Hey all,
I want to craft a header such that it seems to the page that data has
been POST'ed to it... Here's the situation: I'm writing a login page to
my
Phil, thats why you get the big bucks.
Dammit, I was messing around with this all day.
Thanks it works now.
Gerard
Philip Murray wrote:
Quoting Gerard Samuel [EMAIL PROTECTED]:
Hey all, Im running freebsd 4.3, apache 1.3.20, mysq.3.23.39, php 4.0.6.
Im trying to figure out file
I'm fully aware of that. The issue is not the refreshing (that works
fine)...
Here's a little more detail:
if(!$login)
{
if($failure)
// complain
// show the form
}
else
{
if(user_is_good)
// take them to the next page
else
Quoting Ben Bleything [EMAIL PROTECTED]:
I'm fully aware of that. The issue is not the refreshing (that works
fine)...
Here's a little more detail:
if(!$login)
{
if($failure)
// complain
// show the form
}
else
{
if(user_is_good)
What I'm looking for is a way to do this such that the user does not see
anything more than http://host.name.here/rams/login.php in their address
bar when it failed...
Doesn't using a form with its method set to post send the variables through
headers? If that's the case, couldn't you
That seems much more complicated than I need.
I understand that the POST operation stores the data from the form in
the message headers... I just need to know which headers, so I can use
that information to write my own... I basically want to make it seem as
if the $failure var was POST'ed back
I _believe_ (not totally sure) that mysql_query() can only handle one
statement at a time, and if you need to execute multiple, you will need
to use more than one mysql_query() statements. It's a bummer = I have
all sorts of problems with it.
What's up with your return e-mail address? It's a
All I want to do is output Authentication failed above the form if
they type in invalid credentials. I want to do it by passing a header
that contains the same information as if there were a form submitted
that contained a field name failed and value true. Aside from this
one application, I can
I don't know how to solve your problem, but I do know what you are talking
about.. People just aren't understanding.
All he wants is if you go to login.php in your browser, the Location will
show:
http://his.website.com/rams/login.php
Okay? Got it? NOW... If you attempt to log in and
* Chris Aitken [EMAIL PROTECTED] [010729 19:44]:
Something ive been working on and not having much success is this. I am
writing a function, and I want to be able to feed it the following -
function_name (
array(Apple,Red,10,20),
array(Banana,Yellow,10,20)
);
The way that I did it was by using sessions which if you have a login you
are probably using anyways. One of my session variables is message. That
way I can pass messages back and forth to pages, reinitialize them after the
message has been received, etc etc etc. If you REALLY want to use
THANK YOU. Finally.
Unfortunately, in brief tests, I can't get it to work, but I will
continue to beat on it. That's exactly what I was getting at.
I found some info on the internet regarding what the headers that POST
sends are... you can see it at http://opop.nols.com/write/HTTP.html.
Hope
On 30-Jul-2001 Ben Bleything wrote:
All I want to do is output Authentication failed above the form if
they type in invalid credentials. I want to do it by passing a header
that contains the same information as if there were a form submitted
that contained a field name failed and value
Hi all,
can anybody tell how do i disable the user's back button, i mean
that when he clicks the back button, in his browser, AFTER he has sigend
out or finished a transaction, he will get a message saying that the
session has expired ... just the way hotmail does it.
thanx in advance.
48 matches
Mail list logo