Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 31st, 2004, 09:43 PM
Authorized User
 
Join Date: Apr 2004
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to junemo
Default

Hi Snib,
Can you point out where i missing the semi-colon?
I follow you advise to change the code but it nothing different, still have error.

If i success login, it displays 1 more error:
Notice: Undefined variable: show_form in C:\Inetpub\wwwroot\inv\login.php on line 84.

Pls help me..........
Thanks in advance.










 
Old May 31st, 2004, 10:18 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hello Molly,

I apologize: there are no missing semi-colons. I read your code incorrectly.

Looking into the rest of it.... :)

Snib

<><
 
Old May 31st, 2004, 10:45 PM
Authorized User
 
Join Date: Apr 2004
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to junemo
Default

Hi Snib,
Ok, then what is the problem?
Before it, I run it at old browser http:192.168.0.5, it can fully function. Later i want the system run at new browser 192.168.0.9, I have install the PHP4 and IIS 5.0, follow the same step but when i run it, hoooo many error display!!
At browser 192.168.0.5, i have install Apache web server later change to IIS. So, have connection about it?
I mean my coding it not have problem right?So, it software installation problem?
But i have install, uninstall many time and phpinfo.php can display so not problem!

Please give me some advise.
Thanks in advances,
molly.

 
Old June 1st, 2004, 04:37 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Out of curiosity, what version of PHP4 are you using? This may help me solve your problem.

Snib

<><
 
Old June 2nd, 2004, 01:44 AM
Authorized User
 
Join Date: Apr 2004
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to junemo
Default

Snib,
Thanks for reply me.
I use PHP 4.3.4.

Another problem is when I run the system, it always getting error:
Notice: Undefined index: op in line......
Notice: Udefined variable: valid in line............

Thanks in advance. :-)





 
Old June 3rd, 2004, 01:07 AM
Authorized User
 
Join Date: Apr 2004
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to junemo
Default

Hi,
I find the solution to solve this problem.
Anyway, thanks.

molly :-)

 
Old December 26th, 2007, 03:42 AM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to syedferhat
Default

Hi

I do turned on register_globals=On in php.ini but still got same error
"[26-Dec-2007 12:37:20] PHP Notice: Undefined variable: uname in E:\Inetpub\wwwroot\Intranet\DataAccess.php on line 96"

Although i checked again all the variable name on both page. Can u plz let me know whats the problem and how to resolve the codes
Please also answer me on my this email id too [email protected]

following are the codes to retrieve the value on action ( Form target)page

/* Calling a function
Enter_New_Entry($uname,$pwd,$dept);


/* Function to retrive value and put into the database
function Enter_New_Entry($uname,$pwd,$dept) {

    /*
        First, we create a connection to our ODBC source. This is done by creating
        a connection. Once this is done, we are returned an ODBC connection number.
        We use this number to use the ODBC functions within PHP.
    */

    $cnx = odbc_connect('intranet','','');
    if (!$cnx) {
        Error_handler( "Error in odbc_connect" , $cnx );
    }
    $SQL_Exec_String = "Insert Into Users2 (uname, pwd, dept)
            Values ('$uname', '$pwd', '$dept')";
    $cur= odbc_exec( $cnx, $SQL_Exec_String );
    if (!$cur) {
        Error_handler( "Error in odbc_exec( no cursor returned ) " , $cnx );
    }

    odbc_close( $cnx);
}







Similar Threads
Thread Thread Starter Forum Replies Last Post
Object variable or With block variable not set haidee_mccaffrey Classic ASP Professional 5 March 8th, 2007 03:34 PM
ASSIGNING A JAVA SCRIPT VARIABLE TO A XSL VARIABLE SOMANATHAN10 XSLT 1 February 21st, 2007 04:26 AM
object variable or with block variable not set Aoude BOOK: Beginning VB.NET Databases 1 February 24th, 2006 05:21 PM
Object variable or With block variable not set tparrish Pro VB Databases 1 May 25th, 2005 02:08 PM
Object variable or with block variable not set spacy ASP.NET 1.x and 2.0 Application Design 0 September 21st, 2004 12:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.