This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function addNew(Request $request) | |
{ | |
$client = new ApiClient(); | |
$query = Request::input('symbol'); | |
$search_term = htmlspecialchars($query, ENT_QUOTES); | |
$symbol = $search_term; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$host = 'localhost'; | |
$username = 'root'; | |
$password = ''; | |
$database = 'database_name'; | |
$dbconfig = mysqli_connect($host,$username,$password,$database); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function submitdata() { | |
var formMessages = $('#form-messages'); | |
var fullname = document.getElementById("fullname").value; | |
var email = document.getElementById("email").value; | |
var subject = document.getElementById("subject").value; | |
var message = document.getElementById("message").value; | |
var dataString = 'fullname=' + fullname + '&email=' + email + '&subject=' + subject + '&message=' + message; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('_HOST_NAME', '......'); | |
define('_DATABASE_USER_NAME', '....'); | |
define('_DATABASE_PASSWORD', '....'); | |
define('_DATABASE_NAME', '....'); | |
$dbConnection = new mysqli(_HOST_NAME, _DATABASE_USER_NAME, _DATABASE_PASSWORD, _DATABASE_NAME); | |
if ($dbConnection->connect_error) { | |
trigger_error('Connection Failed: ' . $dbConnection->connect_error, E_USER_ERROR); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require '../vendor/autoload.php'; | |
function TwentyDayAvg($symbol) | |
{ | |
$client = new Scheb\YahooFinanceApi\ApiClient(); | |
$endDate = new DateTime(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include('simple_html_dom.php'); | |
require 'vendor/autoload.php'; | |
include("Helper.php"); | |
include("BaseController.php"); | |
$client = new Scheb\YahooFinanceApi\ApiClient(); | |
// Uploading the price target from Yahoo Finance for every company listed in the company table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; | |
// https://github.com/scheb/yahoo-finance-api | |
// The extremely useful scheb yahoo finance api is used extensively through our site | |
function TwentyDayAvg($symbol) | |
{ | |
$client = new Scheb\YahooFinanceApi\ApiClient(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Validator\Constraints\Collection; | |
class ContactType extends AbstractType | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This section is split in half. One side an image, the other site content and pdf link. | |
This code enables our PDF Infographic to open up inside a new tab (target="_blank") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Our site is a scroll down design split into several sections. My modifications included: | |
Removing 2 sections of code and the corresponding css code | |
Rewriting the content |
NewerOlder