russia5 Posted August 6, 2006 Share Posted August 6, 2006 I have form that is filled via MySQL and used for editing profiles on my site. I moved the form to a lower level folder and I am getting these connection errors. [b]Beggining of errors reported[/b][b]Warning: [/b] main(config.ini.php): failed to open stream: No such file or directory in [b]/home/russia5/public_html/member/admin/Profile_Edit.php [/b] on line [b]3[/b][b]Warning:[/b] main(): Failed opening 'config.ini.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [b]/home/russia5/public_html/member/admin/Profile_Edit.php [/b] on line [b]3[/b][b]Warning:[/b] mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in [b]/home/russia5/public_html/member/admin/Profile_Edit.php [/b] on line [b]47[/b] [b]End of Errors Reported [/b] Note: config.ini.php is on my site, but is not used as the configuration file for this form.[b]The form code is as follows:[/b]<?php [b]//This is line three of the errror report[/b]include_once ("/home/myaccount/public_html/xyzconfig.php");// actionsswitch ($_GET['action']) { case 'delete': [b]Now, skipping down the page for Error 47[/b] $query = 'INSERT INTO Profile_approval ('.implode(',', $fields).') VALUES ('.implode(',',$values).')'; $res = @mysql_query($query); echo mysql_error(); if ($res) { $query = 'DELETE FROM Profile_hold WHERE sid = '.$_GET['id']; @mysql_query($query); }[b]//This is line 47 of the error report[/b] break; case 'deliver': $query = 'SELECT * FROM Profile_approval'; $recordsToMove = mysql_query($query); while ($recordToMove = mysql_fetch_assoc($recordsToMove)) { $fields = $values = $images = array(); if ($recordToMove) foreach ($recordToMove as $field=>$value)Thanks php people... I appreciate any time and help you can give me... Link to comment https://forums.phpfreaks.com/topic/16706-connection-problem/ Share on other sites More sharing options...
shocker-z Posted August 6, 2006 Share Posted August 6, 2006 You MUST be calling config.ini.php up somewhere! else it wouldn't show.. have you tryed F5 to refresh page incase it is cached?RegardsLiam Link to comment https://forums.phpfreaks.com/topic/16706-connection-problem/#findComment-70201 Share on other sites More sharing options...
russia5 Posted August 6, 2006 Author Share Posted August 6, 2006 Yesss... Thankyou again... It wasn't the refresh... but the config.ini.php file was inserted in the file. I think the problem is with my editor. I think it is not sa ing like it should. So, I kept FTPing the old file up. Thanks again... Link to comment https://forums.phpfreaks.com/topic/16706-connection-problem/#findComment-70335 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.