Dev Shed Forums http://forums.devshed.com/ Dev Shed - Open Source web development forums. Topics covered include PHP, Apache, mySQL, Zope, Jserv, Java, Python, Zend, XML, DHTML, Javascript and more. en Wed, 20 Sep 2017 13:49:50 GMT vBulletin 60 http://forums.devshed.com/images/misc/rss.png Dev Shed Forums http://forums.devshed.com/ VPS account to have a deal with ... http://forums.devshed.com/web-hosting/979058-vps-account-deal-new-post.html Wed, 20 Sep 2017 13:45:22 GMT Comparing VPS accounts from libertyvps.net and hostingsource.com, which plan would you sign up with and why? Comparing VPS accounts from libertyvps.net and hostingsource.com, which plan would you sign up with and why? ]]> Web Hosting Bucks http://forums.devshed.com/web-hosting-12/vps-account-deal-979058.html Passing Variable between pages http://forums.devshed.com/php-development/979057-passing-variable-pages-new-post.html Wed, 20 Sep 2017 13:28:14 GMT Hi All,

I'm struggling to pass a variable between pages... the variable in question is the $id variable which is collected on page 1's POST...

Page 1:

PHP Code:

<?php
$id 
= (int)$_POST["id"];
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require_once('db_init.php');

                    
$conn mysqli_connect($DBHOST$DBUSER$DBPASS$DBNAME) or die('Could not connect to database server.');

if (
mysqli_connect_errno())
{
echo 
"Failed to connect to MySQL: " mysqli_connect_error();
}

$strsql "SELECT cc.Client_Category_ID, lc.Category_ID , lc.Category FROM tblClient AS c INNER JOIN tblClient_Category AS cc ON cc.Client_ID = c.Client_ID INNER JOIN tblLookUp_Category AS lc ON lc.Category_ID = cc.Category_ID WHERE c.Client_ID = $id GROUP BY Category ASC";
$result mysqli_query($conn,$strsql);


echo 
"<table border='1'>
<tr>
<th>Category</th>
<th>Delete</th>
</tr>"
;

while(
$row mysqli_fetch_array($result))
{
echo 
"<tr>";

echo 
"<td>" $row['Category'] . "</td>";
echo 
"<td><a href=\"deletecategory.php?id=".$row['Client_Category_ID']."\" style=\"text-decoration: none\">Delete</a></td>";

echo 
"</tr>";
}
echo 
"</table>";

mysqli_close($conn);
        
        echo 
"<br>
        Add to New Category
        <br>"
;
        
        
        echo 
"<form action=\"insertcategory.php\" method=\"post\" enctype=\"multipart/form-data\">";
        echo 
"<input type=\"hidden\" name=\"clientid\" value=\"<?=$id?>\">";
        require_once(
'db_init.php');

        
$conn2 mysqli_connect($DBHOST$DBUSER$DBPASS$DBNAME) or die('Could not connect to database server.');
        
        if (
mysqli_connect_errno())
        {
        echo 
"Failed to connect to MySQL: " mysqli_connect_error();
        }

        
        
$strsql2 "SELECT * FROM tblLookUp_Category";
        
$result2 mysqli_query($conn2,$strsql2);
        
        
        echo 
"<table border='1'>
        <tr>
        <th>Category</th>
        <th>Add</th>
        </tr>
        <tr>
        <td>"
;
        while(
$row mysqli_fetch_array($result2))
        {
                    echo 
"<select name='Category_ID'>";
                    while (
$row mysqli_fetch_array($result2)) {
                    echo 
"<option value='" $row['Category_ID'] . "'>" $row['Category'] . "</option>";
                    }
                    echo 
"</select>";
        }
        echo 
"</td>                   
         <td>
         <input type=\"submit\" value=\"Submit\">
         </td>
         </tr>
         </table>"
;
        
mysqli_close($conn2);
        echo 
"</form>";
        
?>

Page 2:

PHP Code:

    <?php
    $clientid 
= (int)$_POST["clientid"];
    
$categoryid = (int)$_POST["Category_ID"];
    echo 
$clientid;
    echo 
"<br>";
    echo 
$categoryid;
    echo 
"<br>";

require_once(
'db_init.php');

                    
$conn mysqli_connect($DBHOST$DBUSER$DBPASS$DBNAME) or die('Could not connect to database server.');

if (
mysqli_connect_errno())
{
echo 
"Failed to connect to MySQL: " mysqli_connect_error();
}
 

$sql "INSERT INTO tbl_Client_Category (Client_ID, Category_ID) VALUES ('$clientid','$categoryid')";
if(
mysqli_query($conn$sql)){
    echo 
"<br>";
    echo 
"Records added successfully.";
    echo 
"<br>";
} else{
    echo 
"<br>";
    echo 
"ERROR: Could not able to execute $sql. " mysqli_error($link);
    echo 
"<br>";
}
 
// close connection
mysqli_close($conn);
?>

What happens if I click on the button in the button of the form on page 1, I get:

Quote:

0
5

