On Sat, Mar 31, 2012 at 6:36 AM, Maciek Sokolewicz
maciek.sokolew...@gmail.com wrote:
On 31-03-2012 10:29, tamouse mailing lists wrote:
On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmedmycomputerbo...@gmail.com
wrote:
i have made a php script with a tutorial helpi dont know where is a
On Fri, Mar 30, 2012 at 11:45 PM, saeed ahmed mycomputerbo...@gmail.com wrote:
i have made a php script with a tutorial helpi dont know where is a
error.please have a look
Your code below assumes that everything is perfect in your world. IE:
no network connectivity issue, all firewall
Please check this line:
$result=mysql_query(select(SELECT*FROM COLLEAGUE);
I think it should be:
$result=mysql_query(SELECT * FROM COLLEAGUE);
On Sat, Mar 31, 2012 at 1:45 PM, saeed ahmed mycomputerbo...@gmail.comwrote:
i have made a php script with a tutorial helpi dont know where is a
On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmed mycomputerbo...@gmail.com wrote:
i have made a php script with a tutorial helpi dont know where is a
error.please have a look
Before you actually run code in a browser, check your syntax with php
-l (for lint, the old command to check C syntax on
On 31-03-2012 10:29, tamouse mailing lists wrote:
On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmedmycomputerbo...@gmail.com wrote:
i have made a php script with a tutorial helpi dont know where is a
error.please have a look
Before you actually run code in a browser, check your syntax with
Hi,
I tried to use the final array values in a insert statement, but the values are
not inserted.
the code is
foreach ($final as $subnum){
$res = $db-query(INSERT INTO
substrate_protocoll(substrate_type,substrate_num,operator,location,solvent,ultrasonic,duration,cdate,ctime,comment)
I tried to use the final array values in a insert statement, but the
values are not inserted.
the code is
foreach ($final as $subnum){
$res = $db-query(INSERT INTO
substrate_protocoll(substrate_type,substrate_num,operator,location,solvent,u
ltrasonic,duration,cdate,ctime,comment)
you need single quotes around $subnum in the sql statement. don't
know why you seem to be arbitrarily leaving them off (put them around
$uv and $duration, too!).
also, you should never insert stuff directly from a user into a
database. first escape every variable with:
Jordan Miller wrote:
you need single quotes around $subnum in the sql statement. don't know
why you seem to be arbitrarily leaving them off (put them around $uv
and $duration, too!).
snip
It's not needed if those fields are integers.
*damnit, that's twice today I've replied to the poster
heh, i did it too.
John,
oh, good to know, thanks. $final should be composed of strings, not
integers, so i guess that is his problem. i just read that it is
best to quote every variable, now I know why... so you can change
implementations later and not have to worry about types (and
I think I finally understand what you are trying to do. I don't see
any reason why you need to use the token functions, and I would
recommend using array functions instead (also, it is exceedingly easy
to sort the elements of an array... see the end).
I believe this will do what you are
Hi Dave,
I could be wrong cause i am answering without running your code :
1) your mysql user account probably does not have grant privileges. good
thing too. It's very dangerous to just run a grant query like this
because it can so easily be abused by a malicious user. (of course you
might
Dave Carrera mailto:[EMAIL PROTECTED]
on Monday, November 10, 2003 8:45 AM said:
$addamysqluser = mysql_query(grant
select,insert,drop,update,delete,create,index,alter on $_POST[f2] to
[EMAIL PROTECTED] IDENTIFIED by $_POST[f3]);
What is wrong with the above php based mysql_query ?
1.
--- Dave Carrera [EMAIL PROTECTED] wrote:
$addamysqluser = mysql_query(grant
select,insert,drop,update,delete,create,index,alter on $_POST[f2] to
[EMAIL PROTECTED] IDENTIFIED by $_POST[f3]);
What is wrong with the above php based mysql_query?
I'm not sure about the query itself, but it
-Original Message-
From: Dave Carrera [mailto:[EMAIL PROTECTED]
Sent: maandag 10 november 2003 17:45
To: [EMAIL PROTECTED]
Subject: [PHP] Whats wrong with this query?
$addamysqluser = mysql_query(grant
select,insert,drop,update,delete,create,index,alter on $_POST[f2] to
[EMAIL
Stevie D Peele wrote:
Can someone spot what Is wrong with my code?
[ trim ]
It says Line 195 which is the ?
Would it matter I don't have all of these files (i.e.
/includes/world.html) were uploaded yet?
Yes it would matter.
You need to use an editor that supports syntax highlighting.
Whenever
Sounds like you might have an open { somewhere, PHP can't tell that you
have a problem until it reaches the end of the file.
Jason
Burhan Khalid wrote:
Stevie D Peele wrote:
Can someone spot what Is wrong with my code?
[ trim ]
It says Line 195 which is the ?
Would it matter I don't have
Stevie --
You've already been beaten up about posting tons of code, so I won't add
to that (much, anyway; DON'T, and ABSOLUTELY DON'T 'TOFU' POST!). And
you've heard that you needed the ; on the last line and to correct your
occasional $includes problems, so that's done.
Yes, you should work on
Stevie D Peele wrote:
[snip]
case world:
$includes = /includes/world.html;
break;
}
include ($include)
?
It says Line 195 which is the ?
Would it matter I don't have all of these files (i.e.
/includes/world.html) were uploaded yet?
Yeah. You need a ; at the end of the line
no semicolon after include ($include)
hope that helps,
Craig
-Original Message-
From: Stevie D Peele [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Whats wrong with my code?
Can someone spot what Is wrong with my code?
?php
--- Stevie D Peele [EMAIL PROTECTED] wrote:
Can someone spot what Is wrong with my code?
It is about 200 lines of redundant crap and posted to a mailing list?
Please be considerate and try to narrow your code down to the smallest case
that demonstrates the problem. We are not here to debug your
Hi Stevie D Peele, you wrote:
Can someone spot what Is wrong with my code?
Please read your code carefully and check the
writing of your variable $include!
Sometimes you write $includes instead...
It has to have the same name everywhere,
PHP can't guess what you want ;-)
What is the certain
Your missing your default for your case switch statement
And you ; at the end of line on your last include statement..
-Dan
- Original Message -
From: Stevie D Peele [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 4:10 PM
Subject: [PHP] Whats wrong with my
Okay, I took all the extra spaces out of my code, So it is now 151 lines.
I have attached that code, instead of posting it in my mail. It says
Warning: Unable to access /includes/home.html in
/usr/local/psa/home/vhosts/net-riches.com/httpdocs/includes/category.php
on line 150Warning:
Stevie D Peele mailto:[EMAIL PROTECTED]
on Tuesday, September 16, 2003 4:08 PM said:
Okay, I took all the extra spaces out of my code, So it is now 151
lines.
I have attached that code, instead of posting it in my mail. It says
Attachments are even worse. I'll never open an attachment
--- Stevie D Peele [EMAIL PROTECTED] wrote:
Okay, I took all the extra spaces out of my code, So it is now
151 lines.
I appreciate you trying to trim down your code. However, it isn't the
whitespace that is superfluous. You now have 151 lines that are mostly
repeating the same basic assignment;
Hey,
Just touched it up a bit but its working:
title
?php
$senderemail = $_POST['from'];
print Thank You, $senderemail;
?
/title
This should come before:
$senderemail = $_POST['from'];
not after this:
print Thank You, $senderemail;
plus
I'm guessing that either your form is sending
Try this
title?echo Thank You, .$_POST['from']; ?/title
- Sid
On Sat, 13 Sep 2003 08:45:16 -0400, Stevie D Peele wrote:
Whats wrong with this
title?php echo Thank You, $senderemail; ?/title
where
$senderemail = $_POST['from'];
It doesnt It only echos thank you.
Why?
--
PHP
or even:
title?=(Thank you, $_POST[from])?/title
:P
- -Oorspronkelijk bericht-
- Van: Sid [mailto:[EMAIL PROTECTED]
- Verzonden: zondag 14 september 2003 3:43
- Aan: Stevie D Peele; [EMAIL PROTECTED]
- Onderwerp: Re: [PHP] Whats wrong?
-
-
- Try this
-
- title?echo Thank
you need to use == instead of =
== is used when comparing values (i.e. is this == to that)
= is used to set something's value (i.e. this = that)
-chip
-Original Message-
From: Chris Barnes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 11:12 AM
To: Php-General (E-mail)
A single = will assing a value, even inside an if statement
A double = (ie ==) will perform a comparison between 2 values, returning
true if they evaluate to the same value, false otherwise
A triple = (===) will do the same as ==, but also check that the types
of the 2 variables match.
Check
(1) for($day = 1; $day 32; $day++){
(2) if($day = $system_day){
(3) echo match!;
(4) }
.
.
.
Easy enough. One of those things the programmer may not spot, but a casual
observer might. In line #2, you have a single =. A comparative = is a double
equal (==). The line should
Yes, your problem is it doesn't work.
HTH,
---John Holmes...
PS: Think that's a worthless answer? Well...same for your question...
- Original Message -
From: Adrian Murphy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 03, 2002 8:47 AM
Subject: [PHP] whats wrong with
On Wednesday 03 July 2002 20:47, Adrian Murphy wrote:
whats wrong with this.
it's getting stuck somewhere
Stick in some echo statements at strategic points in the loops to find out
_where_ it is getting stuck.
function urls_clickable($string) {
for($n=0; $n strlen($string); $n++)
{
relax friend.i was just asking
- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Adrian Murphy [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, July 03, 2002 2:08 PM
Subject: Re: [PHP] whats wrong with this function
Yes, your problem is it doesn't work
On Wednesday, July 3, 2002, 1:47:05 PM, Adrian Murphy wrote:
whats wrong with this.
it's getting stuck somewhere
Somewhere isn't very helpful. When asking for help be sure to include as much
information as possilble.
Laying out your code so the structure can be seen...
?php
function
thnks,
i didn't write the function so i've now replaced it
with something better.
- Original Message -
From: Stuart Dallas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 03, 2002 2:30 PM
Subject: Re: [PHP] whats wrong with this function
On Wednesday, July 3, 2002, 1:47
Remove the quotes around $uid
Jeff
- Original Message -
From: Jeremy Morano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 11:09 AM
Subject: [PHP] whats wrong?
Anythig visibly wrong with this?
FORM METHOD=post ACTION=userinfolistbycompany2.php
INPUT
on 7/31/01 10:09 AM, Jeremy Morano at [EMAIL PROTECTED] wrote:
Anythig visibly wrong with this?
FORM METHOD=post ACTION=userinfolistbycompany2.php
INPUT TYPE=hidden name=uid value=? echo $uid; ?
The quotes around $uid are ending value prematurely. html thinks value is
? echo
Just drop
On 24-Jul-2001 Jeremy Morano wrote:
Whats wrong with this?
$sql = INSERT INTO $table_name
(uid,companyUid, first_name, last_name, address, state, zip_code, country,
company, occupation, telephone, fax, email, user_name, password)
SELECT
\\, \uid from companyTable WHERE company=
do you mean..
$message = $IP. $PORT. $SYSTEM . $PAGE;
. not ,
$message = $IP, $PORT, $SYSTEM, $PAGE;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
Hi all, Im getting mighty frustrated with this peice of code. It checks the
first condition no probs, but the second IF statement doesnt work. So it
will stop if it finds a du[plicate login, but cannot find duplicate
passwords. the $num_rows2 variable always gets the value '0' even when there
[EMAIL PROTECTED]
Cc: PHP General List [EMAIL PROTECTED]
Subject: Re: [PHP] Whats wrong with this code?
Hi all, Im getting mighty frustrated with this peice of code. It checks the
first condition no probs, but the second IF statement doesnt work. So it
will stop if it finds a du[plicate login
On Tue, 17 Jul 2001 12:37, Brad Wright wrote:
From: Rasmus Lerdorf [EMAIL PROTECTED]
Date: Mon, 16 Jul 2001 19:56:29 -0700 (PDT)
To: Brad Wright [EMAIL PROTECTED]
Cc: PHP General List [EMAIL PROTECTED]
Subject: Re: [PHP] Whats wrong with this code?
Hi all, Im getting mighty
Rasmus,
you are dead right, it is returning 0 rows. I checked that before
submiytting the original post. Sorry, i should have mentioned it. I guess
the question is, why is it returning no rows?
Uh, that is something we can't answer without having access to your actual
data.
-Rasmus
--
Wright [EMAIL PROTECTED], PHP General List
[EMAIL PROTECTED]
Subject: Re: [PHP] Whats wrong with this code?
On Tue, 17 Jul 2001 12:37, Brad Wright wrote:
From: Rasmus Lerdorf [EMAIL PROTECTED]
Date: Mon, 16 Jul 2001 19:56:29 -0700 (PDT)
To: Brad Wright [EMAIL PROTECTED]
Cc: PHP General List
The only data in the table (Login_TB) is one row:
Login = a, and Pass= password('a').
From: Rasmus Lerdorf [EMAIL PROTECTED]
Date: Mon, 16 Jul 2001 20:24:44 -0700 (PDT)
To: Brad Wright [EMAIL PROTECTED]
Cc: PHP General List [EMAIL PROTECTED]
Subject: Re: [PHP] Whats wrong with this code
47 matches
Mail list logo