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

[PHP] whats wrong in this program.

2005-09-13 Thread babu
$str=10,12,14-18; $tok = strtok($str, ','); while ($tok !== false) { $toks[] = $tok; $tok = strtok(','); } foreach ($toks as $token){ if (strpos($token,'-')){ stringtokenize($token); }else{ $finaltokens[]= $token; } } function stringtokenize($nstr){ $ntok1= strtok($nstr,'-');

[PHP] Whats wrong with this statement.

2003-12-13 Thread Philip J. Newman
http://www.philipnz.com/";; $websiteEmail="[EMAIL PROTECTED]"; // CHECK TO SEE IF DATA MATCHS WHATS IN THE DATABASE. $sql = "SELECT hUrl,hContactEmail FROM hyperlinks_data"; $sql_result = mysql_query($sql, $connection) or die ("Could not get Query"); $exists_hUrl = "0"; $exists_hContactEma

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

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

[PHP] Whats wrong with this query?

2003-11-10 Thread Dave Carrera
$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 am trying to add a user to mysql granting just the specified rights to table defined by the

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
; -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 code?> > > > Can someone spot what Is wrong wi

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 Subj

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 wi

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

[PHP] Whats wrong with my code?

2003-09-16 Thread Stevie D Peele
Can someone spot what Is wrong with my code? 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? Thanks, Stevie

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
OTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 13, 2003 2:45 PM Subject: [PHP] Whats wrong? > 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.net/unsub.php

[PHP] Whats wrong?

2003-09-13 Thread Stevie D Peele
Whats wrong with this where $senderemail = $_POST['from']; It doesnt It only echos thank you. Why?

RE: [PHP] whats wrong with this?

2002-08-28 Thread Richard Black
[mailto:[EMAIL PROTECTED]] Sent: 28 August 2002 17:12 To: Php-General (E-mail) Subject: [PHP] whats wrong with this? I just cant seem to work out why this doesn't work. My PHP book doesn't explain "if" statements very well so i have no idea if i am breaking a rule. $system_d

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
ECTED]] Sent: Wednesday, August 28, 2002 11:12 AM To: Php-General (E-mail) Subject: [PHP] whats wrong with this? I just cant seem to work out why this doesn't work. My PHP book doesn't explain "if" statements very well so i have no idea if i am breaking a rule. $sys

[PHP] whats wrong with this?

2002-08-28 Thread Chris Barnes
I just cant seem to work out why this doesn't work. My PHP book doesn't explain "if" statements very well so i have no idea if i am breaking a rule. $system_day = date("j"); for($day = 1; $day < 32; $day++){ if($day = $system_day){ echo "match!"; } else{

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:

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++) > {

[PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
whats wrong with this. it's getting stuck somewhere function urls_clickable($string) { for($n=0; $n < strlen($string); $n++) { if(strtolower($string[$n]) == 'h') { if(!strcmp("http://";, strtolower($string[$n]) . strtolower($string[$n+1]) . strtolower($string[$n+2]) . strtolower($string[$

[PHP] Whats wrong with getimagesize ??

2002-03-19 Thread andy
Hi guys, I am really stuck with this prob. Anyhow php can't read imagefiles after password protecting the site with htaccess. The file exists, the application works (after deleting the htaccess function), the path is ok. copy and pasting the url into the browserwindow returns the image. So whats

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] whats wrong?

2001-07-31 Thread Jeremy Morano
Anythig visibly wrong with this? "> -- 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: [EMAIL PROTECTED]

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

[PHP] whats wrong

2001-07-24 Thread Jeremy Morano
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= "Itsolutions"\, \"$first_name\",\"$last_name\",\"

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:

[PHP] Whats wrong with this code?

2001-07-22 Thread Kyle Smith
$message = $IP, $PORT, $SYSTEM, $PAGE; what should i change in the $message code so that it contains the words assigned to the variables? -legokiller666- http://www.StupeedStudios.f2s.com New address new site ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

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

[PHP] Whats wrong with this code?

2001-07-16 Thread Brad Wright
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 is a

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 c

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? Eve

[PHP] Whats wrong with the following code?

2001-01-11 Thread Web master
Hello, Could any tell me whats wrong with the following code? Even though I have more than 10 tables in the database, it is not showing any numbers. $id_link = @mysql_connect('localhost',$uid,$pwd); $result=@mysql_db_query($db,$id_link,"show tables"); $num_of_rows=@mysql_num_rows($result); ech