ERROR: Could not able to execute INSERT INTO tbl_Client_Category (Client_ID, Category_ID) VALUES ('0','5').
But I don't know why I'm getting a 0 value passed for the client ID - It's working to render the first table in the first page annoyingly....

Any help much appreciated.

Many Thanks,
Graham ]]>
PHP Development Graham_K http://forums.devshed.com/php-development-5/passing-variable-pages-979057.html
<![CDATA[[MilesWeb] Unlimited SSD Hosting Starts @ $1.67 | Free .COM Domain | Free SSL]]> http://forums.devshed.com/web-hosting-offers/979056-milesweb-unlimited-ssd-hosting-starts-1-67-free-com-domain-free-ssl-new-post.html Wed, 20 Sep 2017 11:25:06 GMT *MilesWeb* (https://www.milesweb.com/hosting/web-hosting) is a world-class hosting provider that provides web hosting solutions of all types. Our captivating web hosting platforms are fully capable of supporting you for managing your websites in a way that will save your time and money. We believe in offering nothing but the best when it comes to service and server performance. Get web hosting... MilesWeb is a world-class hosting provider that provides web hosting solutions of all types. Our captivating web hosting platforms are fully capable of supporting you for managing your websites in a way that will save your time and money. We believe in offering nothing but the best when it comes to service and server performance. Get web hosting solutions that are simple, powerful and reliable.

Quote:

SpamExperts: The Best Solution Against Spam And Viruses For Your Organization! Protect unlimited mailboxes from spam emails for just $3/mo


Below is the list of Unlimited SSD Hosting plans:

Economy Plan

  • Host 1 Domain
  • 1GB SSD Space
  • Unlimited Bandwidth
  • Free SSL Certificate
  • cPanel + Softaculous
  • 3 SQL DB's
  • 10 Email Accounts
  • Monthly $1.67 USD

[15% OFF] : Coupon Code :: ESTAR | Buy Now

Value Plan

  • Host 1 Domain
  • Free .COM/.IN domain
  • Unlimited SSD Space
  • Unlimited Bandwidth
  • Free SSL Certificate
  • cPanel + Softaculous
  • Unlimited SQL DB's
  • Spam Experts
  • Unlimited Email Accounts
  • Monthly $3.50 USD

[25% OFF] : Coupon Code :: VSTAR | Buy Now

Unlimited Plan

  • Host Unlimited Domains
  • Free .COM/.IN domain
  • Unlimited SSD Space
  • Unlimited Bandwidth
  • Free SSL Certificate
  • cPanel + Softaculous
  • Unlimited SQL DB's
  • Spam Experts
  • Unlimited Email Accounts
  • Monthly $6 USD

[35% OFF] : Coupon Code :: USTAR | Buy Now
The domain will be FREE till the time your web hosting account remains active.

For more details on Web Hosting plans visit : https://www.milesweb.com/hosting/web-hosting

Below is the list of Add-ons provided with plans:

SSL Certificate

  • Comodo Domain SSL - Monthly $1.54 USD
  • Let's Encrypt SSL - Free

Daily Automated Backup : Monthly $1.54 USD
  • We maintain last 7 days backup of your website, email and database.


Dedicated IP Address : Monthly $2 USD

  • Recommended for SEO,SSL and Email

Boost website speed with CDN : Monthly $10 USD

HackAlert Monitoring : Annually $10 USD

  • HackAlert is a monitoring service that checks your website daily and immediately notifies you if your website has been hacked or injected with malicious code.


Sitelock Basic : Annually $25 USD

  • Get Total Website Security, protect your website with monthly malware scans and guard against hacker attacks, identity theft and other threats. Trust Seals and Daily Security Scanning of upto 25 pages. Exclusive registration price!

Datacenter Location:

  • India
  • UK
  • USA
  • Romania

For Immediate Assistance, Contact Us : sales@milesweb.com or visit our website to initiate live chat. ]]>
Web Hosting Offers MilesWeb http://forums.devshed.com/web-hosting-offers-100/milesweb-unlimited-ssd-hosting-starts-1-67-free-com-domain-free-ssl-979056.html
How to promote business listing site http://forums.devshed.com/search-engine-optimization/979055-promote-business-listing-site-new-post.html Wed, 20 Sep 2017 10:52:03 GMT *Call Me India* is a leading local business listing site having with 40+ category, 1000+ subcategory, our targeted country is India. Please suggest me how I can promote it so people will add their business listing in it.. Call Me India is a leading local business listing site having with 40+ category, 1000+ subcategory, our targeted country is India. Please suggest me how I can promote it so people will add their business listing in it.. ]]> Search Engine Optimization Ramaner http://forums.devshed.com/search-engine-optimization-108/promote-business-listing-site-979055.html Pls help to provide the missing codes http://forums.devshed.com/ruby-programming/979054-pls-help-provide-missing-codes-new-post.html Wed, 20 Sep 2017 10:15:36 GMT I am new to ruby programming and I'm really having a hard time providing the missing codes to make the tests pass.
here is the code and the errors when you run the test.

CODE:
require 'spec_helper'

RSpec.describe '00: Respondent Answers' do
class Response
def self.count(responses)
# your code goes here
responses.size
end

