insert following...
echo $sql;
immediatly after the folowing code block..
$sql = INSERT INTO tutor (tutor_name, tutor_contact,tutor_email,tutor_profile)
VALUES
('$tutor_name', '$tutor_contact', '$tutor_email', '$tutor_profile');
then execute the script, and check whether it show
This is what I get after I echo my query statement:
INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile)
VALUES ('NULL', 'NULL', 'NULL', 'NULL')
How come the value is null???
In my INSERT query, I already state my value variable to be the name of the
fields in my html.
On Tuesday 09 December 2003 15:20, [EMAIL PROTECTED] wrote:
This is what I get after I echo my query statement:
INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile)
VALUES ('NULL', 'NULL', 'NULL', 'NULL')
How come the value is null???
In my INSERT query, I already
Well, I tried that and this is what i got:
INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile)
VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'')
DB Error: syntax error
well, when I echo again, i can successfully see the values I entered. But this
Well, I tried that and this is what i got:
INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile)
VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'')
DB Error: syntax error
well, when I echo again, i can successfully see the values I entered. But this
On Tuesday 09 December 2003 15:34, [EMAIL PROTECTED] wrote:
Well, I tried that and this is what i got:
INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile)
VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'')
DB Error: syntax error
well, when I echo
VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'')
in above line, note the two quotes, in both side of each value.. this is
the cause to your DB syntax error.. correct the above line as follows...
($tutor_name,$tutor_contact,$tutor_email,$tutor_profile);
and try, but
Thanks alot for your help!!!
It was only a spacing mistake...
There should have no spacing in between each variables:
VALUES ($tutor_name,$tutor_contact,$tutor_email,$tutor_profile);
Thanks a million.
Irin.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Dear All,
Please comment on Best Practices for sharing members database between
different portals.
Suppose we have 3 portals running on different networks.
Assignment is to make a single Login/Pass for all portals, means once
LogedIn in one of the portal, could able to access the other portals
I'd better apologize at the outset as I'm not sure this is strictly a PHP problem -
though I'm using PHP as the means of building the application. Anyway, here goes:
I'm creating a website that will function as a directory of services within a specific
area of the UK charity sector. A variety
I like your second solution better. (seems simpler to
me to leave out the nested else...). I'd just write it
this way:
?php
if(!loggedin())
{
// redirect to login page
header (Location: http://domain.com/login.php;);
exit;
}
?
Also check out some of these articles for some
different
Manuel Lemos schrieb:
Hello,
On 12/09/2003 12:26 AM, Daniel Hahler wrote:
I proudly announce the first release of my first PHP script:
spambothoney.
It provides a class to generate different types of email addresses
(random invalid, combination of users/hosts, with spambots IP/host,
binary
Manuel Lemos wrote:
The latest spamming strategies consist on using valid sender addresses
of inocent companies. Therefore, when you make up invalid addresses,
all the bounces will go to the innocent companies mail servers. The
more invalid addresses you make up the more harm you cause to
Hi
I was wondering if you any advice as to why the imagick function
imagick_readimage can not read a url on my php installation.
Problem: I am trying to get imagick to load an image from a URL. I can
read from a file on the a file system no problem.
eg,
$url =
[snip]
...wow...
[/snip]
All of this an no one mentioned cURL? ;)
http://www.php.net/curl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On dinsdag 9 december 2003 13:11 Jay Blanchard told the butterflies:
[snip]
...wow...
[/snip]
All of this an no one mentioned cURL? ;) http://www.php.net/curl
Yes .. ehmm, especially considering this wasn't the guy's actual question.
If I read it correctly, it was this:
On 12/08/2003 10:30
I've just installed and am happily using Galery HP
(http://www.galleryhp.org/)
A great photo gallery package...
Anyhoo,
I want to now be able to stop people from linking to the images directly,
and only be able to access the images via my site...
Is this possible...?
Perhaps my questio is to
Justin Patrin wrote:
Robert Cummings wrote:
Goto line number is a very broken way of coding. Goto label is a
very useful and structured way of coding especially when creating fast
FSMs for parsing. I was a little disappointed a few months ago when I
found that PHP didn't support the goto label
On dinsdag 9 december 2003 13:50 [EMAIL PROTECTED] told
the butterflies:
I've just installed and am happily using Galery HP
(http://www.galleryhp.org/)
A great photo gallery package...
Anyhoo,
I want to now be able to stop people from linking to the
images directly, and only be able to
for($i = 2; $i 0144; $i++){
echo $i . \n;
}
does not echo anything. Even put the numbers in quotes (single and
double). What has being brain-dead caused me to miss this morning?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
for($i = 2; $i 0144; $i++){
echo $i . \n;
}
does not echo anything. Even put the numbers in quotes (single and
double). What has being brain-dead caused me to miss this morning?
[/snip]
I found it...one too many zeros in initial $i (I wanted to say one two
many..) :)
Hello Jay,
Tuesday, December 9, 2003, 1:31:35 PM, you wrote:
JB for($i = 2; $i 0144; $i++){
JB echo $i . \n;
JB }
JB does not echo anything. Even put the numbers in quotes (single and
JB double). What has being brain-dead caused me to miss this morning?
Look at your values
I'd better apologize at the outset as I'm not sure this is strictly a PHP
problem - though I'm using PHP as the means of building the application.
Anyway, here goes:
I'm creating a website that will function as a directory of services within a
specific area of the UK charity sector. A
on Tue, 9 Dec 2003 12:49:56 + [EMAIL PROTECTED] wrote:
TPrsc I want to now be able to stop people from linking to the images directly,
TPrsc and only be able to access the images via my site...
With Apache you can either use mod_rewrite:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond
On dinsdag 9 december 2003 14:30 Wouter van Vliet told the butterflies:
On dinsdag 9 december 2003 13:50
[EMAIL PROTECTED] told the butterflies:
I've just installed and am happily using Galery HP
(http://www.galleryhp.org/)
A great photo gallery package...
Anyhoo,
I want to now be
Ryotaro Ishikawa MD wrote:
Hi, I am a MD, involved in a very large medical project that requieres a strong database plataform, the project must be .NET , the estimated transactional movement is about 40 on line users accesing a DB with a 200 relational tables. The policy is to program this SW in
Justin Patrin wrote:
Nitin wrote:
Hi all,
I was wondering, if there's any way to achieve 'goto label:' using PHP
Thanx for ur time
Nitin
goto is a very old and broken way of coding. If you ever find yourself
in need of a goto, you should re-evaluate how you're doing things. If
you're
[EMAIL PROTECTED] wrote:
I've just installed and am happily using Galery HP
(http://www.galleryhp.org/)
A great photo gallery package...
Anyhoo,
I want to now be able to stop people from linking to the images directly,
and only be able to access the images via my site...
Is this possible...?
I have a script where a user inputs a date in MMDD format, and I need
to convert it to month day, year. For example they will enter 20031209
and I need the script to return the date as December 09, 2003. They won't
be entering today's date, so I can't use the timestamp with the date
Hi,
I have a script where a user inputs a date in MMDD format, and I need
to convert it to month day, year. For example they will enter 20031209
and I need the script to return the date as December 09, 2003.
They won't
be entering today's date, so I can't use the timestamp with the date
Hi All,
I need to know how to write a script for deleting mail from a Linux server.
Essentially I need to be able to delete all mail with a date-stamp less than
some threshold date.
Then I want this script to run from a regular cron job. I am not sure if
this is doable in PHP or whether I must
At 16:08 9-12-03, you wrote:
Hi All,
I need to know how to write a script for deleting mail from a Linux server.
It's more important to know what sort of mail it is. I suppose POP3 mail,
so then look for the POP class of Manuel Lemos, i think on phpclasses.org.
Essentially I need to be able to
I have a script where a user inputs a date in MMDD format, and I need
to convert it to month day, year. For example they will enter 20031209
and I need the script to return the date as December 09, 2003. They won't
be entering today's date, so I can't use the timestamp with the date
Cheers for this...
On the 'new mail' thread...
I did start a new mail this time, I remember cause I'm been flamed for
this before..?
Curious...
Sadly, I use Lotus Notes, if I opened an E-mail, copied the address and
then hit new mail, would Notes remember and extra info?
Quite quite confusing
Forget my whole new post retort ;-)
Wouter van Vliet [EMAIL PROTECTED]
09/12/2003 14:11
To
'Wouter van Vliet' [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED]
cc
Subject
RE: [PHP] Leechers...
On dinsdag 9 december 2003 14:30 Wouter van Vliet told the butterflies:
On
Hi,
Tuesday, December 9, 2003, 4:58:30 PM, you wrote:
ijc Hi all,
ijc I am trying to do a simple INSERT data into the database using the following
ijc php script but the problem here is that whenever I click submit, the script
ijc only insert a NULL value into the columns into the datadase
In PHP, what does the operator -= do? I can't find a ref to it's
function in the online manual or any books I have.
Thanks,
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Jeff,
Tuesday, December 9, 2003, 4:11:10 PM, you wrote:
JM In PHP, what does the operator -= do? I can't find a ref to it's
JM function in the online manual or any books I have.
Set's a negative value:
$a = 10;
$b -= $a;
or
$b -= 10;
In both cases $b will equal -10.
--
Best
snip
In PHP, what does the operator -= do?
/snip
$var -= 1 is the same as $var = $var - 1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Roger Schweppe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 9:55 AM
To: [EMAIL PROTECTED]
Subject: FW: errors using iis,soap,php
Hi,
Arnaud Limbourg suggested that I might find an answer to the question below
from someone at this e-mail address:
Uhhh, nope. That only works in your code if $b is initially 0. They're
shorthand for do something and reassign.
$a = 100;
$a += 10; // $a = $a + 10
$a -= 10; // $a = $a - 10
$a /= 10; // etc...
$a += 10;
$a = 2;
$a .= ' is a weird number';
$mode = 0755;
$mode = 01;
--Jeff
Has anyone seen it lately ? , php.net seems to think it has moved to PEAR or
PECL but unless its been renamed ... ? any ideas
Regards,
Simon Wheeler.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Chris Shiflett mailto:[EMAIL PROTECTED]
on Monday, December 08, 2003 5:17 PM said:
The only risk is forgetting to add this check, since I
assume you mean that you have to copy/paste this into every script.
You might want to consider whether you can design your application in
such a way
John Clegg wrote:
Problem: I am trying to get imagick to load an image from a URL. I can
read from a file on the a file system no problem.
Maybe you should simply circumvent the
problem - download the file to your location
into a temporary file, then act on this file
locally...Use
On Mon, 8 Dec 2003, Chris W. Parker wrote:
Ok so I am working on the admin sectin of the e-commerce app I'm writing
and I'm hoping there's a better way to do what I am currently doing.
In an effort to prevent circumvention of the login page I've placed a
check at the beginning of each page
I am sort of new at this, I am wondering if it is possible to find the
display settings of the user
I know that
?php echo $_SERVER[HTTP_USER_AGENT]; ?
will give you
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
is there one that will recover the display settings of the user?
Matt
Kelly Hallman wrote:
On Mon, 8 Dec 2003, Chris W. Parker wrote:
Ok so I am working on the admin sectin of the e-commerce app I'm
writing and I'm hoping there's a better way to do what I am currently
doing. In an effort to prevent circumvention of the login page I've
placed a check at the
Hartley, Matt wrote:
I am sort of new at this, I am wondering if it is possible to find
the display settings of the user I know that
?php echo $_SERVER[HTTP_USER_AGENT]; ?
will give you
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
is there one that will recover the display
I was wondering if you any advice as to why the imagick function
imagick_readimage can not read a url on my php installation.
Problem: I am trying to get imagick to load an image from a URL. I can
read from a file on the a file system no problem.
$url =
Kelly Hallman wrote:
On Mon, 8 Dec 2003, Chris W. Parker wrote:
Ok so I am working on the admin sectin of the e-commerce app I'm
writing and I'm hoping there's a better way to do what I am currently
doing. In an effort to prevent circumvention of the login page I've
placed a check at the
Not via PHP. You will need javascript to accomplish this.
On Tue, 2003-12-09 at 10:57, Hartley, Matt wrote:
I am sort of new at this, I am wondering if it is possible to find the
display settings of the user
I know that
?php echo $_SERVER[HTTP_USER_AGENT]; ?
will give you
Assignment Operators
http://www.php.net/manual/en/language.operators.assignment.php
Incrementing/Decrementing Operators Arithmetic Operators
http://www.php.net/manual/en/language.operators.increment.php
Arithmetic Operators
http://www.php.net/manual/en/language.operators.arithmetic.php
Operator
There is no good way to really handle this between domains and keep the
user logged in. I doubt there are any real best practices on this.
If you're disparate, you might be able to use some tricks to make it
work, but all in all, I don't think it's a very easy thing. Cookies
sessions just
Since PHP is a server side language, you cannot get information like the
users display settings. If you want this information, you will need to
use a client side language like Javascript or VBScript.
--Sam
Hartley, Matt wrote:
I am sort of new at this, I am wondering if it is possible to
Hello,
On 12/09/2003 10:49 AM, Tristan Pretty wrote:
I've just installed and am happily using Galery HP
(http://www.galleryhp.org/)
A great photo gallery package...
Anyhoo,
I want to now be able to stop people from linking to the images directly,
and only be able to access the images via my
Hello,
On 12/09/2003 09:42 AM, Leif K-Brooks wrote:
The latest spamming strategies consist on using valid sender addresses
of inocent companies. Therefore, when you make up invalid addresses,
all the bounces will go to the innocent companies mail servers. The
more invalid addresses you make up
Hi,
This was asked some time ago but cant find it in the archive, anybody
remember how it was solved please write and tell me.
Requirment:
Write domain name in faint color on picture (a kind of watermark)
Reason:
I have 3 directories full of images that are original to our site and I
spent a
I accept a regex search term posted from a form, but I use $_REQUEST, so a
person could throw the search term on the url if they wanted to.
Am I open to any security breaches ?
$search_term = isset ($_REQUEST ['search']) ? $_REQUEST ['search'] : '';
if ($search_term != ) {
...
$contents =
--- Richard A. DeVenezia [EMAIL PROTECTED] wrote:
I accept a regex search term posted from a form, but I use $_REQUEST,
so a person could throw the search term on the url if they wanted to.
Am I open to any security breaches?
$search_term = isset ($_REQUEST ['search']) ? $_REQUEST
On Tue, 2003-12-09 at 08:14, Bogdan Stancescu wrote:
Robert, I know your grief, been there, I know how it feels. I started my
childhood with BASIC, which was /the/ GOTO programming language,
learned Turbo Pascal when I was a teenager, and continued to use GOTO's
(Pascal discourages but
Is it possible to connect to an LDAP server with ldap_connect() then
store the resulting resource handle in the session variable $SESSION[]?
I'm hoping to avoid re-connecting and re-binding every time the user
clicks on something.
It does not appear to be saving my LDAP connection handle along
How can I run a command on a remote host wiht php?
I'm trying this line but nothing happen.
passthru(rsh rubella
/export/dat0/users/augur-se/bin/.upnotify -s
1045073262-82425_net2.nextelinternational.com -u
http://wap.peru.com -a -y D--- -i Location -n);
I try exec and system, too
But if I run
Robert Cummings wrote:
On Tue, 2003-12-09 at 08:14, Bogdan Stancescu wrote:
Robert, I know your grief, been there, I know how it feels. I started my
childhood with BASIC, which was /the/ GOTO programming language,
learned Turbo Pascal when I was a teenager, and continued to use GOTO's
(Pascal
On Tue, 2003-12-09 at 17:45, Justin Patrin wrote:
While goto may be useful and even elegant for experienced programmers
(although I see no reason to use it myself with well structured
programs...there's always break), its inclusion in a language causes
some programmers (newbies and those
When you say remote host do you mean the server executing the script or the person
accessing it?
If you mean the latter, it is not possible.
- Original Message -
From: Ivone Uribe
To: [EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 5:44 PM
Subject: [PHP] run a command on
Don't forget that this will be executed as the user that the webserver
is running as. Hopefully that's not root in this case. Check out the
docs for rsh, you can specify the username with the -l option. I
don't know if that will accomplish what you want. Also, what do you mean
by nothing
Well, it is not possible directly, but you can try some of the following;
$cmd = rsh -l user host command; // remote shell
$cmd = rpc -l user host command; // remote procedure call
$cmd = rexec -l user host command; // remote exec
$cmd = ssh host command; // secure shell
===
This message is for the benefit of new subscribers
and those new to PHP. Please feel free to add
more points and send to the list.
===
1. If you have any queries/problems about PHP try
http://www.php.net/manual/en
On Tue, 2 Dec 2003, Chris Hubbard wrote:
All, dealing with header(location:...) again. and trying to
understand what's happening. I've got the following code:
header(Location:http://www.mysite.com/cp/ad/ad_details.php?id=;. $id);
I'm kinda surprised I didn't see this mentioned.. Have you
--- Kelly Hallman [EMAIL PROTECTED] wrote:
On Tue, 2 Dec 2003, Chris Hubbard wrote:
All, dealing with header(location:...) again. and trying to
understand what's happening. I've got the following code:
header(Location:http://www.mysite.com/cp/ad/ad_details.php?id=;.
$id);
I'm kinda
Ma Siva Kumar mailto:[EMAIL PROTECTED]
on Tuesday, December 09, 2003 4:00 PM said:
4. Just put the following code into a file with a
.php extension and access it through your
webserver:
?php
phpinfo();
This will display tons of info if php is enabled,
or, it will ask you to
?php
ob_start();
$dom = $_SERVER['SERVER_NAME'];
writeMessage($id) or die('cannot write' . $id);
header('Location: http://' . $dom . '/cp/ad/ad_details.php?id=' . $id);
exit();
ob_end_flush();
?
--
Jon Kriek
www.phpfreaks.com
www.jonkriek.com
--
PHP General Mailing List
There's a command line, open-source utility called ImageMagick
(http://www.imagemagick.org/) available for all major platforms that allows
you to do lots of powerful image manipulation on one file, or one thousand.
You crop, scale, rotate, colour, draw on, place text over, compose,
transform and
G'day all
I was wandering I have php installed with GD with freetype fonts compiled in
I ran this php script
?php
header(Content-type: image/gif);
$im = imagecreate(400,30);
$white = imagecolorallocate($im, 255,255,255);
$black = imagecolorallocate($im, 0,0,0);
// Replace path by your
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Hi all,
I am trying to do a simple INSERT data into the database using the following
php script but the problem here is that whenever I click submit, the script
only insert a NULL value into the columns into the datadase instead
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Good afternoon, all!!
Is there a function or series of functions in PHP that will allow a PHP
package to read email from a sendmail account, look for a specific
information in the subject line, then be able to resend that email
Hi all,
I got the error Constraint Violation when I did an INSERT .
Gone thru the code umpteen times but to no avail..Wondering where my error
was??...Below is a snip of the block of code:
?
$dsn = mysql://root:[EMAIL
Hi all,
I got the error Constraint Violation when I did an INSERT .
Gone thru the code umpteen times but to no avail..Wondering
where my error
was??...Below is a snip of the block of code:
?
$dsn = mysql://root:[EMAIL
Hi folks,
[ http://www.phpconference.com/ ]
time's running fast ahead - we're just announcing the Call for Papers
for 2004's International PHP Conference Spring Edition Amsterdam.
The date for this event for PHP enthusiasts from all over the world will
be May 3rd to May 5th, 2004. The
Hi,
I'm trying to obtain the similarity percentage for 2 Strings when using
the Levenshtein function but the percentages doesn't seem to match the
percentage
returned by similar_text($str1,$str2,$match_percent);
Below is what I use to calculate the similarity percentage
$dist =
Hi,
I'm trying to obtain the similarity percentage for 2 Strings when using
the Levenshtein function but the percentages doesn't seem to match the
percentage
returned by similar_text($str1,$str2,$match_percent);
Below is what I use to calculate the similarity percentage
$dist =
Hi all,
I got the error Constraint Violation when I did an INSERT .
Gone thru the code umpteen times but to no avail..Wondering
where my error
was??...Below is a snip of the block of code:
?
$dsn = mysql://root:[EMAIL
[EMAIL PROTECTED] schrieb:
Thanks alot for your help!!!
It was only a spacing mistake...
There should have no spacing in between each variables:
VALUES ($tutor_name,$tutor_contact,$tutor_email,$tutor_profile);
hi,
a space after a comma shouldn't be a problem. your problem were
Hi,
Wednesday, December 10, 2003, 11:53:27 AM, you wrote:
c G'day all
c I was wandering I have php installed with GD with freetype fonts compiled in
c I ran this php script
c ?php
c header(Content-type: image/gif);
c $im = imagecreate(400,30);
c $white = imagecolorallocate($im,
84 matches
Mail list logo