Jump to content


Connection Problem

  • Please log in to reply
2 replies to this topic

#1 russia5

  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 06 August 2006 - 01:50 PM

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.

                                Beggining of errors reported

Warning: main(config.ini.php): failed to open stream: No such file or directory in /home/russia5/public_html/member/admin/Profile_Edit.php on line 3

Warning: main(): Failed opening 'config.ini.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/russia5/public_html/member/admin/Profile_Edit.php on line 3

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/russia5/public_html/member/admin/Profile_Edit.php on line 47

                                End of Errors Reported

Note:  config.ini.php is on my site, but is not used as the configuration file for this form.

The form code is as follows:

//This is line three of the errror report
include_once ("/home/myaccount/public_html/xyzconfig.php");

// actions
switch ($_GET['action']) {
case 'delete':

                          Now, skipping down the page for Error 47

$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'];
//This is line 47 of the error report

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...

#2 shocker-z

  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 06 August 2006 - 01:58 PM

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?

www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 russia5

  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 06 August 2006 - 07:13 PM

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...

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users