def self.for(responses, user)
# your code goes here
responses.answer
end

def self.present?(responses, user)
# your code goes here
end

def self.positive(responses)
# your code goes here
end

def self.negative(responses)
# your code goes here
end

def self.average(responses)
# your codes goes here
end
end

let(:responses) do
[
{ user: "alice@example.com", answer: 1 },
{ user: "bob@example.com", answer: 2 },
{ user: "frank@example.com", answer: 3 },
{ user: "claire@example.com", answer: 4 },
]
end

context "count" do
it "counts the number of responses" do
expect(Response.count(responses)).to eq(4)
end
end

context "for" do
it "finds the response from frank@example.com" do
response = Response.for(responses, "frank@example.com")
expect(response[:answer]).to eq(3)
end

it "finds the response from bob@example.com" do
response = Response.for(responses, "bob@example.com")
expect(response[:answer]).to eq(2)
end
end

context "present?" do
it "frank@example.com's response is present" do
expect(Response.present?(responses, "frank@example.com")).to be true
end

it "bill@example.com's response is not present" do
expect(Response.present?(responses, "bill@example.com")).to be false
end
end

context "positive" do
it "finds the positive responses (score > 3)" do
expect(Response.positive(responses)).to eq(1)
end
end

context "negative" do
it "finds the negative responses (score < 3)" do
expect(Response.negative(responses)).to eq(2)
end
end

context "average" do
it "finds the average of the answers" do
expect(Response.average(responses)).to eq(2.5)
end
end
end

-------------------------------------------------------
when you run this test: bundle exec rspec
here are the errors:

0: Respondent Answers
count
counts the number of responses
for
finds the response from frank@example.com (FAILED - 1)

Failures:

1) 00: Respondent Answers for finds the response from frank@example.com
Failure/Error: responses.answer

NoMethodError:
undefined method `answer' for #<Array:0x00000000040383e8>
# ./spec/00_respondents_answers_spec.rb:12:in `for'
# ./spec/00_respondents_answers_spec.rb:49:in `block (3 levels) in <top (required)>'

Finished in 0.01567 seconds (files took 2.58 seconds to load)
2 examples, 1 failure

Failed examples:

rspec ./spec/00_respondents_answers_spec.rb:48 # 00: Respondent Answers for finds the response from frank@example.com ]]>
Ruby Programming kalso http://forums.devshed.com/ruby-programming-142/pls-help-provide-missing-codes-979054.html
WHUK | Avail 15% OFF on E3-v6 Dedicated Servers | Free Server Monitoring http://forums.devshed.com/web-hosting-offers/979053-whuk-avail-15-e3-v6-dedicated-servers-free-server-monitoring-new-post.html Wed, 20 Sep 2017 10:14:55 GMT WHUK's Intel® Xeon® E3-v6 series Managed Dedicated Server which is industry leading server configuration built to deliver optimum performance to any website. Get Free Plesk Web Pro and Free Server Monitoring with any of the below servers. From last 15 years we deliver the ultimate dedicated hosting solutions with Enterprise Quality Server Hardware and Exuberant Support.

WHUK E3-v6 Server features:
  • Enterprise Quality Server Hardware
  • SmarterBundle Pro
  • Proactive Server Monitoring
  • IPv6 Support
  • UK Data Centres

This is a limited time offer and ends on Wednesday 27 September 2017, 11.59pm BST. So rush to get yours today!

With our latest promo on managed E3-v6 series dedicated servers, our entire range of plans have evolved into more affordable and value for money proposition! Here's what you can avail through the latest promotion:

Quote:

Use Coupon Code "SAVE15E3v6" to avail 15% OFF*
* On Semi-Annual and Annual billing cycle.

Initiate a LIVE CHAT with one of our friendly sales advisor to avail exclusive benefits on these servers!

WHUK E3 Standard (HDD)
CPU Model - Intel Xeon E3-1220v6 3.0GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 4 Threads
RAM - 8GB DDR4 (Max 64GB)
Hard Disk - 2 x 2 TB 7.2K SATA
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 69.99/pm | Order Now

WHUK E3 Standard (SSD)
CPU Model - Intel Xeon E3-1220v6 3.0GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 4 Threads
RAM - 8GB DDR4 (Max 64GB)
Hard Disk - 2 x 240GB Performance SSD
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 89.99/pm | Order Now

WHUK E3 Professional (HDD)
CPU Model - Intel Xeon E3-1230v6 3.5GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 8 Threads
RAM - 16GB ECC DDR4 (Max 64GB)
Hard Disk - 2 x 1 TB 7.2K SATA
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 89.99/pm | Order Now

WHUK E3 Professional (SSD)
CPU Model - Intel Xeon E3-1230v6 3.5GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 8 Threads
RAM - 16GB DDR4 (Max 64GB)
Hard Disk - 2 x 480 GB Performance SSD
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 109.99/pm | Order Now

WHUK E3 Enterprise (HDD)
CPU Model - Intel Xeon E3-1270v6 3.8GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 8 Threads
RAM - 32GB ECC DDR4 (Max 64GB)
Hard Disk - 2 x 2 TB 7.2K SATA
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 109.99/pm | Order Now

