Re: [PHP] whats wrong

2012-04-01 Thread tamouse mailing lists
On Sat, Mar 31, 2012 at 6:36 AM, Maciek Sokolewicz wrote: > On 31-03-2012 10:29, tamouse mailing lists wrote: >> >> On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmed >>  wrote: >>> >>> i have made a php script with a tutorial helpi dont know where is a >>> error.please have a look >> >> >> Before y

Re: [PHP] whats wrong

2012-03-31 Thread Maciek Sokolewicz
On 31-03-2012 10:29, tamouse mailing lists wrote: On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmed 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

Re: [PHP] whats wrong

2012-03-31 Thread tamouse mailing lists
On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmed 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 unixy systems) on a c

Re: [PHP] whats wrong

2012-03-31 Thread Duken Marga
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 wrote: > i have made a php script with a tutorial helpi dont know where is a > error.please ha

Re: [PHP] whats wrong

2012-03-31 Thread Tommy Pham
On Fri, Mar 30, 2012 at 11:45 PM, saeed ahmed 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 related are properly conf

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Jordan Miller
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 php

Re: [PHP] whats wrong in this program.

2005-09-14 Thread John Nichel
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!). It's not needed if those fields are integers. *damnit, that's twice today I've replied to the poster and no

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Jordan Miller
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: http://www.php.net/m

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Mark Rees
> 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) > VA

Re: [PHP] whats wrong in this program.

2005-09-14 Thread babu
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)

Re: [PHP] whats wrong in this program.

2005-09-13 Thread Jordan Miller
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 try

RE: [PHP] Whats wrong with this query?

2003-11-10 Thread Wouter van Vliet
> -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 >

Re: [PHP] Whats wrong with this query?

2003-11-10 Thread Chris Shiflett
--- 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

RE: [PHP] Whats wrong with this query?

2003-11-10 Thread Chris W. Parker
Dave Carrera 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_quer

Re: [PHP] Whats wrong with this query?

2003-11-10 Thread Raditha Dissanayake
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 have

Re: [PHP] Whats wrong with my code?

2003-09-20 Thread Jason Sheets
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

Re: [PHP] Whats wrong with my code?

2003-09-20 Thread Burhan Khalid
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

Re: [PHP] Whats wrong with my code?

2003-09-17 Thread David T-G
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

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Chris Shiflett
--- 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 assignme

RE: [PHP] Whats wrong with my code?

2003-09-16 Thread Chris W. Parker
Stevie D Peele 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 attach

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Stevie D Peele
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:

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Dan J. Rychlik
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

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Matthias Nothhaft
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 error

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Chris Shiflett
--- 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 yo

RE: [PHP] Whats wrong with my code?

2003-09-16 Thread Craig Lonsbury
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?

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Brad Pauly
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

RE: [PHP] Whats wrong?

2003-09-13 Thread esctoday.com | Wouter van Vliet
or even: :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 -> -> -> -> -

Re: [PHP] Whats wrong?

2003-09-13 Thread Sid
Try this - Sid On Sat, 13 Sep 2003 08:45:16 -0400, Stevie D Peele wrote: > Whats wrong with this > > >  > > > where > > > $senderemail = $_POST['from']; > > > It doesnt It only echos thank you. > > > Why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] Whats wrong?

2003-09-13 Thread Ryan A
Hey, Just touched it up a bit but its working: This should come before: $senderemail = $_POST['from']; not after this: print "Thank You, $senderemail"; plus I'm guessing that either your form is sending $senderemail or that you are getting via a $_GET you have to post $from not $senderema

RE: [PHP] whats wrong with this?

2002-08-28 Thread Richard Black
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 ou

RE: [PHP] whats wrong with this?

2002-08-28 Thread Liam . Gibbs
(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

RE: [PHP] whats wrong with this?

2002-08-28 Thread Hankley, Chip
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 (

Re: [PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
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 functio

Re: [PHP] whats wrong with this function

2002-07-03 Thread Stuart Dallas
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... http://";, strtol

Re: [PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
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 functi

Re: [PHP] whats wrong with this function

2002-07-03 Thread 1LT John W. Holmes
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 wit

Re: [PHP] whats wrong with this function

2002-07-03 Thread Jason Wong
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++) > {

Re: [PHP] whats wrong?

2001-07-31 Thread Matt Greer
on 7/31/01 10:09 AM, Jeremy Morano at [EMAIL PROTECTED] wrote: > Anythig visibly wrong with this? > > > > "> The quotes around $uid are ending value prematurely. html thinks value is "http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [PHP] whats wrong?

2001-07-31 Thread Jeff Lewis
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? > > > > "> > > -- > PHP General Mailing List (http://www.p

RE: [PHP] whats wrong

2001-07-24 Thread Don Read
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 compa

Re: [PHP] Whats wrong with this code?

2001-07-22 Thread Tom Carter
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, e-mail:

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Brad Wright
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]&g

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Brad Wright
2:53:57 +0930 > To: Brad 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, 1

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Rasmus Lerdorf
> 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 --

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread David Robley
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]

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Brad Wright
) > To: Brad Wright <[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 state

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Rasmus Lerdorf
> 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 th

Re: [PHP] Whats wrong with the following code?

2001-01-11 Thread Web master
Thank you and sorry for this stupid mistake Hsieh, Wen-Yang wrote: > - Original Message - > From: "Web master" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, January 11, 2001 2:36 PM > Subject: [PHP] Whats wrong with the following code? > > >> Hello, >> >> Could any

Re: [PHP] Whats wrong with the following code?

2001-01-11 Thread Hsieh, Wen-Yang
- Original Message - From: "Web master" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 11, 2001 2:36 PM Subject: [PHP] Whats wrong with the following code? > Hello, > > Could any tell me whats wrong with the following code? Even though I > have more than 10 table