[email protected] Posted September 26, 2006 Share Posted September 26, 2006 1. Undefined variable: on line 41 ([color=red]if ( $signin != "" ) {[/color] )2. Undefined variable: on line 75 ([color=red]mysql_close($link); {[/color] )3. mysql_close(): supplied argument is not a valid MySQL-Link resource on line 754. Undefined variable: on line 77 ([color=red]if ( $adminsignin != "" ) {[/color] )5. Undefined variable: on line 105 ([color=red]mysql_close($link); {[/color] )6. mysql_close(): supplied argument is not a valid MySQL-Link resource on line 105I'm running on EasyPHP 1.8.0.1; with Apache 1.3.33; PHP 4.3.10; MySQL 4.1.9. Pls I need your kind advise.i have the code in PDF format, pls help me[attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/22115-php-error-i-need-help-pls-im-new-to-php/ Share on other sites More sharing options...
ToonMariner Posted September 26, 2006 Share Posted September 26, 2006 helping... Quote Link to comment https://forums.phpfreaks.com/topic/22115-php-error-i-need-help-pls-im-new-to-php/#findComment-98982 Share on other sites More sharing options...
Tandem Posted September 26, 2006 Share Posted September 26, 2006 Post the error and your code, nobody can help you when nobody knows the problem. Quote Link to comment https://forums.phpfreaks.com/topic/22115-php-error-i-need-help-pls-im-new-to-php/#findComment-98985 Share on other sites More sharing options...
steveclondon Posted September 26, 2006 Share Posted September 26, 2006 $qry =mysql_query("SELECT * FROM `staff` WHERE `clue` > 0") or die(msyql_error());echo mysql_num_rows($qry);This should help you get the mysql error Quote Link to comment https://forums.phpfreaks.com/topic/22115-php-error-i-need-help-pls-im-new-to-php/#findComment-98991 Share on other sites More sharing options...
[email protected] Posted September 27, 2006 Author Share Posted September 27, 2006 [code]<?phpif ( $signin != "" ) {// Make a MySQL Connection$link = mysql_connect($host, $user, $password) or die(mysql_error());;mysql_select_db("myfirstphp_uk_db") or die(mysql_error());mysql_close($link);?>[/code][code]<tr><td width="100%" align="center"><input type="submit" value="Sign In"name="signin" tabindex="3"><input type="reset" value="Reset" name="B2"></td></tr></form><tr><td width="100%"> </td></tr>[/code]why i can't use the variable 'signin'? It shows it's an undefine variable. Pls anyone can spot the mistake. Quote Link to comment https://forums.phpfreaks.com/topic/22115-php-error-i-need-help-pls-im-new-to-php/#findComment-99509 Share on other sites More sharing options...
wildteen88 Posted September 27, 2006 Share Posted September 27, 2006 Where does $signin variable come from?Prehaps use this instead:[code=php:0]if (isset($signin) && !empty($signin)) {[/code] Quote Link to comment https://forums.phpfreaks.com/topic/22115-php-error-i-need-help-pls-im-new-to-php/#findComment-99530 Share on other sites More sharing options...
[email protected] Posted September 27, 2006 Author Share Posted September 27, 2006 [quote author=wildteen88 link=topic=109557.msg442315#msg442315 date=1159356494]Where does $signin variable come from?Prehaps use this instead:[code=php:0]if (isset($signin) && !empty($signin)) {[/code][/quote]Thanks wildteen88, you are great! a million thanks. It really works once I changed the code. Quote Link to comment https://forums.phpfreaks.com/topic/22115-php-error-i-need-help-pls-im-new-to-php/#findComment-99537 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.