Jump to content

CripDawg

Member
  • Posts

    135
  • Joined

  • Last visited

Awards

This user doesn't have any awards

2 Followers

About CripDawg

  • Birthday May 04, 1997

Profile Information

  • Gender
    Male
  • Location
    Australia

System

  • CPU
    AMD 8350 (4.00Ghz)
  • Motherboard
    ASUS M5A97 R2.0
  • RAM
    G.Skill Sniper 8GB DDR3
  • GPU
    XFX R9 280X 3GB
  • Case
    Corsair 300R
  • Storage
    120GB 840 EVO 1TB Seagate Barracuda
  • PSU
    600W Strider Silverstone
  • Display(s)
    23" HP Monitor, 32" Samsung TV
  • Cooling
    Noctua NH-U14S
  • Keyboard
    Thermaltake Ultimate Challenger
  • Operating System
    Windows 7 64-bit
  1. Thanks for the reply the same issue occurs after setting the memory multiplier to 32.0 in the bios
  2. Hi guys, I have just recently built my pc with the following specs: AMD 5950X Aorus 3090 Master Aorus X570 Pro Wifi Corsair AX850 Corsair Vengeance 3600mhz 2x32GB 64GB And despite updating to the latest drivers and bios I continue to get WHEA uncorrectable errors and event viewer shows something like reported by:processor core error type: bus interconnect error I have read many reports on this forum and others of people having similar issues it seems to be a bit more stable with the last few bios updates currently running bios F31q I just want to get a few thoughts on wether I should RMA the cpu as it could take a very long time for a replacement to arrive as there are global supply issues and I’m in Australia. this error used to happen when I’d alt tab out of games (no longer happens) it now happens from anywhere between 1-6 hours of gaming other then this error the pc Is a beast and plays like a dream hence why I’m considering holding off on a RMA request until the supply situation improves. thanks for any guidance or assistance you guys can give.
  3. Cheers for the advice I'll probably just go with whatever replaces the 3950X then, I will also be using this PC for VM's on occasion so the extra cores will be helpful... Correct me if I'm wrong?
  4. Hi Guys, I've decided I will be building a PC in the coming months, I will be waiting for the 3080 Ti. Not to sure whether to wait for the Ryzen 4000 or get a 3950X. Recently I've seen the news that the Ryzen 4000's will only be available in prebuilt systems, not to sure if this means they will be waiting to release the high end flagship models later on? Question is should I wait if the 4000 series flagships are not released around the same time as the 3080 Ti, or should i just buy a 3950X instead?. Thanks for the advice in advance. :)
  5. after my computer was turned off by being pulled out from the power point I'm getting this error 0xc000000f the boot selection because a required device is inaccessible i tried going into the BIOS and was unsuccessful Windows 7 on a 120gb 840 EVO SSD the rest of the specs can be found on my forum profile
  6. i need help doing a structure chart for my webpage witch consists of a login and shopping cart system i have attempted to make one but my teacher says that it needs to be less like a flowchart and i am also wondering whats some good software besides Microsoft word because it doesn't have the type of arrows used to represent the flow of data. Any help or advice is appreciated
  7. where about in my code would i put that also i would prefer something that goes along with the code in the tutorial so i continue it because I'm almost finished it
  8. when i click the logout button nothing happens where it should delete the session and then redirect to index.php witch should the echo 'you need to login or register' but nothing happens
  9. but I've gone so far with this and it seems to be exactly what i need so i would see it as a big waste of time if i was to start again
  10. could you maybe direct some people who might be able to help to this post please?
  11. how do i do that and do you have any idea how to fix my problem
  12. my login and register pages are working fine just a logout button that isn't working I'm watching a oop tutorial on youtube and I'm unto this part I've tried some debugging that other forms have said i should do like the error log line but still no result sorry for attaching so much code but i feel that its necessary because their are a fair amount of methods that relate to the logout and some of them are on different files User.php <?phpclass User {private $_db,$_data,$_sessionName,$_isLoggedIn; public function __construct($user = null) {$this->_db = DB::getInstance(); $this->_sessionName = Config::get('session/session_name'); error_log("session name: ".$this->_sessionName); if(!$user) {if(Session::exists($this->_sessionName)) {$user = Session::get($this->_sessionName); if($this->find($user)) {$this->_isLoggedIn = true;} else {//process logout}}} else {$this->find($user);}} public function create($fields = array()) {if (!$this->_db->insert('users', $fields)) {throw new Exception('there was a problem creating your account');}} public function find($user = null) {if($user) {$field = (is_numeric($user)) ? 'id' : 'username';$data = $this->_db->get('users', array($field, '=', $user)); if($data->count()) {$this->_data = $data->first();return true;}}return false;} public function login($username = null, $password = null){$user = $this->find($username); if($user) {if($this->data()->password === Hash::make($password, $this->data()->salt)) {Session::put($this->_sessionName, $this->data()->id);return true;}} return false;} public function logout() {Session::delete($this->_sessionName);} public function data() {return $this->_data;} public function isLoggedIn() {return $this->_isLoggedIn;}} index.php <?phprequire_once 'core/init.php'; if(Session::exists('home')) {'<p>' . Session::flash('home') . '</p>';} $user = new User();if($user->isLoggedIn()) {?><p>Hello <a href="#"><?php echo escape($user->data()->username); ?> </a></p> <ul><li><a href="logout.php">Log out</a></li></ul> <?php} else {echo '<p>You need to <a href="login.php">Log In</a> or <a href="register.php">Register</a></p>';} DB.php <?phpclass DB {private static $_instance = null;private $_pdo,$_query, $_error = false, $_results, $_count = 0; private function __construct() {try {$this->_pdo = new PDO('mysql:host=' . Config::get('mysql/host') . ';dbname=' . Config::get('mysql/db'), Config::get('mysql/username'), Config::get('mysql/password'));} catch(PDOException $e) {die($e->getMessage());}} public static function getInstance() {if(!isset(self:_instance)) {self:_instance = new DB();}return self:_instance;} public function query($sql, $params = array()) {$this->_error = false;if($this->_query = $this->_pdo->prepare($sql)) {$x = 1; if(count($params)) { foreach($params as $param) { $this->_query->bindValue($x, $param); $x++; } } if($this->_query->execute()) { $this->_results = $this->_query->fetchALL(PDO::FETCH_OBJ); $this->_count = $this->_query->rowCount(); } else { $this->_error = true; }} return $this;} public function action($action, $table, $where = array()){if(count($where)=== 3) {$operators = array('=', '>', '<', '>=', '<='); $field = $where[0];$operator = $where[1];$value = $where[2]; if(in_array($operator, $operators)) {$sql = "{$action} FROM {$table} WHERE {$field} {$operator} ?"; if(!$this->query($sql, array($value))->error()) {return $this;} }} return false; } public function get($table, $where) {return $this->action('SELECT *', $table, $where);} public function delete($table, $where) {return $this->action('DELETE', $table, $where);} public function insert($table, $fields = array()) {$keys = array_keys($fields);$values = '';$x = 1; foreach($fields as $field) {$values .= "?";if($x < count($fields)) {$values .= ', '; }$x++;} $sql = "INSERT INTO users (`" . implode('`, `', $keys) . "`) VALUES ({$values})"; if(!$this->query($sql, $fields)->error()) {return true; } return false;} public function update($table, $id, $fields) {$set = '';$x = 1; foreach($fields as $name => $value){$set .= "{$name} = ?";if($x < count($fields)){$set .= ', '; }$x++;} $sql = "UPDATE {$table} SET {$set} WHERE id = {$id}"; if(!$this->query($sql, $fields)->error()) {return true; } } public function results() {return $this->_results;} public function first() {return $this->results()[0];} public function error() {return $this->_error;} public function count() {return $this->_count;} } logout.php <?phprequire_once 'core/init.php'; $user = new User();$user->logout(); Redirect::to('index.php'); Session.php <?phpclass Session {public static function exists($name) {return (isset($_SESSION[$name])) ? true : false;} public static function put($name, $value) {return $_SESSION[$name] = $value;} public static function get($name) {return $_SESSION[$name];} public static function delete($name) {if(self::exists($_SESSION[$name])) {unset($_SESSION[$name]);}} public static function flash($name, $string = '') {if (self:: exists($name)) {$session = self::get($name);self::delete($name);return $session;} else {self::put($name, $string);}}}
  13. did a quick google......is that being able to call private variables outside of a class eg user and session variables? i know there is a constructor in user.php if i login with the correct details it redirects me from login.php therefore the Redirecting is not the problem if i delete the session cookie manually and refresh my browser it says you need to login or register as it should and my href in index.php is correct then ether my logout function on user.php or my delete function in DB.php are incorrect an i on the right track with finding the issue i trust you already found it you just want me to find it myself
  14. it creates a new user object so that i can pull stuff from the user class
×