WHUK E3 Enterprise (SSD)
CPU Model - Intel Xeon E3-1270v6 3.8GHz, 8 MB Cache
CPU Cores/Threads - 4 Cores/ 8 Threads
RAM - 32GB DDR4 (Max 64GB)
Hard Disk - 2 x 1 TB Performance SSD
Port Speed - 1 Gbit
Monthly Bandwidth - 10 TB
Free Server Monitoring Plan
Monthly Price: £ 139.99/pm | Order Now

To know more about features and information, visit https://www.webhosting.uk.com/dedicated-servers/

About WHUK
WHUK, a web hosting company in the UK since 2001. The services come equipped with powerful features capable of serving wide range of requirements. Both, cloud and dedicated hosting packages are power packed and fully equipped with the best in-class features. With the infrastructural set-up housed at state-of-the-art Tier 4 Datacenter in the UK, you can expect the best uptime ever.

For any information with regards to festive discounts and offers, please contact our sales department by initiating a chat or by dropping an email to sales @ webhosting.uk.com or call us on 0800 862 0890 / +44-191-303-8069. ]]>
Web Hosting Offers James-A http://forums.devshed.com/web-hosting-offers-100/whuk-avail-15-e3-v6-dedicated-servers-free-server-monitoring-979053.html
Attraction bar http://forums.devshed.com/business-help/979052-attraction-bar-new-post.html Wed, 20 Sep 2017 09:55:45 GMT I want to promote a toolbar to attract click customers and action.:confused::confused: Have ideas help me? I want to promote a toolbar to attract click customers and action.:confused::confused:
Have ideas help me? ]]>
Business Help davidtr http://forums.devshed.com/business-help-92/attraction-bar-979052.html
<![CDATA[Solid & Stable USA Dedicated Servers From TEMOK Starting at $65/Mo | Full Root Access]]> http://forums.devshed.com/web-hosting-offers/979051-solid-stable-usa-dedicated-servers-temok-starting-65-mo-root-access-new-post.html Wed, 20 Sep 2017 09:35:05 GMT *Temok (https://www.temok.com)* Dedicated Server is more than just a server, it is a totally managed solution made to take your business to the next level. As an additional bonus, we include cPanel totally free with every dedicated server. Your server will be provisioned, safe, and normally delivered within 24 hours of purchase. Having a dedicated server will provide your sites with a higher... Temok Dedicated Server is more than just a server, it is a totally managed solution made to take your business to the next level. As an additional bonus, we include cPanel totally free with every dedicated server. Your server will be provisioned, safe, and normally delivered within 24 hours of purchase. Having a dedicated server will provide your sites with a higher level of security, speed, and uptime. You will have the capability to go far beyond the resource limitations found in a shared hosting environment.

We are proudly offering Sixteen (16) different USA Dedicated Servers along with the price & links. All you have to do is to choose the desired plan & get it.

❩❩ Dedicated Hosting USA Plan 1 ❨❨

⚬ 1x Intel Xeon 5520 (2.26GHz, 4c, 8t) - Preconfigure
⚬ RAM: 16GB DDR3
⚬ Hard Drive(s): 1TB SATA
⚬ Bandwidth: 33TB
⚬ Set-up Fee: $49.95
⚬ Price: $65/Month ⦁ Order Plan 1

❩❩ Dedicated Hosting USA Plan 2 ❨❨

⚬ Dual AMD Opteron 4332 Custom - 3.0 GHz -12 Cores
⚬ RAM: 16GB DDR3
⚬ Hard Drive(s): 120GB SSD + 2x 1TB SATA
⚬ Bandwidth: 20TB
⚬ Set-up Fee: $49.99
⚬ Price: $66/Month ⦁ Order Plan 2

❩❩ Dedicated Hosting USA Plan 3 ❨❨

⚬ 2x Intel Xeon 5520 (2.26GHz, 4c, 8t) - Preconfigure
⚬ RAM: 24GB DDR3
⚬ Hard Drive(s): 3TB SATA or 240GB SSD
⚬ Bandwidth: 33TB
⚬ Set-up Fee: $49.95
⚬ Price: $75/Month ⦁ Order Plan 3

❩❩ Dedicated Hosting USA Plan 4 ❨❨

⚬ 1 x Intel E3 1230 v2, 3.3GHz/ 3.7GHz Turbo (4 Cores/ 8 threads)
⚬ Preconfigure
⚬ RAM: 32GB DDR3
⚬ Hard Drive(s): 500GB SSD
⚬ Bandwidth: 33TB
⚬ Set-up Fee: $49.95
⚬ Price: $80/Month ⦁ Order Plan 4

❩❩ Dedicated Hosting USA Plan 5 ❨❨

⚬ Intel Dual Xeon X5650 2.66 GHZ - (12 Cores, 24 Threads)
⚬ RAM: 32GB DDR3
⚬ Hard Drive(s): 240GB SSD + 2x 1TB SATA
⚬ Bandwidth: 20TB
⚬ Set-up Fee: $49.99
⚬ Price: $80/Month ⦁ Order Plan 5

