- Original Message -
From: "Omar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 30, 2002 1:32 PM
Subject: [PHP] problem including a file
> I have an include line in all the php files i write
> something like --> include('connection.inc');
> The include path is d:\inc
- Original Message -
From: "Doug Coning" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Monday, December 30, 2002 3:26 PM
Subject: [PHP] Multiple forms
> Hi all,
>
> I have an update page that has a form in it.
>
> However, I want to add another form in the same page. My
- Original Message -
From: "Richard A Downing" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 31, 2002 5:54 AM
Subject: [PHP] Missing logos
> I have just installed 4.3.0 with apache2.0.43.
> Running a standard test.php file consisting solely of:
>
>
>
> results in in
Yup, still experimental. But from what I've experienced, they work just
fine together. I run Apache 2.0.43 and PHP 4.3.0 together without any
problems what so ever. When you compile php with apache 2, remember to:
./configure --with-axps2
instead of
./configure --with-apxs
tyler
- Original
Hi,
I have this query:
$decode = mysql_query("SELECT decode(\"$data\", \"$password\")");
It decodes the $data using the $password. How do I go about printing the
result?
Thanks,
Tyler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
no
tyler
- Original Message -
From: "Daniel Guerrier" <[EMAIL PROTECTED]>
To: "php user group" <[EMAIL PROTECTED]>
Sent: Tuesday, February 18, 2003 4:59 PM
Subject: [PHP] Redirect without header or javascipt
> Is there any to redirect in php with using header()
> and without the use of
Hi,
I was looking through php.ini and noticed that show_error was set to Off. I
turned it On, and now I see these errors on one of my pages:
Notice: Use of undefined constant option - assumed 'option' in
/usr/local/apache/htdocs/tyler/encodeDecode.php on line 37
Notice: Undefined index: option i
Default location is:
/usr/local/lib/php.ini
You can also do a:
locate php.ini
Good luck,
Tyler
- Original Message -
From: "Kevin Paz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 1:03 PM
Subject: [PHP] Cannot find php.ini
>
> I've taken over a redhat se
The actual name of the variable in that message is display_errors, not
show_error.
tyler
- Original Message -
From: "Tyler Longren" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 1:01 PM
Subject: [PHP] What do these errors mean?
&
Hi,
I'm going to start encrypting credit cards with the mcrypt functions. I
encrypted the credit cards like so:
$key = 'test';
$cc = "1234567890123456";
$td = mcrypt_module_open ('tripledes', '', 'ecb', '');
$key = substr ($key, 0, mcrypt_enc_get_key_size ($td));
$iv_size = mcrypt_enc_get
the latest stable version of PHP works just fine with Apache 2.0.47.
tyler
- Original Message -
From: "Jonathan Villa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 23, 2003 11:47 AM
Subject: [PHP] PHP5?
> Has anyone installed PHP 5 on Apache 2.0.47? What version o
any info that really applies to my question. This isn't exactly a PHP
related question, but php is hugely involved in this project.
Thanks!
Tyler Longren
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'm running an UPDATE query on my table. After executing the query, I check
mysql_error() to see if there's any errors:
if (mysql_error() == "") {
// success
}
else {
// failure
}
mysql_error() is always empty even if the query didn't succeed. So it
always thinks it succeeds. I rem
hmmm...perhaps that was it. When I had this issue before, someone told me
to check mysql_affected_rows() when using issuing an UPDATE query. I'll
give that a shot.
Thanks!
Tyler
- Original Message -
From: "CPT John W. Holmes" <[EMAIL PROTECTED]>
To: "Tyler
oblem is that I can't get the results to be printed to my $template,
or $home_tpl. $home_tpl is named home.tpl, and that's where the html code
is that displays the results from worker_projects();
Can anyone help me out here? If you need more info, just let me know.
Tyler Longren
[EMAI
why not just make the 'id' field in the table auto_increment?
tyler
- Original Message -
From: "Steve Marquez" <[EMAIL PROTECTED]>
To: "MySQL List" <[EMAIL PROTECTED]>
Cc: "PHP eMail List" <[EMAIL PROTECTED]>
Sent: Friday, June 06, 2003 2:40 PM
Subject: [PHP] Duplicate records
> Hello.
Did you try taking a look at the manual?
Tyler
- Original Message -
From: "Lee Elenbaas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 1:06 PM
Subject: [PHP] Sessions?
> Hi,
>
> I have failed to find the information I am looking for on session
management
> b
/tyler/web/upload.php on line 28
And here's line 28:
$data = fread(fopen($_POST['binFile'], "r"), filesize($_POST['binFile']));
Am I doing that correctly? If you need to see more code, let me know.
Thanks everyone!
Tyler Longren
--
PHP General Mailing List (htt
Are you trying to upload the same image as you did at home? If so,
size isn't the problem if you can do it from home. It might be a
timeout issue. There might be something in php.ini you can set for
timeout. You can specify the max filesize to upload in php.ini also.
Good luck,
Tyler
On Wed
Hi,
I've been searching around for ways to convert pdf to html. I haven't
had much luck.
I have a client that has a bunch of pdf's stored in a mysql table.
They don't want their users to have to download the pdf file, they want
the pdf to be displayed in the web browser all the time. Google h
Charge by which ever will get you the most money.
tyler
On Thu, 25 Jul 2002 11:46:38 -0400
Gerard Samuel <[EMAIL PROTECTED]> wrote:
> Basically, someone is looking to get a database driven site built,
> and Ive never written code for money before.
> Im looking for advice, as to how the experien
ichever 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
>
I'm not sure exactly what you're saying, but it sounds to me like you
didn't configure --with-mysql for the new server. You MUST do that.
./configure --with-apxs=/blah/blah --with-mysql
If you don't have --with-mysql compiled into the php binary, mysql
functions won't work.
Tyler
On Tue, 30 Ju
Use apache 1.3.26 and it'll work. Just change the configure line:
./configure --with-mysql --with-apxs=/path/to/apxs
Apache 2 is troublesome.
tyler
On Wed, 31 Jul 2002 17:27:30 -0500
"Kirk Babb" <[EMAIL PROTECTED]> wrote:
> Could somebody help me with this?.I posted yesterday with only on
It's called Google Magic.
I don't really know the answer to your question. Google does a lot of
really neat things (like converting pdf to html).
tyler
On Thu, 1 Aug 2002 08:17:35 +0100
"Lord Loh." <[EMAIL PROTECTED]> wrote:
> Google uses php to make a software download and installs it throug
> Should this be asked in a mysql list ? Please suggest a NNTP server!
You could always take this to the mysql mailing list
[EMAIL PROTECTED]
tyler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
block his ip at the router.
tyler
On Sun, 11 Aug 2002 16:21:07 -0600
"RPS Internet" <[EMAIL PROTECTED]> wrote:
> My server is getting odd request form an outside computer. Upon
> looking into the requests I have found his PHP Config file is point to
> my server as the HTTP_VIA and other vars. I
>
> -----Original Message-
> From: Tyler Longren [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 11, 2002 4:15 PM
> To: RPS Internet
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Hacker?
>
>
> block his ip at the router.
>
> tyler
>
> On Sun,
This is the greatest php related question I have ever seen.
tyler
On Wed, 28 Aug 2002 15:23:48 -0400
[EMAIL PROTECTED] wrote:
>
> Hey,
> I am on a cable connection...and to connect to the net my provider
> gave me an address where my browser would get automatically
> configured...maybe because
using exec() or system() will only be able to execute commands on the
machine php is installed on. I sometimes wonder how universities and
broadband isp's do this. I'd be interested in seeing how it works.
Sorry, I'm not much help anymore.
tyler
On Fri, 6 Sep 2002 01:24:07 +0200
<[EMAIL PROTE
$sql = mysql_query("SELECT * FROM table ORDER BY whatever");
echo(mysql_num_rows($sql));
that should do it.
tyler
On Tue, 10 Sep 2002 00:58:26 -0400
"Chuck \"PUP\" Payne" <[EMAIL PROTECTED]> wrote:
> I am wanting to do a count in PHP. I want to be able to count the
> number of records from a g
Try this:
$subdomain = $_SERVER["SERVER_NAME"];
And then get all the text before the first ".".
Tyler
On Wed, 11 Sep 2002 10:55:56 +1000
"Liam MacKenzie" <[EMAIL PROTECTED]> wrote:
> G'day everyone,
>
> I have a dilemma...
> I'm running BIND locally, with a wildcard A record.
> That means tha
You should check to make sure the variable isn't empty. And if it is
put some other name in there (like Bill Clinton).
Cuz if you go to just http://fuckedyourmum.com, you just get:
"fucked your Mum!!!" for text.
Just a suggestion,
Tyler
On Wed, 11 Sep 2002 12:08:03 +1000
"Liam MacKenzie" <[EMA
How long does the script tend to run before it just "quits"? Perhaps
a timeout is set too low in php.ini.
Take a look at max_execution_time in php.ini
tyler
On Tue, 17 Sep 2002 23:14:46 +0100
Shane Wright <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi
>
Did you even try to find the answer by yourself? You could have found
the answer to this on the PHPTriad(now called Sokkit) homepage:
http://www.phpgeek.com/sokkit/
The answer is listed under "Sokkit Requirements".
tyler
On Tue, 1 Oct 2002 17:19:13 -0500
"Stephen" <[EMAIL PROTECTED]> wrote:
>
yes, that would work much better.
tyler
On Tue, 01 Oct 2002 20:11:21 -0400
Brad Bonkoski <[EMAIL PROTECTED]> wrote:
> Sorry...
> I think:
> http://www.php.net/manual/en/function.phpversion.php
> will be more inline with what you want...
> -Brad
>
> Alex Shi wrote:
>
> > Is there any way to re
You can get it out of this variable:
_SERVER["SERVER_SOFTWARE"]
tyler
On Tue, 1 Oct 2002 20:03:25 -0400
"Alex Shi" <[EMAIL PROTECTED]> wrote:
> Is there any way to report PHP version?
>
>
> --
> ---
> TrafficBuilder Network:
> http://www.bestadv.net/index.cfm?ref=702
latest version is:
4.2.3
not 7.2
tyler
On Wed, 2 Oct 2002 10:36:08 +0800 (CST)
¼ÒÎÄ ·½ <[EMAIL PROTECTED]> wrote:
> thanks.
>
> Can you email me???
>
> _
> Do You Yahoo!?
> "·¢¶ÌÐÅÓ®ÊÖ»ú,¿ìÀ´²Î¼ÓÑÅ»¢¾ÞÐÇÐã!"
> http://cn.ent.yahoo.com/s
I think that's pretty much your only option. You could use javascript to
redirect if you wanted.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "Renaldo De Silva" <[EMAIL PROTECTED]>
To: <[EMAIL PRO
Hi,
I have two different timestamps:
20020603164114
and
20020605054710
Is there a simple way to get the number of days between the two dates?
thanks,
tyler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
quot;1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Tyler Longren" <[EMAIL PROTECTED]>; "php-general"
<[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 10:09 AM
Subject: Re: [PHP] days between two timestamps
> Since those look like MySQL timestamps,
What do you mean "the best way"? Do you mean which data type you should
give the field? A bit more info please. :-)
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thur
you need to put your $myrow in a while loop:
while ($myrow = mysql_fetch_array($result)) {
$title = $myrow[title];
$videoid = $myrow[videoid];
$catergory = $myrow[catergory];
$appraisal = $myrow[appraisal];
// blah blah blah everything else
}
Tyler Longren
Captain Jack Communications
If you don't have cURL Installed yet, you can get it for Win32 here:
http://curl.haxx.se/download.html
On Tue, 2002-06-18 at 09:30, Barbara wrote:
> I want to know how I have to install cURL on my apache server. My apache server is
>running on Windows ME.
> Thanks for all.
> Barbara Guillen.
> S
Perhaps it was a typo, but "parse error on line 1" does state the line
number.
tyler
On Tue, 2002-06-18 at 09:57, Kevin Ruiz wrote:
> I'm running php 4 on a unix server and am experiencing a problem with error
> reporting I'm getting on my mac.
>
> When I get a parse error it won't tell me what
Just for future reference, you don't actually need to put the 'echo'
before the phpinfo(). Calling phpinfo() by itself will print the
desired info.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Tue, 18 Jun 2002 15:30:38 -0400 (EDT
Why don't you just use 4.2? I wouldn't use 4.3 on a linux box, let
alone a windows xp machine. Give it a try with 4.2. If it works, then
it is indeed a version conflict.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Tue, 18 Jun 2002 21:3
Change upload_max_filesize in php.ini to the value you desire.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Thu, 20 Jun 2002 12:12:33 -0400
"Anil Garg" <[EMAIL PROTECTED]> wrote:
> hi,
>
> how can i change the maximum size o
Did you restart your webserver after you made the change in php.ini? If
you didn't, make sure you restart it now. Restarting your webserver
should fix it.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Fri, 21 Jun 2002 12:57:34 -0400
"
that who's gonna steal your mysql username/password.
They can't just say:
Download http://yoursite.com/file_with_good_info.php
and get the php-source, all they'd get is the HTML source.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Tue,
resource
in /usr/local/apache/htdocs/cj/aanr/admin/passcode_admin.php on line 146
The "$data =" line is line number 146. Does anyone seen anything wrong
with this?
Thanks,
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
--
PHP General Mailing List (ht
Hi,
I have a form kinda like this:
the rest of the form is there too. And $PHP_SELF is set to $PHP_SELF =
$_SERVER[PHP_SELF] at the top of the page.
When I select a passcodeFile file to upload and click the "upload"
button, I am presented with this on the next page:
"You need to specify a fi
On Tue, 2 Jul 2002 23:45:56 +0800
Jason Wong <[EMAIL PROTECTED]> wrote:
> On Tuesday 02 July 2002 23:34, Tyler Longren wrote:
> > Hi,
> >
> > I have a form kinda like this:
> > > enctype=multipart/form-data>
> >
>
> You really should use &q
you must be tired from searching the manual all day for your answer. :)
Check here:
http://www.php.net/manual/en/install.apache.php
There's a section on installing with Win32
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Tue, 2 Jul 2002 17:
I'll assume you're using Apache. Did you add (or uncomment) the
relavent lines in httpd.conf? Check the php installation manual for the
lines to add.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Tue, 9 Jul 2002 12:02:27 -0500
"
I think you want to use group by:
SELECT * FROM table GROUP BY kat;
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Wed, 10 Jul 2002 19:40:11 +0200
<[EMAIL PROTECTED]> wrote:
> Hello
>
> I have a problem with mysql.I create a table wi
It works for you because you have register_globals set to "on" in
php.ini. If you set it to "off" it won't work any longer.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Thu, 11 Jul 2002 08:07:48 +0530
"Balaji Ankem&quo
"Table 'book_auth' already exists" means that you're trying to create
the 'book_auth' table again, even though it already exists. Remove the
old 'book_auth' table to create the new one.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
the php-dev mailing list, they can probably help you out
more.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Thu, 11 Jul 2002 16:22:27 +1000
"Peter" <[EMAIL PROTECTED]> wrote:
> Howdy
>
> can any one remember where to get the apac
I'm not sure if you can do that because you have to go row by row when
writing html, not column by column. I could be mistaken though.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Wed, 10 Jul 2002 22:34:15 -0800
"Jason Soza" <[EMAIL
I've never compiled php with the path to mysql. I've done this on lots
of different servers, and it always works. I don't know if it's the
proper way of doing things, but it does work.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On
mmended gets updated
after running the configure script.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Fri, 12 Jul 2002 09:56:52 +0930 (CST)
Michael Hall <[EMAIL PROTECTED]> wrote:
>
> I've just compiled PHP 4.2.1 with Apache 1.3.24 o
Hi,
I have a form:
And the code that processes the form:
if ($_FILES['pdfFile']['name'] == "") {
print "You must select a file to upload";
}
else {
// code to add data to db
}
This works on my server at home (when I select a file to upload, it sees
the filename in $_FILES['pdfF
In a production environment: no
for fun: yes
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Tue, 16 Jul 2002 09:13:41 +0930 (CST)
Michael Hall <[EMAIL PROTECTED]> wrote:
>
> I've had a hunt through the mail archives but can't fi
You could have found the answer to this question right on the front page
of php.net. 4.3.x is indeed the current development version.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Mon, 15 Jul 2002 14:00:26 -0230
"Kondwani Spike Mkandawire&quo
It's fine. There's no other way to do it really. Somebody would have
to be able to see the source to the php file before they could see the
password for mysql. They won't get it just by viewing the webpage
that's already been parsed by php.
--
Tyler Longren
Captain Jack C
connections only from your server.
>
> Tyler Longren <[EMAIL PROTECTED]> wrote: It's fine. There's no
> other way to do it really. Somebody would have
> to be able to see the source to the php file before they could see the
> password for mysql. They won't
mysql_connect()
function, it'd say "Using password: NO".
Go into mysql and make sure the username/password haven't been changed
and make sure the machine that php is on is allowed to connect to the
mysql server.
Good luck,
--
Tyler Longren
Captain Jack Communications
[EMAIL
I actually enjoy all the security releases. They give me something to
do at work!
tyler
On Mon, 22 Jul 2002 11:55:31 -0500 (CDT)
Greg Donald <[EMAIL PROTECTED]> wrote:
> On Mon, 22 Jul 2002, Marko Karppinen wrote:
>
> > PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and
> > 4.
'$_POST[domainregister_years$i]','$_POST[domainregister_price$i]')");
Anyone know why that parse error is happening? I can't find a missing
"]" anywhere.
Any help would be greatly appreciated.
Thanks,
Tyler Longren
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
type,years,price) VALUES
> >
> ('$_POST[domainregister_domain$i]','$_POST[domainregister_type$i]','$_PO
> ST[domainregister_years$i]','$_POST[domainregister_price$i]')");
> >
> > Anyone know why that parse error is happening?
Hi Matt,
I put this right above like 871:
print "$_POST[domainregister_domain$i]";
So now that "print" line is 871. It produces the exact same error as
the mysql_query() line.
The reason I'm doin it like this is cuz I'm dynamically generating
forms, and lots of the fields are the same, just wit
d the $i to the outside of the [] and it works now.
Thanks for everyone's input..helped me open my eyes a bit.
Tyler
On Mon, 2003-12-22 at 12:51, John W. Holmes wrote:
> Tyler Longren wrote:
> > Error:
> > Parse error: parse error, expecting `']'' in
> >
the "test" field like this:
count($_POST['test']);
But since I have to have the [] in the name="" ()part, I get parse errors when trying to read it:
ex: count($_POST['test[]']);
That doesn't even look right. Anyone understand what I'm tryin to get
a
me to RTFM
won't help cuz I've red that section. Don't tell me to STFA (search the
fuckin archives???), cuz I've done that also.
Thanks for your understanding!
tyler
On Mon, 2004-01-05 at 22:05, Tyler Longren wrote:
> Hi,
>
> http://www.php.net/manual/en/faq.html.p
)part, I get parse errors when trying to read it:
> TL> ex: count($_POST['test[]']);
>
> TL> That doesn't even look right. Anyone understand what I'm tryin to get
> TL> at? Any help would be great.
>
> TL> Best Regards,
> TL> --
> T
t, if no WHERE clause is in the query, then it will
automatically return a 0. As you can see, my query above does have a
WHERE clause. Can anyone help me out?
Thanks!!!
Best Regards,
--
Tyler Longren
J.D. Web Services, L.C.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Philip,
strlen() will work.
http://www.php.net/manual/en/function.strlen.php
Best Regards,
--
Tyler Longren
J.D. Web Services, L.C.
On Wed, 2004-01-07 at 01:25, Philip J. Newman wrote:
> can someone point me to the right place for a thing that would count charactors in a
>
t;assign("message","ERROR: There was an error deleting those
workers from the project.");
}
else {
$tpl->newBlock('message');
$tpl->assign("message","The workers have been deleted from the
project.");
}
If you (or anyone else) k
erver. Good stuff.
Tyler Longren
-Original Message-
From: Chris Lott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 7:37 PM
To: PHP General
Subject: [PHP] Web hosting for PHP/MySQl development
Any recommendations for a good, savvy host for doing some PHP/MySQL
development
t couldn't get anything
to work. I've tried everything I can think of.
Sorry if the explanation of my problem was hard to understand, I don't
exactly understand it myself. Thanks everybody!!!
Regards,
Tyler Longren
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-
Hello,
How do I get the number of the next month (Ex: 4). And when the current
month reaches 12, the next month would be 1 and the next year would be 2002.
Anybody know how I can accomplish this?
Thanks,
Tyler Longren
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
";
while ($row=mysql_fetch_array($sql_result))
{
print "";
foreach ($row as $field)
print "$field";
print "";
print "Get it";
print "";
print "";
}
print "";
?>
Try that, you tried to call $mysql_query, when you needed to call
mysql_query. In your code, $m
link library
MSVCRT.dll.
Does anybody have any idea why this occurs? This also happens when I try to
run Paint Shop Pro. So it's not PHP itself. When PHP is started on boot,
the error is logged to the event log.
Anybody seen anything like this before?
Thanks,
Tyler Longren
--
PHP Gener
Hello everyone,
I know this has been discussed many times before. I even read the past
threads in the list archives. I've written a shopping cart/catalog that
uses mysql on the backend. I need to be able to accept cc orders. Is
Paypal a good choice? I've never really use any service like thi
e server it works on is Win2k, IIS5, php4.0.4pl1. The server it
doesn't work on is Linux, Apache, php4.0.4pl1. Any ideas why this won't
work? Just to be sure, I did a chmod 777 about.inc, so file permissions
isn't it.
Thanks everyone,
Tyler Longren
--
PHP General Mailing List (h
header ("Location: http://www.location.com/home.html");
> -Original Message-
> From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 22, 2001 8:19 PM
> To: PHP-GENERAL
> Subject: [PHP] redirection to another page function
> Importance: High
>
>
> Hel
1st HTML here
2nd HTML here
> -Original Message-
> From: Martin Thoma [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 7:41 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] if... then... else with HTML
>
>
> Hello !
>
> I want to do something like
>
> if (condition)
> o
Hello everybody,
My host seems to be having some weird problems.
Here's a piece of code:
if (($this_month_sql = mysql_query("SELECT * FROM $mysql_shows_table WHERE
month = '$thismonth' ORDER BY timestamp ASC")) && ($next_month_sql =
mysql_query("SELECT * FROM $mysql_shows_table WHERE month = '$n
Also, I ran this SQL on the regular mysql client, and it returned the
correct data...for some reason if I run it in PHP, I get the SQL syntax
error.
Tyler
> -Original Message-
> From: Tyler Longren [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 9:20 PM
> To:
Tyler
> -Original Message-
> From: Jason Murray [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 9:27 PM
> To: 'Tyler Longren'
> Subject: RE: [PHP] Now, why doesn't this work?
>
>
> > :)
> > read the updated message..forgot to say that I've don
but it still won't play, and when I do a "Save
Target As" the file name is all screwed up.
If the link was this: http://localhost/sweetleaf/music/Provoke -
Quick Blast.mp3>Quick Blast you'd think the filename I'd download would
be "Provoke - Quick Blast.mp3&
if ($varTwo == $varOne) {
header('Location: http://www.location.com/page.html');
}
else {
echo "You stay right where you are!";
}
Tyler
> -Original Message-
> From: Jamie Saunders [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 06, 2001 5:21 PM
> To: [EMAIL PROTECTED]
> S
te
(with config.inc included @ the very top, before anything is sent to the
browser), the $HTTP_SESSION_VARS["username"] ($username) and
$HTTP_SESSION_VARS["password"] ($password) are lost.
Can anybody offer me any help? I've been trying to get this to work for 48
hours no
if ($userid && $password)
{
$res = pg_exec($db, "SELECT userid FROM users WHERE
userid='$userid' AND password='$password'");
$x = pg_numrows($res);
if ($x==1)
{
$verified_user = $userid;
session_register ("$ver
Hello everybody,
Lastnight, I was building a site. Multiple SQL queries were being made on
every page. Everything worked nice and smooth. I downloaded and applied
the patch for MS01-026 which effects IIS 4.0 and 5.0. I rebooted after
applying the hotfix, and after that, NONE of my php scripts
exec(uptime);
or
system(uptime);
Tyler
> -Original Message-
> From: Ryan Christensen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 15, 2001 11:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Uptime script?
>
>
> I know I've seen one before, and before I go write my own version, does
>
Hello everyone,
PHP just stopped being able to connect to mysql. mysqld-nt is running, and
is running alright becuase I can connect, select databases, and execute sql
queries through the mysql client. However, when I try to establish a
connection through PHP, the connection never gets made. Th
Shouldn't it be:
mysql_query("UPDATE user_polls SET url = '$file_name' WHERE uid = '$UserName' AND type
= '$type") or die (mysql_error());
Maybe I'm wrong.
--
Tyler Longren
[EMAIL PROTECTED]
Currently Unemployed
www.noworkfortyler.com
On T
Try that.
Tyler
> -Original Message-
> From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 11:20 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Date (Year) .. adding..
>
>
> I'm trying to figure out how to add to the year:
>
> for($x=0; $x<20; $x++)
> {
> $ye
1 - 100 of 286 matches
Mail list logo