Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #81 from Maks3w/patch-1

Typo
  • Loading branch information...
commit adfae422ecd0ae440fc92ff3ce0692911d9f99fb 2 parents 966023c + 85f3625
@dragoonis dragoonis authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  accepted/PSR-3-logger-interface.md
View
2  accepted/PSR-3-logger-interface.md
@@ -133,7 +133,7 @@ Users of loggers are refered to as `user`.
----------
The interfaces and classes described as well as relevant exception classes
-and a test suite to verify your implementation are provided as part of the
+and a test suite to verify your implementation is provided as part of the
[psr/log](https://packagist.org/packages/psr/log) package.
3. `Psr\Log\LoggerInterface`

What do you mean? Is that an answer to my question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 comments on commit adfae42

@LindaMann

Hello there;

I have created a profile page and it all works perfectly, except it is suppose to generate each participants weight to them and instead it generates the first person's weight in the database to everyone. What am I forgetting? I have been playing with it and playing with it to try and figure out the code and cannot... I need to fix this now... Can anyone please help me?
Here is the code:

<?PHP
session_start();
require_once("./include/membersite_config.php");
$usernames = array("user1", "user2", "user3", "admin", "new user");
$passwords = array("password1", "password2", "password3", "admin", "new password");
$page = "protected_page.php";
$page_title = 'login';
$page_title = 'login-home';
$page_title = 'logout';
for($i=0;$i {
$logindata[$usernames[$i]]=$passwords[$i];
}
if(!$fgmembersite->CheckLogin())
{
$fgmembersite->RedirectToURL("profile.php");
exit;
}

// Connect to the database
$dbc = mysql_connect('jaeger.db.8498764.hostedresource.com', 'jaeger', 'Activate1!', 'jaeger');
mysql_select_db('jaeger');

//database connect info here

//check for file upload
if(isset($_FILES['csv_file']) && is_uploaded_file($_FILES['csv_file']['tmp_name'])){

//upload directory
$upload_dir = "uploads/";

//create file name
$file_path = $upload_dir . $_FILES['csv_file']['name'];

//move uploaded file to upload dir
if (!move_uploaded_file($_FILES['csv_file']['tmp_name'], $file_path)) {

    //error moving upload file
    echo "Error moving file upload";

}

//open the csv file for reading
$handle = fopen($file_path, 'r');

//turn off autocommit and delete the product table
mysql_query("SET AUTOCOMMIT=0");
mysql_query("BEGIN");
$i=0;

while (($data = fgetcsv($handle, 1000, ',')) !== FALSE) {

    if($i>0){

    //Access field data in $data array ex.
    $firstname = addslashes($data[2]);
    $lastname = addslashes($data[3]);
    $email = addslashes($data[4]);
    $teams = addslashes($data[5]);
    $address = addslashes($data[6]);
    $city = addslashes($data[7]);
    $state = addslashes($data[8]);
    $zipcode = addslashes($data[9]);
    $phonenumber = addslashes($data[10]);
    $username = addslashes($data[11]);
    $password = addslashes($data[12]);

    $sql = "INSERT into groups(first_name,last_name,email,radio_name, address, city, state, zipcode, phonenumber, username, password, confirmcode) VALUES('$firstname','$lastname','$email','$teams','$address','$city','$state','$zipcode','$phonenumber','$username','$password','y')";
    mysql_query($sql) or (mysql_query("ROLLBACK") and die(mysql_error() . " - $sql"));

    }
            $i++;
}

//commit the data to the database
mysql_query("COMMIT");
mysql_query("SET AUTOCOMMIT=1");

//delete csv file
unlink($file_path);

}

$pagenum = $_GET["pagenum"];
if (!(isset($pagenum)))

{

$pagenum = 1;

}

$query = "SELECT g.id,first_name,last_name,username,p.weight1,p.weight2,p.weight3,p.weight4,p.weight5,p.weight6,p.weight7,p.weight8 FROM groups g left join profile p on g.id=p.group_id order by first_name asc";
$data = mysql_query($query,$dbc) or die(mysql_error());
$rows = mysql_num_rows($data);
$page_rows = 1;
$last = ceil($rows/$page_rows);
if ($pagenum < 1)
{
$pagenum = 1;
}
if($_SESSION['is_admin']=='1'){
}

elseif ($pagenum > $last)
{
$pagenum = $last;
}
$max = ' limit ' .($pagenum - 1) * $page_rows .',' .$page_rows;
$query=$query. $max;
$data_p = $data = mysql_query($query,$dbc) or die(mysql_error());
?>
<!DOCTYPE>



Activate Simi Valley - Home



group class group walks swimming vegetables


<!-- end .sidebar1 -->



Activate Simi Valley

Activate Simi Valley


Our Mission:  To support healthy living in Simi Valley





Welcome <?php echo $_SESSION['name_of_user']; ?> to your personal profile




This is where you can periodically check on your progress.


Healthy Living Guide




Weigh-In Log



"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } ?>
Weight1 Weight2 Weight3 Weight4 Weight5 Weight6 Weight7 Weight8
". $row["weight1"] ."  ". $row["weight2"] ."  ". $row["weight3"] ."  ". $row["weight4"] ."  ". $row["weight5"] ."  ". $row["weight6"] ."  ". $row["weight7"] ."  ". $row["weight8"] ." 



Logout|  Profile | Users | Add User | Upload Users | User Weight Profiles 




<?PHP

mysql_close($dbc);
?>

Facebook Twitter

Email: YMCA Sponsored by the: Simi Valley YMCA Simi Valley YMCA

Frequently Asked Questions (FAQ)
Web Designer: Linda Designs

Back to the top
<!-- end .content --></div>

<!-- end .container -->


@AmyStephen

Hi Linda -

You are posting in the wrong place. You are responding to a patch that a developer made to correct the wording in a help file. The repository that you have posted in is for a PHP standards body.

This is not a place to get help building websites.

Where did you intend to post? Who are you trying to get help from? Maybe I can help you find those people/that project.

@LindaMann

I am so sorry for posting in the incorrect place, but I am desperate now... I can't figure out where my mistake is and I was hoping that someone from here could tell me or help out with it... Can you please help me?

@AmyStephen

@LindaMann

No problem. But, this is not the right place for support questions. And, unfortunately, I am not able to help.

Probably the best thing to do is to use Google to search for a support forum that provides assistance for the type of software you are using.

You might want to delete that first post. I believe you have posted a URL to your site and credentials. If that is the case, remove the post right away.

Good luck, Linda, I'm certain you'll figure it out.

Please sign in to comment.
Something went wrong with that request. Please try again.