❩❩ Dedicated Hosting USA Plan 6 ❨❨

⚬ 2 x Dual Intel Xeon E5-2670 2.66GHz / 3.3GHz Turbo (16c, 32t)
⚬ Preconfigure
⚬ RAM: 32GB DDR3
⚬ Hard Drive(s): 480GB SSD
⚬ Bandwidth: 33TB
⚬ Set-up Fee: $49.99
⚬ Price: $90/Month ⦁ Order Plan 6

❩❩ Dedicated Hosting USA Plan 7 ❨❨

⚬ 2 x Intel Xeon E5-2660 Preconfig
⚬ RAM: 64GB DDR3 ECC
⚬ Hard Drive(s): 4TB SATA | 480GB SSD
⚬ Bandwidth: 33TB
⚬ Set-up Fee: $49.95
⚬ Price: $97/Month ⦁ Order Plan 7

❩❩ Dedicated Hosting USA Plan 8 ❨❨

⚬ 2 x Intel Xeon 5650, 2.66Ghz - 3.06Ghz (12 Cores/ 24 threads)
⚬ Preconfigure
⚬ RAM: 64GB DDR3
⚬ Hard Drive(s): 120GB SSD + 3TB SATA
⚬ Bandwidth: 33TB
⚬ Set-up Fee: $49.95
⚬ Price: $125/Month ⦁ Order Plan 8

❩❩ Dedicated Hosting USA Plan 9 ❨❨

⚬ Dual Intel Xeon E5-2670 2.66GHz / 3.3GHz Turbo (16c, 32t)
⚬ Preconfigure
⚬ RAM: 96GB DDR3
⚬ Hard Drive(s): 960GB SSD
⚬ Bandwidth: 33TB
⚬ Set-up Fee: $49.99
⚬ Price: $130/Month ⦁ Order Plan 9

❩❩ Dedicated Hosting USA Plan 10 ❨❨

⚬ 2x Intel Xeon E5-2670 (16c, 32t) Custom - FL
⚬ RAM: 32GB DDR3
⚬ Hard Drive(s): 2x 300GB SSD + 1TB SATA
⚬ Bandwidth: 20TB
⚬ Set-up Fee: $49.99
⚬ Price: $143/Month ⦁ Order Plan 10

❩❩ Dedicated Hosting USA Plan 11 ❨❨

⚬ 2x Intel Xeon E5-2670 (16c, 32t) Preconfig
⚬ RAM: 128GB DDR3
⚬ Hard Drive(s): 2x 2TB SSD
⚬ Bandwidth: 33TB
⚬ Set-up Fee: $49.99
⚬ Price: $270/Month ⦁ Order Plan 11

❩❩ Dedicated Hosting USA Plan 12 ❨❨

⚬ 2 x Intel Xeon 5420 (2.5Ghz, 8c, 8t)
⚬ RAM: 16GB DDR2
⚬ Hard Drive(s): 2 x 1TB SATA || SSD Available
⚬ Bandwidth: 100Mbit Unmetered
⚬ Set-up Fee: $49.95
⚬ Price: $90/Month ⦁ Order Plan 12

❩❩ Dedicated Hosting USA Plan 13 ❨❨

⚬ 2x Intel Xeon Xeon E5645
⚬ RAM: 24GB DDR3 ECC
⚬ Hard Drive(s): 2x 500MB SATA or 1x 120GB SSD
⚬ Bandwidth: 20TB
⚬ Set-up Fee: $49.95
⚬ Price: $99/Month ⦁ Order Plan 13

❩❩ Dedicated Hosting USA Plan 14 ❨❨

⚬ 2x Intel Xeon 5639 (2.13Ghz , 12c, 24t)
⚬ RAM: 24GB DDR3
⚬ Hard Drive(s): 2TB SATA or 120Gb SSD
⚬ Bandwidth: 33TB
⚬ Set-up Fee: $49.95
⚬ Price: $129/Month ⦁ Order Plan 14

❩❩ Dedicated Hosting USA Plan 15 ❨❨

⚬ 2 x Intel XeonXeon 5520 Custom
⚬ RAM: 24GB DDR3
⚬ Hard Drive(s): 4TB SATA
⚬ Bandwidth: 33TB
⚬ Set-up Fee: $49.95
⚬ Price: $110/Month ⦁ Order Plan 15

❩❩ Dedicated Hosting USA Plan 16 ❨❨

⚬ 2 x Intel Xeon E5-2620 custom
⚬ RAM: 64GB DDR3
⚬ Hard Drive(s): 2x 120GB SSD | 2x 2TB SATA
⚬ Bandwidth: 20TB
⚬ Set-up Fee: $49.95
⚬ Price: $220/Month ⦁ Order Plan 16

When you aren't certain which hosting option suits you best you our experienced and professional sales team will help you with your needs. Temok also offers extra plans and the expertise for smooth upgrades as your business expands. Keep in mind that the most important objective of our firm is not just to sell you our product, our central objective is client satisfaction.

