Sorry about that. I'm using ODBC, and PHP version 4.2.0!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Could anybody explain to me (or even give me a link to a place explaining)
the creation of "DSN-less" connections? I've extensivly searched Google with
this, but I couldn't find anything that was of any help to me. I know how to
do this in ASP, though...
--
PHP General Mailing List (http://www
$day);
$time = ereg_replace("'", "''", $time);
$channel = ereg_replace("'", "''", $channel);
$filepath = ereg_replace("'", "''", $filepath);
$SQLQuery = "INSERT INTO tblTelevision(fldTitle, fldName, fldReviewer,
fldDate, fldSummery, fldReview, fldDay, fldTime, fldChannel, fldPoster)
VALUES('$title', '$name', '$reviewer', NOW(), '$summery', '$review', '$day',
'$time', '$channel', '$filepath')";
$db = odbc_connect('ReviewDatabase', 'root', '');
$cursor = odbc_exec($db, $SQLQuery);
echo "Review posted successfully!";
odbc_close($db);
}
?>
=
I appreciat any help given.
_
Sinceriously Cheerious,
Dr. Shim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you so much Austin, and Julio! Your replies are an amazing help to me.
Thanks! Maybe I'll even get this project I'm working on done this week. =)
Anyhoo, Julio, you mean that option in the PHP.INI, is it
"register_globals"? Well, anyhow, I'm going to "convert" my script, as you
put it.
Aga
work anymore. I
think its probably because of the fact that I had to make those variables
global (none of the variables are being read).
Does any of you have an idea about how I can fix this problem? Thanks in
advance.
"Dr. Shim" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTE
Is there another way then to register form variables global? I just
downloaded, and instlaled the newest version of PHP, and now my form script
doesn't work anymore. I had to register the form variables global in the
script. I'm asking, is there a better way of doing this? I've herd it can
lead t
I've almost got this working, expect that I'm not sending the correct
"Content-type" header to the RealPlayer player. I've followed a tutorial
from the O'Reilly network (
http://www.onlamp.com/pub/a/php/2000/09/15/php_mysql.html?page=1 ), and
modified it for an Access database, and RealPlayer cont
;Rick Emery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Jason means that you should execute it from the mysql command line;
In your PHP code: print $sql.
Then copy from that window and paste into mysql command line and execute.
What are the re
ongren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Dr. Shim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 01, 2002 10:41 PM
Subject: [PHP] Variable Appended To The End of a URL Is Not Wo
Maybe you should echo out your SQL and run it manually to see
what's going on.
J
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"Work now, freak later!"
> -Original Message-
> From: Dr. Shim [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02,
I have a variable which is appeneded to the end of a URL, like
http://www.your_web_site.com/your_page/?your_variable=your_value
This would return "your_value";
echo $your_variable;
But this wouldn't work, and returns an error
$sql = "SELECT * FROM fldField WHERE IDField = " . $id;
What coul
function verify()
{
echo "Verify called. Values are...\n
Title:" . $_POST['title'] . "\n# This works!
Author: $author\n
Lead Actors: $actors\n
Poster: $poster\n
Summ.: $summery\n\n
Rev.: $review\n\n";
}
--
PHP General Mailing List (http://
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
"Dr. Shim" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Alas, m
Alas, more problems with forms =)
Well now, here is my problem. I have a form, "method" is set to "post", and
action is set to the same page. I also have a hidden field named
"form_post" and it's value is "1".
Underneath this form is my PHP script.
\n
Title: $title\n
Author: $author\n
That's fine. I already got it going (somebody helped me). Thanks for that
tip anyhow.
"Mike Gohlke" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Are you hitting enter while in one of the fields or clicking the submit
button. I've seen versions of IE that woul
[EMAIL PROTECTED]...
Are you inside a function, having neglected to do
global $PHP_SELF;
?
miguel
On Tue, 19 Mar 2002, Dr. Shim wrote:
> Strangley enough, $PHP_SELF is empty. Nothing appears when I do it the way
> Bob and you suggested, the "action" property equals "".
Strangley enough, $PHP_SELF is empty. Nothing appears when I do it the way
Bob and you suggested, the "action" property equals "".
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Tue, 19 Mar 2002, Dr.
Hmmm. How about this?
echo "";
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Tue, 19 Mar 2002, Dr. Shim wrote:
> Well, this is a fairly simple problem. I'm having problems with escaping a
> strin
Well, this is a fairly simple problem. I'm having problems with escaping a
string, and then ending the string right after the escape! For example,
echo "Then Johnathan said, \"That's exactly what I said!\"";
I get a parse error on the line where the string is. Very simple problem, I
just can't s
>e-mail the text below to
me." . odbc_errormsg($db) . "~~~";
}
}
?>
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
On Sunday 17 March 2002 12:04, Dr. Shim wrote:
> Sorry about the subject heading.
>
> I'v
Oh, by the way, the "if...then" claus runs successfully, but the function
never is called. Am I wrong?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry about the subject heading.
I've put in
But still when I click on the "Log In" button, thing happens.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've changed
To
And I get a parse error. Could you possibly help me correct this? (I'm a
newbie, so have pity on me. =)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've tried repediately to have a PHP script validate a form when the form is
submitted. I'm quite new to PHP, and I'd really appreciate the help anybody
could give me. I've been stuck on this problem far to long.
I have a form (here's the code):
Username:
Password:
An
Well, I was stupid posting this question anyway. Don't worry about my
problem. I have it fixed. =)
Again, I will be more careful not to repeat posts (or post things I can find
the answer for somewhere else).
---Original Message---
Well, aroung 14 Feb I ended up saying this to an address
Uh oh, did I ask this question before? If I did, I'm very sorry. =(
"David Robley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Note that I'm using the Windows version of PHP.
>
> Whenever I use a mai
Note that I'm using the Windows version of PHP.
Whenever I use a mail() function in my PHP code I get an error of "Failed to
Connect on line ". So, I'm guessing my error lies in the PHP
configuration file. I searched around the PHP.INI file for anything
resembililing "mail". I found these two lin
My question is can event handlers on form objects trigger PHP code?
Or even an "onsubmit" event handler on forms?
If something like this is possible, could any of you tell me how? I've
tried, and tried. I've used PHP tags inside the event handler
But the result is that the event handler is
OK. Is "Short" a keyword? The "Short" part in "INERT INTO Movies (Title,
Actors, Review, Reviewer, Short)" is giving me the "Syntax Error"
message.
I will rename my tables with a "mv" suffix. Lets see if that solves the
problem.
"Dr.
Matt Schroebel suggested I
echo "$SQLString";
The echo statement returned
INSERT INTO Movies (Title, Actors, Review, Reviewer, Short) VALUES (, , , ,
,)
So, clearly, the error lies in the form that passes the values to this
script.
Thanks Matt, we're getting closer.
&qu
;,'$Short')";
As the manual says: Note: Unlike the two other syntaxes, variables will not
be expanded when they occur in single quoted strings. ... So maybe some your
fiels requires a numeric value, but because no extraction occurs, it
receives string?
Dr. Shim <[EMAIL PROTECTED]>
sage
news:[EMAIL PROTECTED].;
Well, add this and tell us what it says:
if(!$cursor) echo odbc_error($db).": ".odbc_errormsg($db);
right after that odbc_exec() call.
*always check for errors - and when you get one, show it!*
-Rasmus
On Sat, 2 Mar 2002, Dr. Shim wrote:
> I've trie
I've tried, and tried. Reread, and reread. I can't at all find out what's
wrong with these two lines of code.
$SQLString = "INSERT INTO Movies (Title, Actors, Review, Reviewer, Short)
VALUES ('$Title','$Actors','$Review','$Reviewer','$Short')";
$cursor = odbc_exec($db, $SQLString);
I have
Yes it is. Gary helped me find it. :)
"Martin Towell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I think the SMTP would be same as you use for your email client (outlook,
eudora, other?)
-Original Message-
From: Dr. Shim
Well I tried what Gary suggested. I did "smtp.mindspring.com" and it worked
beutifully. I feel stupid that the problem was so simple. But, alas, I'm
learing. Thanks all you. Robley, that is some very informative information,
this "digging".
dig -t mx alienmelon.com
in console right?
"David Rob
Alright, I will show you my entire mail code here. BTW: I cannot mail using
mail() function
[mail function]
; For Win32 only.
SMTP = mindspring.com
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
; For Unix only. You may supply arguments as well (default:
'sendmail -t -i').
;sendmail_path
Actually, I don't really know what to put in it. I thought that's what it
wanted. What does it want?
"David Robley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Well, I did this:
>
> [mail function]
>
Well, I did this:
[mail function]
SMTP=mindspring.com
sendmail_form=[EMAIL PROTECTED]
<...rest I left unchanged...>
Still doesn't work. :(
BTW I'm using Windows at the moment to develop.
-Original Message-
"Martin Towell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROT
No I haven't. How do I do that
"Martin Towell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Have you set up the [mail function] section of your php.ini file ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
ntains the body of the
message.
I get this error:
Warning: Unknown error in c:\program files\apache
group\apache\htdocs\email.php on line 2
I have no idea what the problem could be. Could anybody help me?
----
Dr. Shim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
http://www.geocities.com/php4ud/
Seach google for php4ud
God bless google!
"Matt Williams" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Luke Crouch wrote:
>
> > I know Dreamweaver UltraDev has nice site management features
> for using a
> > JSP/SQL
Would this happen to be the one?
http://www.interakt.ro
If it is, then the extension can be found here:
http://www.interakt.ro/products/PHAkt/index.php
This place also has several othe extensions:
http://www.udzone.com/index.asp?TypeId=3&CatId=68
Found these links using Google.
God bless G
42 matches
Mail list logo