Hello All.
I have a PHP script i've written, which takes up some file's content and
puts it up
in a textbox. that textbox is located inside of a form, which I can submit
to make changes
in the text, and by that modify the file itself.
The file reads fine, with fread of course, and now comes my pr
Very simple...
Call you files being uplaoded file1, file2, fileX in the HTML form..
[html]
[/html]
Then process with code like this:
[code]
$STARTFILE = 1;
$ONFILE = "file" . $STARTFILE;
while (isset($HTTP_POST_FILES["$ONFILE"])) {
// Try!
$SrcPathFile = $HTTP_POST_FILES["$ONFILE"]
The other option is...
You create a pop-up menu system.
That have the file form field to select from a location. When you upload
the image it populates a HTML display table so you can see it and also
allows you to select another image.
When you are done.. you close the pop-up menu and that's th
Hi there,
U you know what they say, keep it simple and you're probably right you
know, I was thinking it would be more complex but i'll have a play with that
idea (Isn't it amazing how sometime we try to make things harder for
ourselves than they need be?).
Thanks for pointing that solution o
Well...
Having never done this I would assume it's the same with and form field
you want to use as an array (multiple selections).
Create a few different fileselect fields all with the same name but
adding in [] to make it an array.
Then just loop through the array.. copying the file to the serv
Hi there everyone,
I have created a newsletter system where you can do lots of nice things, one of the
things is to be able to upload your images for the newsletter via the interface,
unfortunately you have to do them 1 at a time. Is it possible to be able to select
multiple images in 1 go?
T
You should be very wary of the CREATE TABLE ... SELECT statement.
>From experience, the types created are not always conform to intuition -
I've had my share of nasty surprises
Much safer to do a CREATE TABLE statement defining the column types, then do
an INSERT INTO ... SELECT
Ignatius
Fellow PHP-DB listers:
Thank you to those of you who replied to let me know that I am not the only
one experiencing this problem. For everybody else's edification, some of the
other members of this list have stated that they have notified the
postmaster of the problem. It's really just an annoyanc
My code:
$query="
CREATE TABLE IF NOT EXISTS temp3 UNIQUE(CON175)
IGNORE SELECT DISTINCT CONCAT($tbl2.this,$tbl2.that) AS CON175 FROM
$tbl2
WHERE $tbl2.this='$rcc'
";
gives error:
Query failed: BLOB column 'CON175' used in key specification without a key
length.
Manua
El Vie 29 Ago 2003 11:51, Hutchins, Richard escribió:
> Is anybody else getting returned mail notices from the qmail-send program
> at pb1.pair.com? I seem to get one with each post I send to the list and I
> don't know what's happening with my posts.
>
> Not that they're "pure gold" or anything, b
Is anybody else getting returned mail notices from the qmail-send program at
pb1.pair.com? I seem to get one with each post I send to the list and I
don't know what's happening with my posts.
Not that they're "pure gold" or anything, but could somebody just confirm
that my posts are getting throug
At 09:33 AM 8/29/2003, you wrote:
> You can do:
> while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC))
> {
> extract ($row);
> echo $feild_A . ' ';
>
> $row = $result->fetchRow(DB_FETCHMODE_ASSOC);
> extract ($row);
> echo $feild_A . '';
> }
cl
On Friday, Aug 29, 2003, at 02:14 US/Eastern, jsWalter wrote:
But now I've been thrown a wrench in the form of double row display.
my client wants...
a b
c d
e f
...
.. I need to create...
row_1/feild_A
row_1/feild_B
row_2/feild_A
row_2/fe
> > Error: 1064 You have an error in your SQL syntax near 'pi
> INNER JOIN
> > table2 AS p ON p.ID = pi.product_id WHERE p.ow' at line 3
pi() is a mysql function that returns the value of pi. Could the pi in your
query be causing some confusion? It seems that MySql may be expecting pi()
not pi
At 09:33 AM 8/29/2003, you wrote:
You can do:
while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC))
{
extract ($row);
echo $feild_A . ' ';
$row = $result->fetchRow(DB_FETCHMODE_ASSOC);
extract ($row);
echo $feild_A . '';
}
close, but doesn't han
Merlin wrote:
Hi John,
I am using MySQL 3.x
My guess is that it does not support a query like this. If so, I am sure
that there is a workaround I just dont know about. The values $tablex
are present.
This is the error msg:
Error: 1064 You have an error in your SQL syntax near 'pi INNER JOIN
Hi John,
I am using MySQL 3.x
My guess is that it does not support a query like this. If so, I am sure
that there is a workaround I just dont know about. The values $tablex
are present.
This is the error msg:
Error: 1064 You have an error in your SQL syntax near 'pi INNER JOIN
table2 AS p O
try
if (isset($_GET['login']) AND $_GET['login'] == 'forgot')
KD
On Fri, 29 Aug 2003, Tiberiu Ardeleanu wrote:
> Try:
>
> if ($_GET['login'] == 'forgot')
>
>
> - Original Message -
> From: "OpenSource" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 29, 2003 7:38 AM
Merlin wrote:
I would like to delete a row inside a mysql table. To find out which
rows are affected the system has to check another table.
Somehow I am doing this statement wrong and I cant find out why. Does
anybody see the error?
Thanx for any help on that.
DELETE
FROM $table1 pi
RIGHT
Hi there,
I would like to delete a row inside a mysql table. To find out which
rows are affected the system has to check another table.
Somehow I am doing this statement wrong and I cant find out why. Does
anybody see the error?
Thanx for any help on that.
DELETE
FROM $table1 pi
RIGHT
El Vie 29 Ago 2003 06:15, Ford, Mike [LSS] escribió:
> On 29 August 2003 05:27, Joshua D. Drake wrote:
> > Hello,
> >
> > Beta 2 of plPHP has been released. This version contains many bug
> > fixes. For example, if you write bad plphp code and try to
> > execute it,
> > the code will no longer cr
Depending on the database you are using
Substring()
Substr()
Functions do what you want
jack
-Original Message-
From: Shaun [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 11:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] SELECT Part of a Field
Hi,
How can I SELECT a portio
SUBSTRING()
_
- Original Message -
From: "Shaun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 11:57 AM
Subject: [PHP-DB] SELECT Part of a Field
> Hi,
>
> How can I SELECT a portion of a field in a table for example the first
> charac
Hi,
How can I SELECT a portion of a field in a table for example the first
character, or the second two characters etc?
Thanks for your help
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 29 August 2003 06:39, OpenSource wrote:
> Hi guys,
>
> This is weird to me..
> I got this script
> ---
> if ($_GET[login] == 'forgot')
> {
> echo "Sorry I forgot my password";
> } else { echo "you
On 29 August 2003 05:27, Joshua D. Drake wrote:
> Hello,
>
> Beta 2 of plPHP has been released. This version contains many bug
> fixes. For example, if you write bad plphp code and try to
> execute it,
> the code will no longer crash PostgreSQL ;).
It would be nice if you told us what plPHP ac
Try:
if ($_GET['login'] == 'forgot')
- Original Message -
From: "OpenSource" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 7:38 AM
Subject: [PHP-DB] weird php error
> Hi guys,
>
> This is weird to me..
> I got this script
> --
You can do:
while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC))
{
extract ($row);
echo $feild_A . ' ';
$row = $result->fetchRow(DB_FETCHMODE_ASSOC);
extract ($row);
echo $feild_A . '';
}
Tiberiu
- Original Message -
From: "jsWalt
One question:
Do you mean that a & b are from the same column but are row 1 & 2 from
your query result.?
If so, you can possibly write a loop like so
Dump all your records in an array;
Start loop for as long you find records in array
{
Take the first record from your array and dump it in
Quoting [EMAIL PROTECTED]:
> From: "Gnanavel" <[EMAIL PROTECTED]>
>
>
> > I have problem in executing linux command
> >
> > $output=exec("ls -a");
> > echo "$output";
> >
> > the above coding works, but
> >
> > $output=exec("cp file1 file2");
> > echo "$output";
> >
> > does not works. can any
> "Boaz Yahav" <[EMAIL PROTECTED]> wrote in message
> I'm not sure i understand the problem.
> a,c,e come from one query result and b,d,f from another?
No, they all come from the same table, but the same field name but from
different rows of the database.
> If it's all from the same query why n
This is the SoBig.F virus.
It hijacks a random email address form an infected persons phone book, uses
that address as the SENDER, and then proceeds to mail out copies of itself
to everyone in he infected persons phone book.
I've had my address hijacked twice now.
So, be warned, clean your syste
I'm not sure i understand the problem.
Do a,c,e come from one query result and b,d,f from another?
If it's all from the same query why not do :
$result=mysql_query(".
While($row = mysql_fetch_object($result)) {
Echo"$row->feild_A$row->feild_B";
}
Sincerely
berber
Visit http://www.we
This is what I use...
// Pull in DB PEAR Collection
require_once 'DB.php';
// What kind of database server are we connecting too?
$db_type = 'mysql';
// local connectivity data
$db_host = 'localhost';
$db_user = 'dbUsername
$db_pass = 'dbUserPW';
$db_name = 'dbName';
// Data Source Name: This
I am querying a database just fine.
Getting back what I expect, just fine.
But now I've been thrown a wrench in the form of double row display.
my client wants...
a b
c d
e f
...
Well, I've reached the end on my PHP/SQL knowledge (which really isn't all
that far!)
Right n
Hi guys,
This is weird to me..
I got this script
---
-
when ran, it gives me this error
Notice: Use of undefined constant login - assumed 'login' in
Hello Everyone,
I am working on PHP and PostGREsql.My doubt is first i am
inserting my required information to the table after that i am updating
one field with same information for all the records, now i want to update
a particular record , i am able to update in database, but wh
Thanks for your info. It's great stuff.
"Joshua D. Drake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> Beta 2 of plPHP has been released. This version contains many bug
> fixes. For example, if you write bad plphp code and try to execute it,
> the code will no longer
Hello,
Beta 2 of plPHP has been released. This version contains many bug
fixes. For example, if you write bad plphp code and try to execute it,
the code will no longer crash PostgreSQL ;).
The URL is here: http://www.commandprompt.com/entry.lxp?lxpe=260
There are precompiled binaries for Re
Mike Baerwolf wrote:
I'm looking at using md5() and mysql for user auth to some of the data
in a table. I found the following on the php md5 manual page,
$query = "INSERT INTO user VALUES ('DummyUser',md5('DummyPassword'))";
$password = md5($password);
$query = "SELECT * FROM user WHERE usernam
Hello,
I'm looking at using md5() and mysql for user auth to some of the data
in a table. I found the following on the php md5 manual page,
$query = "INSERT INTO user VALUES ('DummyUser',md5('DummyPassword'))";
$password = md5($password);
$query = "SELECT * FROM user WHERE username='DummyUser'
41 matches
Mail list logo