➛ We accept VISA, MasterCard, American Express, PayPal, WorldPay and Diners Club International for payment.
➛ Orders will typically be processed within 48 hours after verification.
➛ Promotional pricing is available for all our customers.

If you have any questions & queries please let us know sales[at]temok.com or Via Skype: temok.sales . We are here 24/7/365 for your help & support.
]]>
Web Hosting Offers tk-hassan http://forums.devshed.com/web-hosting-offers-100/solid-stable-usa-dedicated-servers-temok-starting-65-mo-root-access-979051.html
USA Dedicated Servers with Superior Uptime http://forums.devshed.com/web-hosting-offers/979050-usa-dedicated-servers-superior-uptime-new-post.html Wed, 20 Sep 2017 09:22:59 GMT * USA Dedicated Servers by Leasedlayer (https://www.leasedlayer.com/)* USA dedicated servers (https://www.leasedlayer.com/usa-dedicated-servers) provided with broad-range of server configurations to prefer. The highly configured dedicated servers are dwelling in the world-class datacenter in Manassas, VA in USA. Our bare metal servers are the best suitable to host every kind of application...
USA Dedicated Servers by Leasedlayer
USA dedicated servers provided with broad-range of server configurations to prefer. The highly configured dedicated servers are dwelling in the world-class datacenter in Manassas, VA in USA. Our bare metal servers are the best suitable to host every kind of application ranging from a small blog to the established and high-traffic websites.

Fab features of USA Dedicated Server
`````````````````````````````````````
* Full Root Access.
* Customizable Platform.
* Dedicated IP.
* 24/7 Support
* Control Panel Options.
* Choice of OS.
* Remote Control Panel
* Guaranteed Uptime

Single CPU Server Plans
````````````````````````
Plan 1 :
```````````
Server : HP DL120G6
Processor : Intel Dual-Core G6950
RAM : 4GB
Storage : 4x500GB SATA
Port : 100Mbps
BandWidth : 10TB
Price : 39.99 euros/month
Order

Plan 2 :
```````````
Server : HP DL120G6
Processor : Intel Quad-Core XEON X3440
RAM : 4GB
Storage : 2x500GB SATA
Port : 100Mbps
BandWidth : 10TB
Price : 56.99 euros/month
Order

Dual CPU Server Plans
````````````````````````
Plan 1 :
```````````
Server : HP DL180G6
Processor : 2xIntel Quad-Core Xeon E5620
RAM : 8GB
Storage : 2x1TB SATA
Port : 100Mbps
BandWidth : 10TB
Price : 140.99 euros/month
Order

