This file contains 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 | |
$username = $_POST['username']; | |
$password = $_POST['password']; | |
if ($username && $password) | |
{ | |
$connect = mysql_connect("localhost", "root", "") or die("Couldn't Connect!"); | |
mysql_select_db("phplogin") or die("Couldn't Find DB!"); | |
} |
This file contains 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
<html> | |
<head> | |
<script language="javascript"> | |
var isExit = true; | |
</script> | |
</head> | |
<body> | |
<a href="some-other-link-inside-your-site" onclick="isExit = false;">some other link inside your site</a> | |
<script language="javascript"> |
This file contains 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
<form id="optionForm"> | |
<select name="submitted[Which_your_registration][select]" id="edit-submitted-which-your-registration-select" class="select-or-other-select form-select required"> | |
<option selected="selected" value="">- Select -</option> | |
<option value="credit_card">Pay by credit card</option> | |
<option value="send_me_an_invoice">Send me an invoice</option> | |
<option value="select_or_other">Contact me by phone</option> | |
</select> | |
<label for="payment">Payment Method:</label> | |
<input type="radio" name="payment" id="paypal" value="paypal" /> PayPal | |
<input type="radio" name="payment" id="google" value="google" /> Google Wallet |
This file contains 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
SELECT a.user_id, a.user_site, b.user_id, b.user_site | |
FROM table1 a, table2 b | |
WHERE a.user_id = b.user_id AND a.hashes = b.hash |
This file contains 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 | |
$result = mysql_query("UPDATE table1 a, table2 b | |
SET b.user_id = a.user_id, b.user_site = a.user_site | |
WHERE a.hashes = b.hash"); | |
if (!$result) { | |
die("ERROR: ".mysql_error()); | |
} else { | |
echo "Successfully updated!<br /><br />"; | |
print_r($result); |
This file contains 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 | |
$social = "TWITTER"; | |
$result1 = mysql_query("SELECT * FROM table3") or die("Cannot get the results!"); | |
$visits = mysql_num_rows($result1); | |
$result2 = mysql_query("SELECT * FROM table3 WHERE SOCIAL_SITE='".$social."'") or die("Cannot get the results!"); | |
$clicks = mysql_num_rows($result2); | |
$virality = $clicks / $visits * 100; |
This file contains 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
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click | |
Dim Runner1, Runner2, Runner3 As String | |
Dim FT1, FT2, FT3 As Decimal | |
Runner1 = txtRunner1.Text | |
Runner2 = txtRunner2.Text | |
Runner3 = txtRunner3.Text | |
FT1 = Convert.ToDecimal(txtFT1.Text) |