Using PHP and a MySQL database, I want to grab the highest number in a
particular column. Right now I have this VERY inefficient code to grab
this number, there's got to be a better way. Does anyone have any
ideas??
Thanks!
Hello,
I would like to how to know how to create an if conditional with only one
condition. Can some one tell me the way to do this. This is my previos code
:
<
if (!name) {
print "please enter your name.";
}
exit;
if (!$email) {
print "Please enter you e-mail"
}
exit;
?>
--
PHP General Ma
select MAX(colname)
from table;
Cheers
Simon
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: 15 October 2002 09:29
To: [EMAIL PROTECTED]
Subject: [PHP] Getting the highest number in a column
Using PHP and a MySQL database, I want to grab the highest number i
Hi all,
I have a problem which I'm not sure the best way to go about. We will be
shipping products based on weight and I have two types of product with
differing weights. Basically we want to charge one price for shipping
less than 10 KG and one for anything over that.
I wonder how to go about i
> Using PHP and a MySQL database, I want to grab the highest
> number in a particular column.
As is usual for questions like this, the answer is most likely that you
should do it in your sql query. In this case, something like this would
probably do it:
SELECT MAX(some_column) FROM some_tab
Ramesh Nagendra Pillai wrote:
>
>I am using Apache/PHP4.0.1/PostgreSQL, I had upgraded
>PHP to PHP.4.2.3, now My problem is none of my
>
register_globals now defaults to off. I think this may be your problem.
HTH
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
Hi All,
I've written a inifile class and was trying to improve it but got stuck
trying to read all the sections:
[Section 1]
name=value
[Section 2]
name=value
$Inifile is the inifile read into an array but the following doesn't work:
$Sections = preg_grep("/(?<=^\[)([^\[\]]+)(?=\]$)/i", $IniF
On Tuesday 15 October 2002 15:35, Steve Jackson wrote:
> Hi all,
>
> I have a problem which I'm not sure the best way to go about. We will be
> shipping products based on weight and I have two types of product with
> differing weights. Basically we want to charge one price for shipping
> less than
Hello, I would like to hear your experience about this matter:
I have a lot of separate scripts and most of them need another script,
for example:
phpgrid
uses adodb
uses ldap_rol
phplogin
uses ldap_rol
And so on, I have a CVS server to store/develop single scripts, but I
want to stor
On Tuesday 15 October 2002 12:54, Phil Clark wrote:
> I'm trying to insert the variable $hidden_manuf_id into a mysql_query()
> statement.
>
> If i do this:
> mysql_query("DELETE FROM product WHERE manufacturer=$hidden_manuf_id",$bb)
> or die(mysql_error());
That should work iff manufacturer is a
i think that was one of the problems, some places the session var was set
back as a string ("0") and other as int (0).
anyway thanks to all, panic over all working now :)
"Jason Young" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> My suggestion would be to c
ok i know this has popped up a couple of times before but i'm still having
problems. What I need is the download popup to popup and ask the user if
they wish to save or open the file they want to download. If you click open
IE saves the file in your temp cache and then opens up the associated prog
You confused us. Would you like to explain us exactly what you meant?
Maybe with mentioning us your reasons/goals.
--
Maxim Maletsky
[EMAIL PROTECTED]
www.PHPBeginner.com // where PHP Begins
On Tue, 15 Oct 2002 15:31:14 +0800
"Muhammad Khairuzzaman" <[EMAIL PROTECTED]> wrote:
> Hello,
>
If the code isn't working, its because you weren't using a $name in the
first if statement. Always the little things ! :)
But this should work...
if (!$name) {
print "please enter your name.";
}
if (!$email) {
print "Please enter you e-mail";
}
>
> > Hello,
> >
> > I would like to how
Hi,
I wrote a program to authenticate users. I would like to place a few lines
at the top a webpage that would call this program. Some web pages will be
on the same server as the authentication program, others will not.
Can I use include/require of do I need to use fopen? The program returns
Set two cookies, one for each domain, and update them both as well.
Phil Powell wrote:
>Is it possible, w/o using sessionid session variables, to use setcookie to set a
>cookie that will have two domains or more?
>
>Just curious. I am having to set a cookie that will go to one domain and then
what would be a simple regular expression for ?
for future reference are there any good references for them?
--
JJ Harrison
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In order to use your PHP script (authentication features etc) you need
to have the all files within the same server.
As of including files, virtually - yes, yo can use include for remote
files, but you will not be able to execute the remote PHP code. You will
only include the output. ie: include
perl: preg_match
'/\'"]+[\'"]?>/i'
or eregi
'\'"]+[\'"]?>'
--
Regards,
"Noodle Snacks" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> what would be a simple regular expression for ?
>
> for future reference are there any good references for them?
>
>
> --
Thanks.
"Ns_andy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> perl: preg_match
> '/\'"]+[\'"]?>/i'
>
> or eregi
> '\'"]+[\'"]?>'
>
>
> --
> Regards,
>
> "Noodle Snacks" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > w
Ühel ilusal päeval [14-10-2002 22:46] kirjutas John W. Holmes:
> > Hey do you guys know how to correct this problem with sending email?
> >
> > A custumer uses mail() to send the email and it isn't deliverable. So
> the
> > message bounces. But since the local sendmail sent the email it thus
> >
Ramesh,
Since php 4.2.0 register_globals is always set off - look in your php.ini
Cheers
Simon
-Original Message-
From: Ramesh Nagendra Pillai [mailto:[EMAIL PROTECTED]]
Sent: 15 October 2002 08:30
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Upgrade
Hai all
I am using Apache/PHP4.0.1/Pos
my isp lets me control crontab so i've been trying to
run a php script every 30 mins.
the command is like this:
lynx - dump http://www.mysite.com/test.php
which gives the error
lynx: Start file could not be found or is not text/html or text/plain
what do i telll my isp to do to get lynx to sup
Hi Adrian,
> the command is like this:
> lynx - dump http://www.mysite.com/test.php
>
> which gives the error
>
> lynx: Start file could not be found or is not text/html or text/plain
Try losing the space between the "-" and "dump": it should be something like
lynx -dump http://www.mysite.
I remember reading on this a long while back. Try searching the archives of
this list. The solution pointed to a Microsoft Knowledge Base article.
If I recall correctly, it involved simply adding "%20" to the end of your
filename string...
Something like this:
Header("Content-Disposition:
php-general Digest 15 Oct 2002 12:30:45 - Issue 1645
Topics (messages 119971 through 120010):
Re: two submit buttons redirecting to two scripts
119971 by: Peter Houchin
119975 by: Sonal Patel
Re: passing mysql_error() out put to a different page?
119972 by: Brad Bon
Info: Lynx has nothing to do with supporting or not supporting PHP. PHP is
not a client side language, it is a server side language, so the browser
that you use does not even know or need to know that it is running PHP.
Solutions (hopefully): Take out the space between the "-" and the word
"d
I just read the part about caching... Here's the download code that works
perfectly for me. Note the first line that deals with caching. The last
line also has the filename in quotes. That might make a difference. If you
still get [1], try the %20 trick in my last post.
header("Cache-con
shouldn't be it lynx -dump ... ?
adrian murphy wrote:
>my isp lets me control crontab so i've been trying to
>run a php script every 30 mins.
>
>the command is like this:
>lynx - dump http://www.mysite.com/test.php
>
>which gives the error
>
>lynx: Start file could not be found or is not text/h
Get rid of your die().
$res = mysql_query(...);
if(!res)
{
$_SESSION['mysqlerror'] = mysql_error();
header("Location: error.php");
exit();
}
else
{
header("Location index.php");
}
---John Holmes...
> -Original Message-
> From: Peter Houchin [mailto:[EMAIL PROTECTED]]
> Sent: Mon
The syntax I use for this purpose is either:
lynx -source "URL"
or
wget -q -O - "URL"
depending on whether lynx or wget are installed.
HTH
Bogdan
Adrian Murphy wrote:
> my isp lets me control crontab so i've been trying to
> run a php script every 30 mins.
>
> the command is like this:
> lynx
nope still dont work :( oh well back to bashing my head against a wall and
talking to microsoft :)
"Aaron Gould" <[EMAIL PROTECTED]> wrote in message
012c01c27447$69e831c0$3f63a8c0@pcagould">news:012c01c27447$69e831c0$3f63a8c0@pcagould...
> I just read the part about caching... Here's the downlo
I have a tutorial for using lynx to monitor a firewall.
http://frontiertech.ca/tutorial_web_page_monitor.php
www.frontiertech.ca
Free Open Source Software for Data Collection and Data Mining.
*
$creador = "/usr/sbin/adduser -g mel -d /dev/null -s /bin/false -p $pass
$usuario";
$creador = exec($creador);
echo $creador;
I HAVE THIS, BUT IN THE APACHE LOG FILE I HAVE THIS:
adduser: unable to lock password file
what should i do to run the $creador sucefully?
--
PHP General Mailing
> I have tried adding a weight category to my
> products table and calculating total weight (then a simple if statement
> would do the trick) but it leads to other problems which I couldn't
> de-bug.
That sounds like the best idea to me, whats the big you had?
Tim
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
hehe I meant to say BUG ;)
> That sounds like the best idea to me, whats the big you had?
>
> Tim
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Custom Programming
> Web Programming community & discussion
> http://www.inter-apps.com
>
>
>
> - Original Message -
> From: "Steve Jackson" <[EMAIL P
I'd separate out your shared PHP files and put them all in a directory
named say "my_php_lib". Organize it like PEAR if you want...
Then for each of your sites set up the directory structure something like
this:
/path/to/site/htdocs
/path/to/site/my_php_lib
where you've cvs-co'd my_php_lib. T
Hi All,
I need to get the action of a button to send me to a certain section of the
page once it posts to the page. The button's value is the id of a field to
be edited.
I want to avoid using the link style link.php?id=342#bookmark
Thanks for any help.
Cheers
_
Let me preface this by saying that I know the benefits of using
XML with regards to portability and extensibility.
Here is the issue I face. I have all of my data stored in a MySQL
database. I'm considering reworking my website so that it uses
XML (after being converted from resultant records in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
you need to be root to add users - and your web server is most likely not
runings as root (certainly shouldn't be!!)
To make this work, add the user apache runs under to /etc/sudoers (look at
the sudo man page),
then change the command you have
"Chris Boget" <[EMAIL PROTECTED]> wrote... :
> Let me preface this by saying that I know the benefits of using
> XML with regards to portability and extensibility.
Yes, there are many benefits.
> Here is the issue I face. I have all of my data stored in a MySQL
> database. I'm considering re
Is it better to use a c wrapper to do this? thats what Ive always done.
Which is more secure?
Tim
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Custom Programming
Web Programming community & discussion
http://www.inter-apps.com
- Original Message -
From: "Shane Wright" <[EMAIL PROTECTED]>
To: <[E
Hey yet again...
I've got a 3x3 grid of type 'file' input elements, for a nifty total of
9 upload spaces..
After specifying a file in all 9, and attempting upload, I only got 5..
I noticed the total filesize was 2 megs, so I changed the php.ini to 8..
yet I still got that problem. So I check
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
A C wrapper running setuid root?
I guess there's less chance of getting a 'bad' username to execute arbitrary
commands, but at the same time I wonder about the possiblity of exploiting
overflows, but that'd be much harder. (hmm, if the C program
Hi,
I'm trying to allow my Apache webserver, on Win 98 to run PHP files without
extensions.
This is all working but the second part to the plan involves changing the
query string into the format of a directory. e.g.
Where the file is "index" without an extension and "xxx" and "yyy" are the
sect
Hi Andy,
> Although http://www.mysite.com/ or http://www.mysite.com/index
> work fine, picking up the index file okay http://www.mysite.com/xxx/yyy/
> or http://www.mysite.com/index/xxx/yyy/ come back with internal
> server errors.
Have a look into mod_rewrite, I think you'll be able to achi
which method and object should I use?
and may I have some related examples?
--
Regards,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Andy,
> which method and object should I use?
AFAIK you have to connect over ODBC (unless PHP has grown native Access
functions since I last looked).
Here's a function that might be of interest:
http://www.php.net/manual/en/function.odbc-connect.php
> and may I have some related examples?
Hiya people,
I am building a admin page for a guestbook and i want more people to be
able to log in. I have made a table in the database called
user(gebruikers) wich keeps both a loginname(loginnaam) and password. I
have 2 users in this table right now. Now i ve a problem.. I can login
with the f
Dear All,
I have a problem and need your help. I use PHP 4.2.3, Apache 1.3.27 and
a local version of Red Hat. Here is the problem: I have a web site that
depends on Session, but the Session ID seems to be regnerated evertime I
refresh the page. I have tried different versions of PHP with differen
Sorry... session.cookie_domain in php.ini
Make sure you can also write to /tmp
-js
Ferhat Can wrote:
> Dear All,
> I have a problem and need your help. I use PHP 4.2.3, Apache 1.3.27 and
> a local version of Red Hat. Here is the problem: I have a web site that
> depends on Session, but the Se
Try setting the session.domain in your php.ini...
-js
Ferhat Can wrote:
> Dear All,
> I have a problem and need your help. I use PHP 4.2.3, Apache 1.3.27 and
> a local version of Red Hat. Here is the problem: I have a web site that
> depends on Session, but the Session ID seems to be regnerate
> -Original Message-
> From: Andy White [mailto:[EMAIL PROTECTED]]
> Sent: 15 October 2002 16:08
> To: [EMAIL PROTECTED]
>
> I'm trying to allow my Apache webserver, on Win 98 to run PHP
> files without
> extensions.
>
> Where the file is "index" without an extension and "xxx" and
> "y
Thank you for replying Jonathan,
I set the session.cookie_domain in php.ini but it didn't work. I have
too many session files in my /tmp directory. Everytime I refresh the page a
new session file is created unfortunately.
Ferhat Can
- Original Message -
From: "Jonathan Shar
Hi,
[sorry about this being kinda off topic, but hey :P if anyone knows of a
more appropriate place - let me know!]
I am looking for prospective employee's which a high level of PHP
experiance, with an interest in learning Java in the next few months.
Before I continue - the position is onsite
Andy,
As, Jon stated, you would need to use the built-in ODBC functions of PHP.
Keep in mind that "SQL Statements" are NOT the same as for MySQL. There are plenty of
resources on the internet that show you how to format your SQL Statements just for
Microsoft Access.
John Negretti
We
I am curious what method of authentication is preferred by people on
this list. Are you using PHP scripts for authentication and limiting
access, or are you using HTTP header info. Maybe it is best to use
both.
For my sites I usually store user info in a database and use php and
sessions to aut
Hello,
Most of what you are looking for is already implemented and fully working in
our Krysalis Professional platform.
We help you create dynamic XML files, we provide you reusable taglibs to
avoid rewriting similar code multiple times, wr provide various levels of
caching and many more.
P
I've gone to PHPBuilder and PHPClasses and unless I
totally missed something like it (a distinct possiblity :p),
does anyone know of (or have) a WYSIWYG HTML
editor that you can implement in a browser?
I'm curious...
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
I believe it's a cookie issue, as when I hard code in an active session:
http://linuxserver.pergelcrm.com/count.php?PHPSESSID=7bf48f99e86e2d3d401c57c4f39dabbc
it counts correctly.
Oops! Try this...
session.cookie_domain=linuxserver.pergelcrm.com
NOT www.cardiologicforum.com
Cheers,
-js
Ferhat
Check at cfdev.com they have a WYSIWYG editor for coldfusion and php, the
name is active edit, I found this tool very useful for some sites, the
price is a little bit high but you can get the source code and make some
changes.
At 11:46 AM 10/15/2002 -0500, Chris Boget wrote:
>I've gone to PHPB
Theres a properitory Microsoft tag you can add to a frame
in a frameset, which will make little virtual editor. I guess
you could look on microsoft.com for it, but it doesn't work
on anything but I.E. 5.5 and later I believe.
Adam Voigt
[EMAIL PROTECTED]
On Tue, 2002-10-15 at 12:46, Chris Boget
Well, maybe not something written in PHP. Java perhaps...
- E
On Wednesday, October 16, 2002 1:46 AM
Chris Boget wrote:
> I've gone to PHPBuilder and PHPClasses and unless I
> totally missed something like it (a distinct possiblity :p),
> does anyone know of (or have) a WYSIWYG HTML
> editor t
> Well, maybe not something written in PHP. Java perhaps...
I was hoping to avoid java (though JS wouldn't be out of the
question). But it looks more and more that it'll have to be. I
was hoping for something fairly simple.
*shrug*
Chris
--
PHP General Mailing List (http://www.php.net/)
To
> Check at cfdev.com they have a WYSIWYG editor for coldfusion and php, the
> name is active edit, I found this tool very useful for some sites, the
> price is a little bit high but you can get the source code and make some
> changes.
Thanks, i'll check it out.
But it requires ColdFusion to be
Hello,
I have to show a file pdf in a browser but its name in the filesystem is something
like "name_file.file" and the file is word, pdf, gif, etc
I tried to do:
http://domain.org/path/to/file/';
$file = "name_file.file";
header('Content-Type: application/x');
header('
They have different versions of this app, one for CF, another one for php,
another one for ASP, you have to buy it for php if that's what you want,
personally I don't like the php version, it's a little bit difficult to
install, but, because we bought the CF version I changed the code from CF
I may be wrong about this as I have little experience dealing with binary
files. But I do not blieve that Content-Type: application/x acts like a
universial content type. It seems to me that you're going to have to build
in a conditional that sets the appropriate Content-Type: based on the file
Look at www.editworkspro.com I have used this one and I like it a lot
and it was easy to install.
-Original Message-
From: Jadiel Flores [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 12:23 PM
To: Chris Boget; PHP General
Subject: Re: [PHP] WYSIWYG HTML Editor
They have dif
Hi
I am trying to create an online survey using PHP ...I am using MySQL as
the database and MAC OS Jaguar. I do not need the results to be added to
the database. I need to be able to send the results of the survey to an
email addressI know that this is possible using MS FrontPage but
with
> I am trying to create an online survey using PHP ...I am using MySQL as
> the database and MAC OS Jaguar. I do not need the results to be added to
> the database. I need to be able to send the results of the survey to an
> email addressI know that this is possible using MS FrontPage but
> wi
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am trying to create an online survey using PHP
> ...I am using MySQL as
> the database and MAC OS Jaguar. I do not need the
> results to be added to
> the database. I need to be able to send the results
> of the survey to an
> email
With odbc_exec() function, it is able to execute and retrieve the data
pretty well. Unfortunately, when the number of fields grow and grow then
the odbc_exec() return false and a blank data. I don't get it! When I run
the SQL command through the database interface, it work like a charm. So,
it
> The easiest way to do this would be to have your survey be a basic HTML
> page. Then use a single PHP processing page. You could just write the value
> of $_POST to a variable and send that in your email.
> $string = implode("\n",$_POST);
> mail($to,$subject,$string);
Correct me if I'm mistaken
[snip]
With odbc_exec() function, it is able to execute and retrieve the data
pretty well. Unfortunately, when the number of fields grow and grow then
the odbc_exec() return false and a blank data. I don't get it! When I run
the SQL command through the database interface, it work like a charm.
[snip]
With odbc_exec() function, it is able to execute and retrieve the data
pretty well. Unfortunately, when the number of fields grow and grow then
the odbc_exec() return false and a blank data. I don't get it! When I run
the SQL command through the database interface, it work like a charm.
clip
$database = "ECBI_DB";
$user = "db2inst1";
$pass = "ibmdb2";
$cid = @odbc_connect($database,$user,$pass) or die("Unable to connect to
Database !!!") ;
$ask = "SELECT * FROM CUSTOMERS, USERS ";
$ask .= "WHERE CUSTOMERS.CUSTOMER_ID = '".$_POST['Customer_Id']."
When I try to do the two seperate SQL command with the 2nd odbc execution
right after the 1st odbc execution. It work fine. Weird!!
--clip--
//SQL Command #1
$ask = "SELECT * FROM CUSTOMERS ";
$ask .= "WHERE CUSTOMERS.CUSTOMER_ID = '".$_POST['Customer_Id']."'";
//SQL Command #2
But then you would have to rely on the end user having a working email
client and working email account. Plus with submitting to a PHP script you
can process and format the form to fit your exact needs.
Carl
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, O
Can't anyone help me with this? :-/
Read below...
I wrote:
> Hey yet again...
>
> I've got a 3x3 grid of type 'file' input elements, for a nifty total of
> 9 upload spaces..
>
> After specifying a file in all 9, and attempting upload, I only got 5..
> I noticed the total filesize was 2 megs, so
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Can you post the values of the post_max_size, upload_max_filesize,
& memory limit ini settings?
~Paul
On Tuesday 15 October 2002 03:21 pm, Jason Young wrote:
> Can't anyone help me with this? :-/
>
> Read below...
>
> I wrote:
> > Hey yet again...
>
Sure..
post_max_size = 10M
upload_max_filesize = 8M
memory_limit = 8M
As I said before, however.. even without throwing files there, my loop
test code only spits out '01234', meaning that its only looping 5 times
through the code before exiting... Does file handling only allow for 5
files at
A few ideas:
1. I have been setting up a system to do almost exactly what you are
doing (database --> xml --> xslt-->html via a custom class) and have not
noticed any significant performance hit, but this is not in production
so your mileage may vary, but my gut feeling is the performance hit i
Hi People,.
I have a problem with HTTP-Authentication, i have 2 users in my
database, and i want both to be able to login. However it works, but
only the first user is able to login. I Use a MySQL 3.23.xx database,
PHP 4.2.3 and Apache 2.0.40. Can anyone help me with this, any help
would be great
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
AFAIK, There is no "limit" on the amount of files that can be uploaded at
once. Could you post the html code for the form?
Note: The post_max_size should be larger than the upload_max_filesize &
the memory limit has to be larger than the post_m
Chris,
Here are some ideas you might want to review these options:
1. Try storing the data in the database as xml files them selves. You
then do not have to create the xml file. This will no doubt increase
your database size.
2. Store your xml templates in the database for faster retrieval.
> Here are some ideas you might want to review these options:
Other people have suggested variations of the below so I'll just respond
here to cut down on the bandwidth.
> 1. Try storing the data in the database as xml files them selves. You
> then do not have to create the xml file. This wil
> post_max_size = 10M
> upload_max_filesize = 8M
> memory_limit = 8M
>
> As I said before, however.. even without throwing files
> there, my loop
> test code only spits out '01234', meaning that its only
> looping 5 times
> through the code before exiting... Does file handling only
Well... you asked for it :D
Here's the code:
Key: When the user puts the URL or clicks the "Browse" button, they're
required to hit the "Show Picture" button. This puts that picture into
the 'pic[]' img space, and enables picInc[].
I didn't bother putting the javascript function picShow in her
Well, the die() function takes a limited number of parameters, which as you
noted is why it doesn't like the assignment of the mysql_error() and the header
statements both inside the die() function. So, why not something like this:
$res = mysql_query(.);
if ($res == FALSE) //which is what I
At 09:25 AM 10/15/02 -0500, Chris Boget wrote:
>Let me preface this by saying that I know the benefits of using
>XML
It seems to me most of the benefits of XML actually go to the hardware
and network suppliers. They get to sell you bigger storage for the
bloated data, faster processors for the m
On Tue, 2002-10-15 at 15:03, Chris Boget wrote:
> > Here are some ideas you might want to review these options:
>
> Other people have suggested variations of the below so I'll just respond
> here to cut down on the bandwidth.
>
> > 1. Try storing the data in the database as xml files them selve
At 09:25 AM 10/15/02 -0500, Chris Boget wrote:
> Do you realize more benifit for the back end
> processes when using XML that makes any additional time it takes
> to display a page to the user worth it?
Just ask the user if they really want to wait longer for something they
can't even see,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tuesday 15 October 2002 04:45 pm, David Freeman wrote:
> How large are the files you're using for testing? Try repeating the
> test with files under 1k and see if the result is different. You might
> be running into a page timeout rather than fil
Hi All,
still trying to update old code. Am I using $_SESSION properly?
if (mysql_num_rows($res) ==1){
/* If correct start session*/
session_start();
$_SESSION['SESSION_UNAME'];
$SESSION_UNAME = $user;
header("Location: welcome.php");
mysql_free_result ($res);
TIA
Gary
> Hi All,
>still trying to update old code. Am I using $_SESSION properly?
>
>
>if (mysql_num_rows($res) ==1){
>/* If correct start session*/
> session_start();
> $_SESSION['SESSION_UNAME'];
> $SESSION_UNAME = $user;
Instead of those two lines, use:
$_SESSION['SESSION_UNAME'] = $u
> Hi All,
>still trying to update old code. Am I using $_SESSION properly?
>
>
>if (mysql_num_rows($res) ==1){
>/* If correct start session*/
> session_start();
> $_SESSION['SESSION_UNAME'];
> $SESSION_UNAME = $user;
>
> header("Location: welcome.php");
> mysql_free_result ($r
Just wanted to say thanks to both Brad and John for their help i got it
going with the following
function new_user() {
$res = mysql_query("...");
if ($res == FALSE)
{
$error = mysql_error();
$_SESSION['mysqlerror'] = $error;
Header("Location: logerror.php?op=insert_error");
}
> Well, the die() function takes a limited number of parameters, which
as
> you
> noted is why it doesn't like the assignment of the mysql_error() and
the
> header
> statements both inside the die() function. So, why not something like
> this:
>
> $res = mysql_query(.);
> if ($res == FALSE)
> Just wanted to say thanks to both Brad and John for their help i got
it
> going with the following
No problem...
>
> function new_user() {
>
>$res = mysql_query("...");
> if ($res == FALSE)
> {
> $error = mysql_error();
> $_SESSION['mysqlerror'] = $error;
> Header("Locatio
1 - 100 of 141 matches
Mail list logo