Plan 2 :
```````````
Server : HP DL180G6
Processor : 2xIntel Hexa-Core Xeon E5645
RAM : 32GB
Storage : 2x1TB SATA
Port : 100Mbps
BandWidth : 10TB
Price : 155.99 euros/month
Order

Know more on USA dedicated server plans

Addons
``````````
+500 GB HDD - 10.00 euros/mo.
+2048 MB RAM - 5.00 euros/mo.
Linux Operating Systems - Free
Windows 2008R2 Web - 20.00 euros/mo.
cPanel/WHM Panel - 27.00 euros/mo.
+1 IP - 3.00 euros/mo.
+1 Gbps Port - 20.00 euros/mo.

Verified Payment Modes
...................................
Paypal | Payza | Perfect Money | Skrill


Thank You. ]]>
Web Hosting Offers leasedlayer.com http://forums.devshed.com/web-hosting-offers-100/usa-dedicated-servers-superior-uptime-979050.html
SSD VPS deals from kvchosting.net at modest rates. http://forums.devshed.com/web-hosting-offers/979049-ssd-vps-deals-kvchosting-net-modest-rates-new-post.html Wed, 20 Sep 2017 08:08:51 GMT KVC Hosting was started in 2010 with the sole purpose of creating a host company that was affordable to all. Since its inception, the company has had steady growth due to our practical business model, so much so that we've increased the size of our data center in order to meet the demands of our clients. Putting customers first is what drives us, and this has led to us winning multiple awards for providing quality technology at a great price. We focus on providing cost-effective web hosting solutions, and our extensive experience in the industry assures that you will receive high quality and economical web hosting options that can be customized to suit your needs. We are proud of the trust that our partners and customers have placed in us and welcome all to give our company a try.
Be in charge of your own Virtual Private Server (VPS Hosting)! It will work just as if you have your own machine. Our virtual private servers are affordable and powerful, offering you your own mail server and greater security control. SSD VPS Hosting is a great fit for businesses that are anticipating quick growth, huge website traffic, or who run highly dynamic, interactive websites.

SSD VPS HOSTING

Enterprise Cloud SSD VPS
P1
8 GB DDR3 RAM
100 GB SSD RAID 10
4 CPU XEON@ 2.13 GHz (8.52GHz)
6 TB Premium Bandwidth
$49.99/M
ORDER NOW

P5
24 GB DDR3 RAM
300 GB SSD RAID 10
8 CPU XEON@ 2.13 GHz (17.0GHz)
22 TB Premium Bandwidth
$169.99/M
ORDER NOW

REGULAR VPS

VPS K
Disk Space - 75 GB
Bandwidth - 200 GB
RAM - 4 GB
CPANEL/WHM - Free
$25.99/M
ORDER NOW!

VPS O
Disk Space - 225 GB
Bandwidth - 3 TB
RAM - 10 GB
CPANEL/WHM - Free
$79.99/M
ORDER NOW!


Have a question?
Please feel free to contact us: sales at kvchosting.net
]]>
Web Hosting Offers KVChosting_ http://forums.devshed.com/web-hosting-offers-100/ssd-vps-deals-kvchosting-net-modest-rates-979049.html
Cheap Dedicated Server Hosting Australia - Hostripples India! http://forums.devshed.com/web-hosting-offers/979048-cheap-dedicated-server-hosting-australia-hostripples-india-new-post.html Wed, 20 Sep 2017 06:19:09 GMT Hostripples offers a comprehensive line-up of fully managed dedicated servers in Australia from basic entry level to latest high performance servers across various price points. Available with a choice of Linux and Windows operating systems and a host of other customization and addon options, these servers are designed as a one stop solution for any requirement. All servers are connected to a... Hostripples offers a comprehensive line-up of fully managed dedicated servers in Australia from basic entry level to latest high performance servers across various price points. Available with a choice of Linux and Windows operating systems and a host of other customization and addon options, these servers are designed as a one stop solution for any requirement. All servers are connected to a high-speed, redundant network and backed with 24x7 Support, Pro-active Server Monitoring.

Australia Plan 1 - Rs. 10000/Month
Intel Xeon E3-1245v5 - 4c/8t - 3.5 GHz/3.9 GHz
32GB DDR4 ECC
2 x 2 TB SATA
Port : 250 Mbps
3TB Bandwidth
24x7 Live Support

BUY NOW!

Australia Plan 2 - Rs. 13000/Month
Intel Xeon E3-1245v5 - 4c/8t - 3.5 GHz/3.9 GHz
64GB DDR4 ECC
2 x 2 TB SATA
Port : 500 Mbps
5TB Bandwidth
24x7 Live Support

BUY NOW!

Why choose Hostripples?
Maximum uptime
Easy usability
Value for money
High performance
24 x 7 customer service
Unmatched server performance


Visit:- Cheap Dedicated Hosting Australia

It’s not that we are bragging about our services, our customers say it all!

Hurry up and get Hostripples – the one-stop solution for your web hosting requirements!

Hostripples - Affordable web hosting
Hostripples.in Cheap Hosting | Unlimited Bandwidth | Unlimited Space | Domain Name Registration

Connect with us: Facebook | Twitter | LinkedIn

Hostripples - Affordable web hosting
http://hostripples.in/
http://hostripples.com/
http://hostripples.co.uk/
https://myhostseo.com/
Hostripples.in Rs.35 Unlimited Hosting ]]>
Web Hosting Offers hi5s2arp http://forums.devshed.com/web-hosting-offers-100/cheap-dedicated-server-hosting-australia-hostripples-india-979048.html
Affiliate Program Registration http://forums.devshed.com/dev-shed-lounge/979047-affiliate-program-registration-new-post.html Wed, 20 Sep 2017 06:04:27 GMT Hi, I wanted to boost up my income. After searching on Google for a week or so I came across affiliate Marketing programs that are helping people to earn secondary income without much hassles. Inspired by the thought I had made up my mind to join an affiliate network. However, the provider is asking me a small registration amount at the time of enrollment. My question is for those who are ... Hi,

I wanted to boost up my income. After searching on Google for a week or so I came across affiliate Marketing programs that are helping people to earn secondary income without much hassles.
Inspired by the thought I had made up my mind to join an affiliate network. However, the provider is asking me a small registration amount at the time of enrollment. My question is for those who are
already into affiliate marketing - do affiliate marketing providers ask for such registraion fee? Shall I sign up? Also please suggest me some of the good affiliate networks that will help me earn some money in my spare time! ]]>
Dev Shed Lounge OliverJ http://forums.devshed.com/dev-shed-lounge-26/affiliate-program-registration-979047.html
error generating list of items in s1 NOT IN table s2 http://forums.devshed.com/mysql-help/979046-error-generating-list-items-s1-table-s2-new-post.html Wed, 20 Sep 2017 01:24:02 GMT When trying to use the "NOT IN" clause on a couple of
aliased tables, I'm getting an error. I'm trying to get a list of rooms
available (not booked) by looking at those which are booked and
then displaying those that are not in that list
The source tables:
rooms: (roomnum (int), bedtype (int), ...etc)
items: (id (int), room (int), customer (int), start_date (date), end_date (date), ...etc)

All rooms are shown by:
Code:

        select s1.*
        from rooms AS s1

All booked rooms in 2018 are shown by:
Code:

        select s2.* from rooms AS s2
        left join items on s2.roomnum=items.room
        where (items.startdate > '2017-12-31') and ( items.startdate < '2019-01-01')

So it seems I could show rooms NOT booked in 2018 by doing this:
Code:

        select s1.*
        from rooms AS s1
        where s1.roomnum
        not in (select s2.*
        from rooms AS s2
                left join items on s2.roomnum=items.room
                where (items.startdate > '2017-12-31')
        and ( items.startdate < '2019-01-01'))

However, it does not work. It says: #1241 - Operand should contain 1 column(s)
Any thoughts?

Thanks,
-Jeff ]]>
MySQL Help gephenzie http://forums.devshed.com/mysql-help-4/error-generating-list-items-s1-table-s2-979046.html
Trying to make a test for a script where there is a CLI http://forums.devshed.com/python-programming/979045-trying-test-script-cli-new-post.html Tue, 19 Sep 2017 21:03:07 GMT Hi all,

I made this dummy script and I'm trying to use doctest in order to automate several things for testing. One particular problem that I'm having is that when I use raw_input in order to get some input from the user at the CLI, doctest does not fill this information in by default.

The script (unnecessary_math.py):
Code:

#!/usr/bin/env python

"""
Module showing how doctests can be included with source code
Each '>>>' line is run as if in a python shell, and counts as a test.
The next line, if not '>>>' is the expected output of the previous line.
If anything doesn't match exactly (including trailing spaces), the test fails.
"""
 
def multiply(a, b):
  """
  >>> multiply(4, 3)
  12
  >>> multiply('a', 3)
  'aaa'
  """

  return a * b

def main():
  confirm_char = raw_input(" New input: ")
  print ""
  print "This is what was inputted: ", confirm_char

if __name__ == "__main__":
  main()

The doctest test (test_unnecessary_math.txt):
Code:

This is a doctest based regression suite for unnecessary_math.py
Each '>>' line is run as if in a python shell, and counts as a test.
The next line, if not '>>' is the expected output of the previous line.
If anything doesn't match exactly (including trailing spaces), the test fails.
 
>>> from unnecessary_math import multiply
>>> multiply(3, 4)
12
>>> multiply('a', 3)
'aaa'
>>> import unnecessary_math
>>> unnecessary_math.main()
 New input: asdfadsf

This is what was inputted:  asdfadsf

And this is what happens when I try to run my test on the dummy script:
Code:

> python -m doctest -v test_unnecessary_math.txt
Trying:
    from unnecessary_math import multiply
Expecting nothing
ok
Trying:
    multiply(3, 4)
Expecting:
    12
ok
Trying:
    multiply('a', 3)
Expecting:
    'aaa'
ok
Trying:
    import unnecessary_math
Expecting nothing
ok
Trying:
    unnecessary_math.main()
Expecting:
    New input: asdfadsf

**********************************************************************
File "test_unnecessary_math.txt", line 12, in test_unnecessary_math.txt
Failed example:
    unnecessary_math.main()
Expected:
    New input: asdfadsf
Got:
    New input:
    This is what was inputted: 
**********************************************************************
1 items had failures:
  1 of  5 in test_unnecessary_math.txt
5 tests in 1 items.
4 passed and 1 failed.
***Test Failed*** 1 failures.

My question is this. How can automate certain inputs at the command line into my script? Is this something that I can do in doctest or do I need an another approach?

Thanks in advance. ]]>
Python Programming elephantcoder http://forums.devshed.com/python-programming-11/trying-test-script-cli-979045.html
<![CDATA[Please help - PHP list not working, and I can't see why not]]> http://forums.devshed.com/php-development/979044-please-help-php-list-cant-new-post.html Tue, 19 Sep 2017 16:29:00 GMT ]]> Hi All,

I've been trying to get the below code to generate a selection list and submit button, presented in a table, for a couple of hours now, and it's finally broken me! The table renders, the button is there, but hte list isn't showing in the relevant cell, and I can't see for the life of me why not!

Code:

<HTML>
    <HEAD>
    </HEAD>
    <BODY>
    <br>
        Add to New Category
        <br>
       
       
        <form action="insertcategory.php" method="post" enctype="multipart/form-data">
        <?php
        require_once('db_init.php');

        $conn = mysqli_connect($DBHOST, $DBUSER, $DBPASS, $DBNAME) or die('Could not connect to database server.');
        // Check connection
        if (mysqli_connect_errno())
        {
        echo "Failed to connect to MySQL: " . mysqli_connect_error();
        }

        $strsql = "SELECT * FROM tblLookup_Category;";
        $result = mysqli_query($conn,$strsql);
       
        echo "<table border='1'>
        <tr>
        <th>Category</th>
        <th>Add</th>
        </tr>
        <tr>
        <td>";
        while($row = mysqli_fetch_array($result))
        {
                    echo "<select name='Category_ID'>";
                    while ($row = mysqli_fetch_array($result)) {
                    echo "<option value='" . $row['Category_ID'] . "'>" . $row['Category'] . "</option>";
                    }
                    echo "</select>";
        }
        echo "</td>                 
        <td>
        <input type=\"submit\" value=\"Submit\">
        </td>
        </tr>
        </table>";
       
        ?>
        </form>
       
        </body>
        </html>

Any help greatly appreciated.

Many Thanks,
Graham ]]>
PHP Development Graham_K http://forums.devshed.com/php-development-5/please-help-php-list-cant-979044.html