Old 09-22-2007   #1 (permalink)
Registered User
 
Join Date: Sep 2007
Posts: 9

Issues with the Complete Membership Tutorial

Hello,
I am using the complete membership tutorial on my site.
And am getting two specific issues.
I have also already looked over the forum for these issues.
The first issue i get is:
Warning: Cannot modify header information - headers already sent by (output started at /home/******/beta/user/includes/config.php:9) in /home/******/beta/user/login.php on line 27

My config.php file:
PHP Code:
<?php
// config.php for system    
$host "******"// default
$user "******"// mysql username
$pass "******"// mysql password
$db "******"//mysql database
@mysql_connect($host,$user,$pass) or die("Could not connect to MySQL<br />".mysql_error());
@
mysql_select_db($db) or die("Could not connect to MySQL database $db");
?>
My second issue is this error:
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/******/beta/user/login.php on line 103

Line 103 is as follows:

PHP Code:
<? mysql_close($l); ?>
Login.php does already start out as follows:
<?php
session_start();


Any suggestions to resolve this would be appreciated alot, thanks.
alteredillusion is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-23-2007   #2 (permalink)
Registered User
 
Join Date: Sep 2007
Posts: 9

Ok i did get the error for the login.php issue resolved.
The error <? } mysql_close($l); ?> was changed to mysql_close();

But i am still getting the other error:
Warning: Cannot modify header information - headers already sent by (output started at /home/******/user/includes/config.php:9) in /home/******/user/login.php on line 27
alteredillusion is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-23-2007   #3 (permalink)
Registered User
 
Join Date: Sep 2007
Posts: 9

Ok got the other issue resolved.
And for those wanting a working config.php file here is the following:

Quote:
<?php

$mysql_host = "HOST";

$mysql_user = "MYSQL USER";

$mysql_pass = "MYSQL USER PASSWORD ";

$mysql_data = "MYSQL DATABASE ";

$mysql_table = "tutorials"; // Feel free to change this to your liking...


/* --Working some magic-- */
mysql_connect($mysql_host,$mysql_user,$mysql_pass) or
die("Error connecting to Database! Please Try again.
" . mysql_error());
mysql_select_db($mysql_data) or die("Cannot select database! Please Try again.
" . mysql_error());
// ---------------------- //
?
alteredillusion is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-23-2007   #4 (permalink)
PHP Lover
 
Join Date: May 2007
Location: Zug, Switzerland
Posts: 91

Do you have everything working now?
Gjbphp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-23-2007   #5 (permalink)
Registered User
 
Join Date: Sep 2007
Posts: 9

Yes, thanks, i found my information thanks to google :P
alteredillusion is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ: A Complete Membership System scrowler BioRUST Specific Threads 13 01-19-2007 12:16 AM
Complete Membership Tutorial Error Melissa HTML / PHP / ASP / JS 4 12-02-2005 12:40 AM
A Complete Membership System tutorial stingerblue HTML / PHP / ASP / JS 2 05-18-2005 05:19 AM
Help with Membership Tutorial joemikecox HTML / PHP / ASP / JS 4 02-23-2005 10:39 PM


All times are GMT +1. The time now is 05:59 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT