Hi noginn,
$columntotals[$count] = $columntotals[$count] + $sum;
^-^
ERROR HERE
Seem you tried to assign columntotal[index] with itself and you never
defined it. You should tried this one.
=
On Sunday 21 March 2004 06:39 pm, Chris Shiflett wrote:
--- Michael Rasmussen [EMAIL PROTECTED] wrote:
To be clear: make sure the data that the user submitted only
contains the characters you think are valid (don't bother trying
to guess malicious characters - you're sure to miss one)
QT wrote:
Dear Sirs,
I have a web site which is keeping user data in mysql. I am afraiding that
to collapse of existing server without my control.
I want to use another server to keep in standby and I want to set new server
DNS as a third and forth server.
As far as I know if primary and
Dear Sirs,
I have a web site which is keeping user data in mysql. I am afraiding that
to collapse of existing server without my control.
I want to use another server to keep in standby and I want to set new server
DNS as a third and forth server.
As far as I know if primary and secondary server
Here's the code:
?php
$a = 676.6;
$b = 0.175;
$y = $a * (1 + $b);
echo(y: . $a . * (1 + . $b . ) = $yBR);
$z = $a + ($a * $b);
echo(z: . $a . + ( . $a . * . $b . ) = $zBR);
echo(number format(y)=.number_format($y, 2).BR);
echo(number format(z)=.number_format($z, 2).BR);
?
Here's the
As other people mention here PHP Zend Optimizer is usually NOT installed
on any systems unless they have encountered a customer which needed it.
Were selling a shoppingcart system and *every* host were encountered did
not have it installed.
Another sollution comes up, since a lot of the hosting
On 22 March 2004 10:31, Paul Hopkins wrote:
Here's the code:
?php
$a = 676.6;
$b = 0.175;
$y = $a * (1 + $b);
echo(y: . $a . * (1 + . $b . ) = $yBR);
$z = $a + ($a * $b);
echo(z: . $a . + ( . $a . * . $b . ) = $zBR);
echo(number format(y)=.number_format($y, 2).BR);
Hey guys,
A server I'm using has PHP compiled into Apache, and I want to leave
that alone and just build a CLI version of php. Can I get away with just
going:
./configure --with-mysql --prefix=/some/home/dir
make
make install
? I dont' want to upset the existing apache installation of PHP or
On 21 March 2004 16:03, Ben Ramsey wrote:
I've got a querystring that looks like this:
?url=http%3A%2F%2Ftest.alpharetta.ga.us%2Findex.php%3Fm%3Dlink
s%26category%3DRecreation%2B%2526%2BParks%26go.x%3D22%26go.y%3D7
As you can gather, I'm trying to pass a URL to another script
for some
Ye that is true, however to create the totals of each columns I had to
somehow do this.
I have fixed the problem in a way, but it was probably a very crude way
of doing so.
$rowtotal = $rowtotal + $sum;
if(!empty($columntotals[$count])) {
Dear PHP.net,
I have got a question!!!
I`ll develop a new PHP Site and threr is a problem with Hyperlinks!!!
How can I use index?nav=Webmaster??
Whats the source code for this funktion
Best Regards
Florian Hoenl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi there,
I was searching for a php function which fills empty spaces in string
varibales with nbsp;, but could not find one.
Is there such thing?
Thanx for any help,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Dear PHP.net,
I have got a question!!!
I`ll develop a new PHP Site and threr is a problem with Hyperlinks!!!
First of all, there is no problem with hyperlinks, you maybe have an
problem understanding how to use hyperlinks.
How can I use index?nav=Webmaster??
Whats the source code for
hi,
I do this task on window thru schedule task as,
First I create BATCH file
File.bat::
@ECHO OFF
c:\php\php -q c:\dailyscript\script.php
then I added this file.bat path into schedule Task for specify time
interval
imran
- Original Message -
From: [EMAIL
Hi Merlin,
guess there is no php function which handles this, but you can easily
use str_replace to do this.
http://php.net/str_replace
-- red
Am Montag, 22. März 2004 13:02 schrieb Merlin:
Hi there,
I was searching for a php function which fills empty spaces in string
varibales with
I was searching for a php function which fills empty spaces in string
varibales with nbsp;, but could not find one.
Wouldn't str_replace do it?
http://jp2.php.net/str_replace
--
Yoroshiku!
Dave G
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
$str = str_replace(' ', 'nbsp;', $str);
$str = preg_replace('/\s+/', 'nbsp;', $str);
$str = ereg_replace('[[:space:]]+', 'nbsp;', $str);
Good Luck,
Firman
- Original Message -
From: Merlin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 22, 2004 7:02 PM
Subject: [PHP]
i psoted a message here before few days asking how to solve this problem, fortunately
i found the solution on a website, i reseted the pass and all worked.
MySQL 4.1 uses an authentication protocal based on a password hashing algorithm that
is incompatible with that used by older clients. If
Hi there
I'm new to PHP (as some may know)...
ive spotted / Found the answers to 2-3 problems
tonight - By looking through the PHP documentation..
but this problem is perplexing..
Ok - Ive got a FORM - Which basically, I put lots of
text into it (For testing purposes, I go to news
websites
On Mar 22, 2004, at 1:46 PM, gordon stewart wrote:
===
foreach ($text as $color) {
echo SAF '$color' - ;
echo B.strlen($color)./BBR\n;
}
===
QUESTION :-
Is this the right code to use ? to find the length of
each line ? ($color) - No worries - Ive just copied
code from the web
--- Filip de Waard [EMAIL PROTECTED] wrote:
strlen() is the correct function to use here. Use it
like:
echo strlen($_POST['input_name']);
Thanks...
Where $_POST['input_name'] should be replaced by the
variable you want
to check. strlen() is always right, but it counts
the actual
On 21 Mar 2004 Chris Shiflett wrote:
I would never argue that something is an absolute defense, but I would
characterize my recommendation as a best practice.
Fair enough.
I agree with you that checking for valid characters is safer than
checking for malicious characters, but even the
do you know best mysql newsgroup address?
Burhan Khalid [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
QT wrote:
Dear Sirs,
I have a web site which is keeping user data in mysql. I am afraiding
that
to collapse of existing server without my control.
I want to use another
php-general Digest 22 Mar 2004 13:23:02 - Issue 2661
Topics (messages 181109 through 181135):
Re: Zend Optimiser -- wide spread??
181109 by: Filip de Waard
181118 by: Kim Steinhaug
Re: SQL Injection check (mysql)
181110 by: Chris Shiflett
18 by:
On Monday 22 March 2004 23:20, QT wrote:
do you know best mysql newsgroup address?
http://lists.mysql.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Florian Hoenl wrote:
Dear PHP.net,
I have got a question!!!
I`ll develop a new PHP Site and threr is a problem with Hyperlinks!!!
How can I use index?nav=Webmaster??
Whats the source code for this funktion
Florian :
1. Please don't end all lines with multiple puncuation marks. !!! is
not
--- Filip de Waard [EMAIL PROTECTED] wrote:
strlen() is the correct function to use here. Use it
like:
echo strlen($_POST['input_name']);
Where $_POST['input_name'] should be replaced by the
variable you want
to check. strlen() is always right, but it counts
the actual charactars
of
Hello
In CSS file all links are black:
/* Part from CSS file */
a:link{color:#00; text-decoration: none;} /*unvisited link*/
a:visited{color:#00; text-decoration: none;} /*visited link*/
a:hover {color:#00; text-decoration: none;} /*mouse over link*/
a:active { color:#00}
On the
Hello Mike,
Monday, March 22, 2004, 1:45:24 PM, you wrote:
MM Hello
MM In CSS file all links are black:
MM /* Part from CSS file */
MM a:link{color:#00; text-decoration: none;} /*unvisited link*/
MM a:visited{color:#00; text-decoration: none;} /*visited link*/
MM a:hover
[snip]
In CSS file all links are black:
/* Part from CSS file */
a:link{color:#00; text-decoration: none;} /*unvisited link*/
a:visited{color:#00; text-decoration: none;} /*visited link*/
a:hover {color:#00; text-decoration: none;} /*mouse over link*/
a:active { color:#00}
[/snip]
On 19 Mar 2004 at 19:23, Lester Caine wrote:
[EMAIL PROTECTED] wrote:
I'm trying to run PHP5 RC1 on a Windows 2000 test server with Apache 2.0.47.
Mines 2.0.48, but no problem.
Upon installation, when I first started Apache again, I got an error message to
the effect
that
First, cheers to Mike Ward for the quick response to my maiden post this
morning (about floating point vars).
Next prob: I'm trying to recompile PHP 4.3.4 (on Redhat 7.3) with
ImageMagick support. I've installed ImageMagick 5.5.7 and the PECL imagick
package (0.9.8). I'm running Apache 1.3.29
I wrote:
First, cheers to Mike Ward for the quick response to my maiden post this
morning (about floating point vars).
Second, apologies for getting Mike Ford's name wrong in my second-to-maiden
post... :(
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
I have a set of scripts that read off a config_inc.php file (eg: database,
username,password, admin_username,admin_pass etc), instead of the client
manually making the changes (with mistakes sometimes) I have made a form
where the client can pick most of the values via a drop down box and then
From: Ryan A [EMAIL PROTECTED]
I have a set of scripts that read off a config_inc.php file (eg: database,
username,password, admin_username,admin_pass etc), instead of the client
manually making the changes (with mistakes sometimes) I have made a form
where the client can pick most of the
Hey John,
Same as you write any other file, fopen, fwrite, fclose, etc, then send
the
appropriate headers to trigger a download of the file (discussed on
here
plenty of times).
Yep, I got the working code to force a download from the list itself, but
was outputting
a file via readfile..
Hi!
which Unit Test tool for PHP do you recomend?
bye
--
Andrés Ferrando [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 22 March 2004 23:11, Paul Hopkins wrote:
Next prob: I'm trying to recompile PHP 4.3.4 (on Redhat 7.3) with
ImageMagick support. I've installed ImageMagick 5.5.7 and the PECL imagick
package (0.9.8). I'm running Apache 1.3.29 with PHP compiled as a module.
These are the steps I've
On Monday 22 March 2004 19:25, neko wrote:
A server I'm using has PHP compiled into Apache, and I want to leave
that alone and just build a CLI version of php. Can I get away with just
going:
./configure --with-mysql --prefix=/some/home/dir
make
make install
? I dont' want to upset the
Not sure how to accomplish this, and not completely familiar with all
the options available with regular expressions.
I need to sanitize input data by only allowing alpha-numeric characters,
whitespace, punctuation (,.;:) and of course carrige returns.
here is what I have so far...
It isn't on most hosts, though it isn't difficult to install it on request. You may
also look at alternatives:
http://turck-mmcache.sourceforge.net/#bench
On Monday 22 March 2004 02:16, Justin French [EMAIL PROTECTED] wrote:
Hi all,
I'm close to releasing my first widely distributed (I
hey everyone,
i imagine other people are experiencing this also but i'm receiving the
following email every time i send a message to the list.
==
Subject: Undeliverable: Delivery Report (failure) for
[EMAIL PROTECTED]
Message:
Your message did not reach some or all of the intended recipients.
[snip]
i imagine other people are experiencing this also but i'm receiving the
following email every time i send a message to the list.
[/snip]
ROFL! Sorry Chris...had to laugh. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard mailto:[EMAIL PROTECTED]
on Monday, March 22, 2004 10:51 AM said:
[snip]
i imagine other people are experiencing this also but i'm receiving
the following email every time i send a message to the list.
[/snip]
ROFL! Sorry Chris...had to laugh. :)
hey i like a good laugh
Hi folks. Has anyone out there ever had any issues with a user's
personal firewall munging up the HTTP_REFERER for a page?
I've got a mailer script which is accessed from a few domains within our
network of sites, and sometimes users have been getting an error which
informs them the script has
I am trying to read a file from a remote server using a URL. I have done
this :
* $html = implode('', file($url));
* echo $html
the $url is the address
with some pages like www.mooki.de/index.html ist works without a problem
but with the address that i intend to use it only reads about 30
Same here, but even without replying :-/
Chris W. Parker wrote:
Jay Blanchard mailto:[EMAIL PROTECTED]
on Monday, March 22, 2004 10:51 AM said:
[snip]
i imagine other people are experiencing this also but i'm receiving
the following email every time i send a message to the list.
[/snip]
From: Pablo Gosse [EMAIL PROTECTED]
Hi folks.
Hi.
Has anyone out there ever had any issues with a user's
personal firewall munging up the HTTP_REFERER for a page?
Yes. Some firewalls will do this for privacy reasons so you can't tell
where they came from. You can't do anything about it, but
On Sun, 21 Mar 2004 18:39:39 -0800, Chris Shiflett wrote:
Can you explain that (and defend it)?
The reason is security. A prepared statement cannot comprimize the
security of our database because all sql-statements are precompiled in the
DBMS. An example using pear:
$res =
I am trying to create an image in php. I need a little better description
then whats in the manual. Anyone know a good tutorial / article on creating
transparent images in PHP. Using another picture and adding text would be
helpful as well. Go gentle, i am sorta new to php.
Nick Hird
[EMAIL
--- Chris W. Parker [EMAIL PROTECTED] wrote:
ROFL! Sorry Chris...had to laugh. :)
hey i like a good laugh just like anyone else... but i don't have
any idea what you're talking about!! :(
That makes two of us. :-)
Chris
=
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
[snip]
[snip]
i imagine other people are experiencing this also but i'm receiving
the following email every time i send a message to the list.
[/snip]
ROFL! Sorry Chris...had to laugh. :)
hey i like a good laugh just like anyone else... but i don't have any
idea what you're talking about!!
Hey,
Im writing a script for a poll, and im trying to figure out how to clear the
_post.
Right now i post the response that the user selected from the poll, back to
the poll page, which then displays the results
The way it works right now, if i try to refresh the page, IE will pop a
dialog back
From what I understand about sessions you can give a session a particular name like
doing:
session_start(SessionName);
So in practicle means I can do this:
?php /*file #1*/
session_start($name);
$_SESSION[name]=$name;
$_SESSION[email]=$email;
/*.*/
?
now my question is this: will i have to
Ok, I know that session_destroy wont delete all my session data, but just
delete the variables with it... but for instance the session_id() will be
the same.
So my question is how can i make it so that let's say one people enter my
site, and then decides to leave... but doesn't closes the browser
Actually there is another funny part to it.
The reazon you are getting this is because some of the people on the list,
bounces mail... that is fact, hence you can get all kind of notifications
that the mail wasn't deliverable... and it was true.
But I thought anyone would know that... once again,
Can anyone post a link to a good reference material on how to do this...
evidentely mysqldump is not working here... and i need to do this via php
programming.
thanks
vamp
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: Andy B [EMAIL PROTECTED]
From what I understand about sessions you can
give a session a particular name like doing:
session_start(SessionName);
You can give it a name, but you don't have to. PHP will use the default name
if you don't and you'll just need to use session_start();
So in
snip
The reason is security. A prepared statement cannot comprimize the
security of our database because all sql-statements are precompiled
in the DBMS. An example using pear:
$res = DB:connect('mysql://someuser:[EMAIL PROTECTED]/thedb');
$sth = $res-prepare('select * from sometable
--- Elliot J. Balanza [EMAIL PROTECTED] wrote:
how can i make it so that let's say one people enter my site, and
then decides to leave... but doesn't closes the browser window,
then come back right in and wants to do other functions in the site
but with a different session_id()?
--- Elliot J. Balanza [EMAIL PROTECTED] wrote:
Actually there is another funny part to it. The reazon you are
getting this is because some of the people on the list, bounces
mail... that is fact, hence you can get all kind of notifications
that the mail wasn't deliverable... and it was true.
Using Pragma: private instead of no-cache would elminate that message
about cache expired and asking if you want to resubmit. However, based on
your questions. It's not the answer you're looking for. So, there is a
better way around. Just do Webpage #1 for form and submit it to Webpage #2
for
On Mar 22, 2004, at 11:34 PM, Elliot J. Balanza wrote:
Can anyone post a link to a good reference material on how to do
this...
evidentely mysqldump is not working here... and i need to do this via
php
programming.
I'm sure you will find prewritten scripts with Google and I know
phpmyadmin
Elliot J. Balanza mailto:[EMAIL PROTECTED]
on Monday, March 22, 2004 2:33 PM said:
Actually there is another funny part to it.
The reazon you are getting this is because some of the people on the
list, bounces mail... that is fact, hence you can get all kind of
notifications that the mail
Hi!
I haven't found the right wording to spit out the HTTP scripts to the
web browser through the fsockopen. In this case, the Location:
script. I can not use the php header() function because of the FPDF strict
checking. (Freeware PDF). All I did was to create a PDF and put it on
Hi
I've been trying to use MySQL dump with a php query (since we dont have like
a mysql_dump function) but it's not working.
Can anyone please point me to a page so i can read a method to backup MySQL
databases to an .sql file using php?
thanks.
Vamp
--
PHP General Mailing List
Elliot J. Balanza wrote:
Hi
I've been trying to use MySQL dump with a php query (since we dont
have like a mysql_dump function) but it's not working.
Can anyone please point me to a page so i can read a method to backup
MySQL databases to an .sql file using php?
thanks.
Vamp
Why
--- Scott Fletcher [EMAIL PROTECTED] wrote:
I haven't found the right wording to spit out the HTTP scripts to
the web browser through the fsockopen.
I feel certain that I can help you, but unfortunately I can't seem to
understand your question at all. Please understand that I'm not trying to
[snip]
If you give the session a custom name, then, yes, you'll have to use that
name on every page. $name can be something that in an include file or a
constant, etc, though. Again, you don't _have_ to give a name, though.
There's no real advantage to using another name, though, as it's going to
I was looking something more like a MySQL dump class or function...
I think since i can't do any phpmyadmin or anything like that, that i will
simply write my own code... yuk i was hoping to save 1-2 days work... thanks
vamp
Filip De Waard [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL
Andy B mailto:[EMAIL PROTECTED]
on Monday, March 22, 2004 3:19 PM said:
so the theory is: if i require that the session be named after the
persons login name there is probably 1 out of 2 million chances that
it will mess up the names and get confused (specially if there are
only a few
What are the chances of two people getting the same session number in a
thousends of day operation?
When you down the size of that to a couple hundeed a day...
WHy do we need to have a session name for that?
Vamp
Chris W. Parker [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
as long as your usernames are unique you should never have a problem.
(assuming everything else works as planned.)
it should...
i want to use sessions for a login system and stuff too but i want it to
check to see if the person is logged in before going to the login section...
if the session
What are the chances of two people getting the same session number in a
thousends of day operation?
When you down the size of that to a couple hundeed a day...
WHy do we need to have a session name for that?
because eventually i want to take the user name (session name/variables/user
info) and
Elliot J. Balanza mailto:[EMAIL PROTECTED]
on Monday, March 22, 2004 3:43 PM said:
What are the chances of two people getting the same session number in
a thousends of day operation?
When you down the size of that to a couple hundeed a day...
WHy do we need to have a session name for
Andy B mailto:[EMAIL PROTECTED]
on Monday, March 22, 2004 3:43 PM said:
as long as your usernames are unique you should never have a problem.
(assuming everything else works as planned.)
it should...
it will. a unique value is a unique value.
is this code valid??
?php
Hi,
Sorry to ask this question, I am fairly new to PHP and wanted to ask for some help
with the following.
I have a MySQL table which uses a auto_increment int as the primary key - when I do an
insert I want to create another id based on the primary key and insert this into the
same table
I have noticed behavior like yours with our server setup. It is not a locally
run (or owned) server so I cannot poke around to much.
The session is timing out Randomly, causing our users to have to login again.
It doesn't happen all the time either. In a rare case, less than a minute
after
Andy B mailto:[EMAIL PROTECTED]
on Monday, March 22, 2004 3:49 PM said:
because eventually i want to take the user name (session
name/variables/user info) and create a preferences section of the
website im doing and that would require a constant session name from
visit to visit
yeah
Elliot J. Balanza mailto:[EMAIL PROTECTED]
on Monday, March 22, 2004 3:05 PM said:
I was looking something more like a MySQL dump class or function...
this may not be as robust a solution as you require but can you not
simply backtick the mysqldump command from within php?
?php
$date =
On Mon, 2004-03-22 at 18:51, Matthew Oatham wrote:
Hi,
are there any functions that retrieve the last primary key created in
the MySQL table?
http://www.php.net/manual/en/function.mysql-insert-id.php
Cheers,
Rob.
--
..
| InterJinn
Matthew Oatham wrote:
I have a MySQL table which uses a auto_increment
int as the primary key - when I do an insert I want
to create another id based on the primary key and
insert this into the same table i.e. if I do an
insert and the primary key is 3 I want to generate
the ID CR-003, if
Matt,
this is not a direct answer to your question, more a tip on how
you design your database: You should avoid storing the same
information twice. You only risk inconsistencies. In your case
I suggest you compute the textual ID from the primary key value
using the PHP sprintf function whenever
you've already got that unique identifier. it's the username. the
username will stay unique visit to visit, therefore you don't need to go
against the design of the session id. the session id is not meant to
keep uniqueness across multiple visits, only the current visit.
are we/me
On Mar 23, 2004, at 1:10 AM, Chris W. Parker wrote:
Elliot J. Balanza mailto:[EMAIL PROTECTED]
on Monday, March 22, 2004 3:05 PM said:
I was looking something more like a MySQL dump class or function...
this may not be as robust a solution as you require but can you not
simply backtick the
Elliot J. Balanza wrote:
Ok, I know that session_destroy wont delete all my session data, but just
delete the variables with it... but for instance the session_id() will be
the same.
So my question is how can i make it so that let's say one people enter my
site, and then decides to leave... but
Andy B wrote:
as long as your usernames are unique you should never have a problem.
(assuming everything else works as planned.)
it should...
i want to use sessions for a login system and stuff too but i want it to
check to see if the person is logged in before going to the login section...
if
On Mon, 2004-03-22 at 14:35, Elliot J. Balanza wrote:
Hi
I've been trying to use MySQL dump with a php query (since we dont have like
a mysql_dump function) but it's not working.
Can anyone please point me to a page so i can read a method to backup MySQL
databases to an .sql file using
Robert Cummings wrote:
On Mon, 2004-03-22 at 18:51, Matthew Oatham wrote:
Hi,
are there any functions that retrieve the last primary key created in
the MySQL table?
http://www.php.net/manual/en/function.mysql-insert-id.php
If you read the whole question, though, the poster wanted to use the
Andy B wrote:
WHy do we need to have a session name for that?
because eventually i want to take the user name (session name/variables/user
info) and create a preferences section of the website im doing and that
would require a constant session name from visit to visit
Ummm... that's why you set a
Hi,
I have this simple code in my php script:
* * * * *
$res = mysql_query(SELECT product_id, now()-1 FROM .$tc._prods where
cno=$cno AND product_id='$product_id' LIMIT 1);
if($res)
{
$r = mysql_fetch_row($res);
$product_id2 = $r[0];
$th_pres= $r[1];
echo debug echo;
}else {echo No
Andy B wrote:
[snip]
If you give the session a custom name, then, yes, you'll have to use that
name on every page. $name can be something that in an include file or a
constant, etc, though. Again, you don't _have_ to give a name, though.
There's no real advantage to using another name, though, as
Ryan A wrote:
Hi,
I have this simple code in my php script:
* * * * *
$res = mysql_query(SELECT product_id, now()-1 FROM .$tc._prods
where cno=$cno AND product_id='$product_id' LIMIT 1);
if($res)
{
$r = mysql_fetch_row($res);
$product_id2 = $r[0];
$th_pres= $r[1];
echo debug
Ryan
Because you are actually getting a result, a result with no records...
Might be better to use
http://au2.php.net/manual/en/function.mysql-num-rows.php instead
Martin
-Original Message-
From: Ryan A [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 23 March 2004 11:37 AM
To: [EMAIL
The idea was that the user uploads a file and I insert details about the
file into the mysql table and rename the file using the generated id.
so if the next primary key is 4 I generate the file id CR-004 and rename the
uploaded file to CR-004 whilst also storing CR-004 in the table.
Thanks for
Andy B wrote:
you've already got that unique identifier. it's the username. the
username will stay unique visit to visit, therefore you don't need to go
against the design of the session id. the session id is not meant to
keep uniqueness across multiple visits, only the current visit.
are
On Mon, 22 Mar 2004 14:36:44 -0800, Pablo Gosse wrote:
Huh? How does this accommodate for a dynamically generated query which is
based upon user input?
Have you read my arguments? A prepared statement cannot be dynamically
generated!
It is validated and its type set before it is
Matthew Oatham wrote:
The idea was that the user uploads a file and I insert details about the
file into the mysql table and rename the file using the generated id.
Even with this scenario you probably can do with out the extra column as
John has suggested.
so if the next primary key is 4 I
Bit rough at the moment but I have come up with the following - it doesn't
rename the file using the new ID yet but I am more concerned about my method
for creating the new ID - can anyone see any potential problems such as
database problems, i.e duplicate keys, bad coding practices etc... cheers
Matthew Oatham mailto:[EMAIL PROTECTED]
on Monday, March 22, 2004 4:56 PM said:
can anyone see any
potential problems such as database problems, i.e duplicate keys, bad
coding practices etc... cheers matt
if(!empty($_FILES[cr])) {
$uploaddir = cr/; // set this to wherever
1 - 100 of 125 matches
Mail list logo