Start with something like the following and add mysql_list_dbs () to query
the system for the available databases.
Hugh
Input Data Page
DATABASE TABLES
";
print "Database name:
";
print "Password:";
print "";
print "";
print "";
if ($start=="1")
{
$link=mysql_connect("localhost","","$
Josep Raurell wrote:
>
> Quoting Torkil Johnsen <[EMAIL PROTECTED]>:
>
> > Anyone know of a good text editor for linux, WITH syntax highlighting for
> > php/html + other languages?
> >
> > - TOrkil
vi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
Quoting Torkil Johnsen <[EMAIL PROTECTED]>:
> Anyone know of a good text editor for linux, WITH syntax highlighting for
> php/html + other languages?
>
> - TOrkil
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
jedit
www.je
hi john,
maybe this is the right way
$where="id like ".$id;
$query="select * from ccl where '".$where."' order by AU desc";
$result=mysql_query($query);
regards
martin
> -Ursprüngliche Nachricht-
> Von: jtjohnston [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 18. Februar 2002 08:00
>
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jtjohnston) wrote:
> > > $where = "id like $id";
> So I do?
>
> $news = mysql_query("select * from ccl where '.$where.' order by AU desc");
>
> or ?
>
> $news = mysql_query("select * from ccl where '.%$where%.' order by AU desc");
Neither.
> > while ($mydata = mysql_fetch_object($news))
> > So what am I doing wrong here:
> > $where = "id like $id";
> > $news = mysql_query('select * from ccl where '.$where.' order by AU desc');
> //desc => z-a
> A) Have you already confirmed that a valid database connection was made?
Yes. A copy an
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jtjohnston) wrote:
> Heres's a frustrating, and maybe not so stupid question?
>
> I'm getting "Warning: Supplied argument is not a valid MySQL result
> resource" on this line:
>
> while ($mydata = mysql_fetch_object($news))
>
> So what am I d
I use Interbase on the Linux and NT servers and I would like to have a
report generator that can take the results of a query and produce that
can be converted into a PDF file.
Does anyone have some suggestions on how I can best achieve this goal?
Todd
--
Dr. Todd Cary
Ariste Software
707-773-45
Heres's a frustrating, and maybe not so stupid question?
I'm getting "Warning: Supplied argument is not a valid MySQL result
resource" on this line:
while ($mydata = mysql_fetch_object($news))
So what am I doing wrong here:
$where = "id like $id";
$news = mysql_query('select * from ccl where '
To have a secure HTTP session, you must be communicating with a secure web
server. This is apache. It has nothing to do with PHP or Linux.
You classmate was right. The only difference for SSL is that you use https
instead of http. To find out if your server can communicate using SSL, try
it. If y
I heard from my coursemates it's just typing https:// instead of http://.
1) To enable secure http (SSL) session, what extensions should I install? To
which one: Apache or PHP or Linux?
2) How do I know if my Apache and/or Linux and/or PHP support SSL?
Thanx
__
Jeff D. Hamann wrote:
> I'm currently working on a web based application (in php) and saw the power
> of being able edit fields in the pdf document. I can see how to build the
> pdf file by hand, but I have a few dozen forms (multiple pages of course)
> that I wish I could scan in and have a rough
On 17 Feb 2002, at 21:01, Jennifer Downey wrote:
> Would someone please help? I have looked everywhere and can not find
> how to update a database at a certain time.
>
> I am trying to get this to update at midnight instead of every time
> the browser refreshes. My hosting service has cron jobs
Simply, to send a form to itself, you can use a special variable called
$PHP_SELF. Here's an example of how to use it:
if ($somevalue) {
header("Location: $PHP_SELF");
} else {
execute some other code...
}
Here, if $somevalue holds true, it will call itself and reload the same
script/file.
make sure the url in the header("location:") is a full url and not a
relative url
Martin
-Original Message-
From: Robbie Newton [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 4:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] help with Header call
Hello everyone,
This is my firs
INCLUDE is not really what you are looking for. INCLUDE is more to read in
files that contain PHP code. If I'm understanding correctly, what you want
to do is to read each line from your file and put each line into a separate
variable. Then, you can create the INSERT statement for each row.
It mi
I'm having trouble storing my array to a text file, utilizing serialize()
and unserialize(). Could you please show a very basic layout of the proper
way to serialize and unserialize and store that to a file? Thanks.
"Matt" <[EMAIL PROTECTED]> wrote in message
001e01c1b7c0$404d5be0$059aa8c0@Pooc
Hello everyone,
This is my first post to this list, so I hope that someone is awake enough to help me
out.
I am new to PHP and I have a file that uses a command "header". It isn't working like
it is supposed to but I can't seem to figure out why. Below is the last couple lines
of the php fil
Dear List,
Is there PHP scripts which I can use to conduct online debate at my website.
Say, I set a topic to debate on and people can post 'for' or 'against' it. I
think it needs to be different from the threaded discussion forum.
Could anyone suggest me where I can get it?
Thanks
NOBBY
--
Adobe distiller can do this (see abobe.com) - but there are cost/server
requirements.
-bcg
-Original Message-
From: Jeff D. Hamann [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] building dynamic pdf files?
I'm currently working
Adobe Acrobat 5 or 6 - whichever's the latest version - can grab web pages
and convert them to pdf.
Depends if you want to fork out to buy it
Martin
-Original Message-
From: Jeff D. Hamann [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject:
Hi All,
I have seen a lot of discussion about this - but no real solutions
:)
I am getting a two task communication error whenever I try to select
a varchar2 element in a query in php4. I seem to be able to select any other
kinds of data without hassle.
All of my environ
I'm currently working on a web based application (in php) and saw the power
of being able edit fields in the pdf document. I can see how to build the
pdf file by hand, but I have a few dozen forms (multiple pages of course)
that I wish I could scan in and have a rough pdf file to start working wit
> Well, as you said, no point in arguing. Just that I think if someone
> really wants to develop they should learn some better tools than a
> GUI but it's a question of balance.
I think a definition of GUI might be in order. Homesite, for instance, is
just a big text editor. It has almost no GUI
I am very new at this and am having trouble migrating to php and mysql from
a different system (WebCatalog).
I want to start dumping files to text and let php use them to populate mysql
on the fly as I start migrating.
snip---
$db = mysql_pconnect("host", "u
> I have a php user authorise script.
>
> I have 2 fields in a mysql database. user_name and user_password. Password
> is encrypted with the mysql password('$password') function.
>
> This is my PHP authorise section of the script.
>
> $sql_authorisation = "SELECT * FROM account_details WHERE
> acc
Hello,
I'm looking for code to display all my mysql databases in a .
On change, I want to display all my tables in a .
Finally, on change, it has to display all record of the table selected:
Print Record
id YR AU BT
1 1997 Fee, Margery Writing Orality: Interpreting
> I have to run php script from Linux shell.
>
> I have no trouble except with passing the parameters.
> What is the right sintax to pass them to the script?
>
> I would like to do something like this:
> /usr/local/bin/php ./test.php param=value
What you want is $argc and $argv as described in t
Webmaster Mbtradingco wrote:
> Hi, I have a form, that I need to control the parameters in the _blank
> target once it is submitted.
>
>
>
> Everything works, fine except the client wants the result of the poll in
> a popup window, and I am not able to control the parameters on the new
>
php-general Digest 18 Feb 2002 02:21:25 - Issue 1178
Topics (messages 85103 through 85140):
Re: Sendmail & PHP
85103 by: Liam MacKenzie
Re: storing arrays
85104 by: Joffrey van Wageningen
85105 by: Matt
85109 by: Christian Blichmann
Re: MySQL error checking
On 17 Feb 2002, at 16:12, Chris Lott wrote:
> I hope we aren't going to get another chest-pounding "real coders"
> type of argument going here. Homesite *IS* a text editor. It provides
Yeah, my bad.
> an amazing number of shortcuts to tasks, including mouse-based tasks,
> many of which I guara
Thanks guys, this works, but found the problem to be the fact that
Winamp does not shut down, therefore the script sits and waits. If I
close Winamp the script will fire off the next event. I might try
mpg123 for Win.
-Scott
-Original Message-
From: Stephano Mariani [mailto:[EMAIL PRO
I hope we aren't going to get another chest-pounding "real coders" type of
argument going here. Homesite *IS* a text editor. It provides an amazing
number of shortcuts to tasks, including mouse-based tasks, many of which I
guarantee you I can get done faster with a mouse than anyone can typing. It
Hi, I have a form, that I need to control the parameters in the _blank target
once it is submitted.
Everything works, fine except the client wants the
result of the poll in a popup window, and I am not able to control the parameters on the new window.
Can any one help me with this?
> Well I was hoping that article was interesting. It wasn't. I should
> have known when I saw the use of homesite as an alternative.
sure, it was just simple look at zend studio, but it made me wonder why the
tool didn`t work on my system :) [yes - i think i know what was wrong, no
need to look f
Yeah, for buttons (radio/checkboxes) I had to put an if statement on
each one:
>
unformatted
>
You're right... it's not as easy.
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To un
sure - $error could be an array, so the code I supplied could be changed to:
if you're email client supports rich text, then the changed lines are in
green
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 10
> I guess the real challenge is converting a pre-existing page like the
> one I've described into one that can re-populate itself on an error
> condition. Building it that way from scratch is merely a programming
> task.
That's true, however there are a few ways to cheat :). For example, in
RE: [PHP] form submission error trappingThanks for the code Is there a
way to keep track of what fields had the errors as its possible for people
to have like 5 errors?
Thanks again.
Jason
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: February 17, 2002
> > -Original Message-
> > From: Steven Walker [mailto:[EMAIL PROTECTED]]
> >
> > I created one php page that both displays the form and validates the
> > input. When the user hits the submit button, it submits the data to
> > itself. If anything is missing from the page, the form is r
something like:
not tested but should work - just expand on it
Martin
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 10:22 AM
To: Steven Walker
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] form submission error trapping
Ya, it would be cool if you could how do you submit the form to itself?
Right now, I have something like
if (!$submit) {
display form
}
else {
process
if (trim($email)=="") {
echo "error, hit back button to fix";
}
}
Thanks
Jason
> -Original Message--
Jason,
I just finished one of my form pages, and I'm really happy with how it
turned out.
I created one php page that both displays the form and validates the
input. When the user hits the submit button, it submits the data to
itself. If anything is missing from the page, the form is reshown
$argv and $argc are prob. what you're after - dunno if there's any parameter
parsing functions - but it's a start
HTH
Martin
-Original Message-
From: Bostjan Marusic [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 10:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Running php from
On at , Unknown wrote:
> i write in php about 1.5 years. from the beginning i use macromedia
> homesite and i`m quite content of it. but...debugger, environment not
> optimized for php developers etc. so i wanted to try zend studio, i
> i`ve read this
> (http://www.byte.com/documents/s=6975/by
I have to run php script from Linux shell.
I have no trouble except with passing the parameters.
What is the right sintax to pass them to the script?
I would like to do something like this:
/usr/local/bin/php ./test.php param=value
Best Regards,
Bostjan Marusic
--
PHP General Mailing Lis
submit back to the same page - or include that page
Martin
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 9:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] form submission error trapping
I am working on some error trapping for several forms
I am working on some error trapping for several forms on my site. After
visiting a bunch of websites, I've noticed 2 common methods of displaying
error messages.
1. display an error box on a new page and force the user to hit the
button
2. display the form again with appropriate error text and
On 17 Feb 2002, at 23:20, Raymond Lilleodegard wrote:
> The "var" $somevariable means that the variable is defined. You only
> need to use var in classes. So if you only write ordinary scrpits, you
> dont need to use it.
Raymond,
Thanks. Someone else said it just helped to see what your class
hi
i write in php about 1.5 years. from the beginning i use macromedia homesite
and i`m quite content of it. but...debugger, environment not optimized for
php developers etc. so i wanted to try zend studio, i downloaded it,
installed (w2k, i already had an apache, so i deleted what came with
insta
Isn't this something to do with shared memory? I haven't played with shared
memory before, but this sounds like it might work.
Martin
-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 8:37 AM
To: Peter J. Schoenster
Cc: [EMAIL PROTECTE
A bit late in replying - but what the hay (or is that "hey"??) oh well...
>From my understanding of virtual functions (and it's been at least 3 to 4
years since I've done C++) is that a "virtual function" has basic
functionality and a "pure virtual function" has no, and can't have, and
code.
Ple
Hi Peter!
The "var" $somevariable means that the variable is defined. You only need to
use var in classes. So if you only write ordinary scrpits, you dont need to
use it.
Regards Raymond
"Peter J. Schoenster" <[EMAIL PROTECTED]> wrote in message
3C6FC20B.3856.610F245@localhost">news:3C6FC20B.38
On Sun, 2002-02-17 at 11:05, Christian Blichmann wrote:
> Hi there!
[snip]
> if (condition) one_statement();
>
> if (condition)
> one_statement();
> else
> other_statement();
>
> if (condition)
> on
I want to grab info from a Web page where I am a logged in user.
How do I pass cookie info along with the grabber script? I looked
at Snoopy but the code is too complex for me to learn how to
use it.
http://turma.sourceforge.net/web/urlator/snoopy.html
Is there any example code out there on how
Matthew Darcy wrote:
> Hi,
>
> This script does NOT work.
>
> However if I change the sql function $sql_authorisation to
>
> $sql_authorisation = "SELECT * FROM account_details WHERE
> account_name='$login_username' );
>
> so that is only selects the username - it works. there for there is a
HI,
I was reading the docs and I see this:
> /* This is how it should be done. */
> class Cart
> {
> var $todays_date;
> var $name;
> var $owner;
> var $items;
>
> function Cart()
> {
> $this->todays_date = date("Y-m-d");
> $this->name = $GLOBALS['firstna
Actually, sites that "remember" you don't typically keep the same
session around. They send a separate cookie that contains just userid
information and when you return, they just set the session variables in
such a way based off of the userid cookie.
If you really want to keep the same session a
Hi there!
This is my suggestion for code formatting/commenting/etc.:
if ($var > 0 && ( // Shortcut, since your're not
calling anything
// that "does stuff" in
the conditional.
strlen($var) == strlen(intval($var)) ||
Marcus Ouimet wrote:
> How can I unsubscribe to this list thanks in advance.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
Read the above URLs?
--
H | "Life is the art of drawing without an eraser." - John Gardner
+-
How can I unsubscribe to this list thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Clark" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Two questions:
>
> 1) Is it possible to write an array to a file?
What about using WDDX, an open XML-format for interchanging
data (see http://www.openwddx.org/) ?
You then will be able to do this:
To
Hi,
I have a php user authorise script.
I have 2 fields in a mysql database. user_name and user_password. Password
is encrypted with the mysql password('$password') function.
This is my PHP authorise section of the script.
$sql_authorisation = "SELECT * FROM account_details WHERE
account_nam
Try exec "cmd /c start winamp.exe M01.mp3" to avoid blocking...
Stephano Mariani
> -Original Message-
> From: DL Neil [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, 17 February 2002 2 3
> To: Scott; [EMAIL PROTECTED]
> Subject: Re: [PHP] exec on Windows
>
> Scott,
>
> > I am trying to
- Original Message -
From: "Navid Yar" <[EMAIL PROTECTED]>
> $query = "select email from customers" // Check for duplicate
> entry
> . "where email = $email";
> $query = stripslashes($query);
> $result = mysql_query($query);
>
> $num_results = mysql_num_rows($result); // Get the number of
- Original Message -
From: "Clark" <[EMAIL PROTECTED]>
Sent: Saturday, February 16, 2002 9:15 PM
> Two questions:
>
> 1) Is it possible to write an array to a file?
Yes, serialize it first with http://www.php.net/serialize. You can also
place this in a db text field because it will be
- Original Message -
From: "Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 17, 2002 3:15 AM
Subject: [PHP] storing arrays
> Two questions:
>
> 1) Is it possible to write an array to a file?
not direct, use:
$fp = fopen("/my/file", "w");
foreach($filearray a
Very strange indeed...
If I send an email to [EMAIL PROTECTED], it leaves the mailqueue
but I never actually recieve the email in my vectorstar account!
(Vectorstar is a remote mail server)
When I send an email to a local address, it sits in the queue for ever,
so I force delivery
Forcing th
php-general Digest 17 Feb 2002 14:03:39 - Issue 1177
Topics (messages 85077 through 85102):
Re: file reading and array's
85077 by: Scott
Re: Outputing XML to browser???
85078 by: Jim Hankins
Breadcrumbs in PHP
85079 by: lmlweb.mybc.com
storing arrays
85080
Scott,
> I am trying to develop a music scheduling system on Windows using the
> command line to fire off WinAMP. The first exec works fine, then it
> stops
> and says that program execution time has been exceeded.
>
> An example would be:
>
> exec ("winamp.exe M01.mp3");
>
> a while loop ki
Sorry about this, yet another question about sendmail...
I've spent days on this, read stacks of docs and just can not get it to work!
It sends some emails... But others it rejects.
Please, if you know of any tutorials on how to set this stuff up, please
tell me!
If you think you may be able t
Hi!
We released the fourth sample of the PHP Manual
CHM Edition. We beleive it is better then the previous
ones. Go and get it: http://weblabor.hu/php-doc-chm
Discussions at [EMAIL PROTECTED]
Goba
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
I've a php script that gets e-mail addresses from a MySQL database and then
sends the same e-mail message to about 100+ addressees. There are no
duplicate addresses in the db.
When I call the script the e-mails do get send but in duplicate and,
instead of linking to a "Task Done" page, it sho
Hi there,
Can it be that complicated to build php with gdlib2 on linux?
I thought the gd2 is included in php4.1.1 so just telling php at buildtime
to include it. But this is generating errors.
So I did download gdlib from boutel, compiled it and tryed to configure php
prior build. This does not
Hello,
Is there a way to test for cookies enabled/disabled, without reload the page
and test for the preset cookie?
echo setcookies("test");
seems to be 1 always.
Tnx,
Bas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
where am i going wrong
i used
$mail = preg_replace("/]*?>/i","\n\n$0", $mail,-1);
and
$mail = preg_replace("/]*?>/i","\n\n\\1", $mail,-1);
but i get $0 or \1 inserted, but only on the linux server
not on my win 2000 dev machine!
Paul Roberts
[EMAIL PROTECTED]
- Ori
I'm running in to the following error message:
Warning: pdf_open_memory_image() is not supported in this PHP build
I have pdflib and gd compiled in to PHP, so I'm sure what to do next. Any
ideas?
--Brent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
77 matches
Mail list logo