Jump to content

skippa

Members
  • Posts

    43
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

skippa's Achievements

Member

Member (2/5)

0

Reputation

  1. Yes, i am, im sorry i didnt make myself clear. i can create a subdomain in cpanel easy, but i would like users to be able to signed up to my site, when when they sign up they choose there site name, maybe "site1" a subdomain will be created called site1 and default shopping cart software is pre-installed.
  2. does anyone have any code that creates a subdomain?
  3. Hello, i am trying to set up a website where people can have there own shops as a sub-domain, can any of you help/tell me (if its possible) to create a script to create a subdomain and install some software in that sub-domain with a click of a button? thanks Skippa
  4. Heres My Script <? session_start(); if (!(isset($_SESSION["real_name"]))) { //echo "I'm not logged in"; header('Location: login.php'); } else { echo ""; } ?> <html> <head> <title>Midcity-Mafia :: Countries</title></head> <link REL="stylesheet" TYPE="text/css" HREF="main.css"> <script language=javascript src=Menus.js></script> <body background="wallpaper.jpg"> <center> <table border="0" cellspacing="0" cellpadding="0" align="center" width="95%" class="cat"> <TR> <TD width="150" background="tdbg3.jpg" bgcolor="#222222" valign="top"> <?php include("leftmenu.php");?> </TD> <td width="100%" valign="top"> <br> <table border="1" cellspacing="0" cellpadding="2" bordercolor="black" align="center" width="75%" class="sub2"> <tr> <td class="header" colspan="15" align="center">Countries</td> </tr> <tr> <td colspan="1" class="header" align="center">Country</td> <td colspan="1" class="header" align="center">Bullet Owner</td> <td colspan="1" class="header" align="center">Roulette</td> <td colspan="1" class="header" align="center">Slots</td> <td colspan="1" class="header" align="center">Racetrack</td> <td colspan="1" class="header" align="center">Dice</td> </tr> <? $sql="SELECT * from countries WHERE place='Italy'"; $result=mysql_query($sql); while($rows=mysql_fetch_array($result)){ // Start looping table row $BF = $rows['BF']; $roulette = $rows['roulette']; $slots = $rows['slots']; $racetrack = $rows['racetrack']; $dice = $rows['dice']; ?> <tr> <td colspan="1">Italy</td> <td colspan="1"> <? if ($BF == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['BF']; ?>'> <? echo $rows['BF']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($roulette == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['roulette']; ?>'><? echo $rows['roulette']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($slots == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['slots']; ?>'><? echo $rows['slots']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($racetrack == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['racetrack']; ?>'><? echo $rows['racetrack']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($dice == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['dice']; ?>'><? echo $rows['dice']; ?></a> <? } ?> </td> </tr> <? } ?> <? $sql="SELECT * from countries WHERE place='France'"; $result=mysql_query($sql); while($rows=mysql_fetch_array($result)){ // Start looping table row $BF = $rows['BF']; $roulette = $rows['roulette']; $slots = $rows['slots']; $racetrack = $rows['racetrack']; $dice = $rows['dice']; ?> <tr> <td colspan="1">France</td> <td colspan="1"> <? if ($BF == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['BF']; ?>'> <? echo $rows['BF']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($roulette == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['roulette']; ?>'><? echo $rows['roulette']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($slots == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['slots']; ?>'><? echo $rows['slots']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($racetrack == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['racetrack']; ?>'><? echo $rows['racetrack']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($dice == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['dice']; ?>'><? echo $rows['dice']; ?></a> <? } ?> </td> </tr> <? } ?> <? $sql="SELECT * from countries WHERE place='Nigeria'"; $result=mysql_query($sql); while($rows=mysql_fetch_array($result)){ // Start looping table row $BF = $rows['BF']; $roulette = $rows['roulette']; $slots = $rows['slots']; $racetrack = $rows['racetrack']; $dice = $rows['dice']; ?> <tr> <td colspan="1">Nigeria</td> <td colspan="1"> <? if ($BF == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['BF']; ?>'> <? echo $rows['BF']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($roulette == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['roulette']; ?>'><? echo $rows['roulette']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($slots == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['slots']; ?>'><? echo $rows['slots']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($racetrack == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['racetrack']; ?>'><? echo $rows['racetrack']; ?></a> <? } ?> </td><td colspan="1"> <? if ($dice == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['dice']; ?>'><? echo $rows['dice']; ?></a> <? } ?> </td> </tr> <? } ?> <? $sql="SELECT * from countries WHERE place='America'"; $result=mysql_query($sql); while($rows=mysql_fetch_array($result)){ // Start looping table row $BF = $rows['BF']; $roulette = $rows['roulette']; $slots = $rows['slots']; $racetrack = $rows['racetrack']; $dice = $rows['dice']; ?> <tr> <td colspan="1">America</td> <td colspan="1"> <? if ($BF == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['BF']; ?>'> <? echo $rows['BF']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($roulette == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['roulette']; ?>'><? echo $rows['roulette']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($slots == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['slots']; ?>'><? echo $rows['slots']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($racetrack == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['racetrack']; ?>'><? echo $rows['racetrack']; ?></a> <? } ?> </td><td colspan="1"> <? if ($dice == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['dice']; ?>'><? echo $rows['dice']; ?></a> <? } ?> </td> </tr> <? } ?> <? $sql="SELECT * from countries WHERE place='France'"; $result=mysql_query($sql); while($rows=mysql_fetch_array($result)){ // Start looping table row $BF = $rows['BF']; $roulette = $rows['roulette']; $slots = $rows['slots']; $racetrack = $rows['racetrack']; $dice = $rows['dice']; ?> <? } ?> <? $sql="SELECT * from countries WHERE place='England'"; $result=mysql_query($sql); while($rows=mysql_fetch_array($result)){ // Start looping table row $BF = $rows['BF']; $roulette = $rows['roulette']; $slots = $rows['slots']; $racetrack = $rows['racetrack']; $dice = $rows['dice']; ?> <tr> <td colspan="1">England</td> <td colspan="1"> <? if ($BF == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['BF']; ?>'> <? echo $rows['BF']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($roulette == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['roulette']; ?>'><? echo $rows['roulette']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($blackjack == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['bj']; ?>'><? echo $rows['bj']; ?></a> <? } ?> </td> <td colspan="1"> <? if ($racetrack == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['racetrack']; ?>'><? echo $rows['racetrack']; ?></a> <? } ?> </td><td colspan="1"> <? if ($dice == "None"){ echo "None"; }else{ ?> <a href='viewprofile.php?viewuser=<? echo $rows['dice']; ?>'><? echo $rows['dice']; ?></a> <? } ?> </td> </tr> <? } ?> <tr> <td colspan="7"> <font color="red">Users are only allowed to hold a maximum of 1 casino and bullet factory each.</font> </td></tr> </table> <br><br> </td> <TD width="150" valign="top"> <?php include("rightmenu.php");?> </TD> </TR> </table> </center> </body> </html> The Page should show the owners of casinos, but it doesnt, anyone help?
  5. I can get them set up, but 1 thing always goes wrong. it gives the customer the option of putting in the price on paypal. and if they dont the purchase cannot proceed. what i want is for the total cost amount go straight into the paypal checkout page, where customers cannot change this. please help me on deciding on what paypal option to go for as i havnt set up Zen Cart before. Thankyou. Skippa
  6. no, that didnt work i get this message Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/allder/public_html/domain/microWhois.php on line 70 its because $d_all = (isset($_POST['all'])) ? 'all' : ''; $d_com = (isset($_POST['com'])) ? 'com' : ''; $d_net = (isset($_POST['net'])) ? 'net' : ''; $d_org = (isset($_POST['org'])) ? 'org' : ''; $d_info = (isset($_POST['info'])) ? 'info' : ''; $d_'co.uk' = (isset($_POST['co.uk'])) ? 'co.uk' : ''; none of them have a . in apart from co.uk any more ideas?
  7. here's my code, <?php function checkDomain($domain,$server,$findText){ // Open a socket connection to the whois server $con = fsockopen($server, 43); if (!$con) return false; // Send the requested doman name fputs($con, $domain."\r\n"); // Read and store the server response $response = ' :'; while(!feof($con)) { $response .= fgets($con,128); } // Close the connection fclose($con); // Check the response stream whether the domain is available if (strpos($response, $findText)){ return true; } else { return false; } } function showDomainResult($domain,$server,$findText){ if (checkDomain($domain,$server,$findText)){ echo "<tr><td>$domain</td><td>AVAILABLE</td></tr>"; } else echo "<tr><td>$domain</td><td>TAKEN</td></tr>"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> <title>MicroWhois domain checker</title> <link href="style/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="main"> <div id="caption">DOMAIN LOOKUP</div> <div id="icon"> </div> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="domain" id="domain"> Domain name: <table> <tr><td><input class="text" name="domainname" type="text" size="36"/></td></tr> <tr> <td> <input type="checkbox" name="all" checked />All <input type="checkbox" name="com"/>.com <input type="checkbox" name="net"/>.net <input type="checkbox" name="org"/>.org <input type="checkbox" name="info"/>.info </td></tr> <tr><td align="center"><br/><input class="text" type="submit" name="submitBtn" value="Check domain"/></td></tr> </table> </form> <?php if (isset($_POST['submitBtn'])){ $domainbase = (isset($_POST['domainname'])) ? $_POST['domainname'] : ''; $d_all = (isset($_POST['all'])) ? 'all' : ''; $d_com = (isset($_POST['com'])) ? 'com' : ''; $d_net = (isset($_POST['net'])) ? 'net' : ''; $d_org = (isset($_POST['org'])) ? 'org' : ''; $d_info = (isset($_POST['info'])) ? 'info' : ''; // Check domains only if the base name is big enough if (strlen($domainbase)>2){ ?> <div id="caption">RESULT</div> <div id="icon2"> </div> <div id="result"> <table width="100%"> <?php if (($d_com != '') || ($d_all != '') ) showDomainResult($domainbase.".com",'whois.crsnic.net','No match for'); if (($d_net != '') || ($d_all != '') ) showDomainResult($domainbase.".net",'whois.crsnic.net','No match for'); if (($d_org != '') || ($d_all != '') ) showDomainResult($domainbase.".org",'whois.publicinterestregistry.net','NOT FOUND'); if (($d_info != '') || ($d_all != '') ) showDomainResult($domainbase.".info",'whois.afilias.net','NOT FOUND'); ?> </table> </div> <?php } } ?> <div id="source">Micro Whois 1.1</div> </div> </body> how can i add .co.uk because everytime i try it comes up with an error, it doesnt like the . (dot) how can i fix this?
  8. how do you set a background image in a table in dreamweaver cs4?
  9. no mysql db, php or html is wanted, have you got one or not
  10. lol yeah, i should of done, sorry, no i just need one that has no mysql, can be php or mysql.
  11. they all need a db, but i need one without a db
  12. i have but i cant find any.
  13. i dont want to e able to refresh the page and the hit counter goes up, i want one that adds a hit per ip that visits.
  14. skippa

    Html Anchor's

    when i click on fencing that hs "" around it i want the page to down to fencing where it has ** around it "Fencing" - Pluming - Electritions - Hairdressers - Property Improvements - Other</p> <p align="center" class="style1">*Fencing*</p> <ol> <li class="style1">There are currently no Fencing business registered with us
  15. i havent yet put my website on the internet, but i do have other websites on the net, all php, im doing a basic html site now, and i have a problem, on index.html i have a link to /business/companyname.html i want to put a link on /business/companyname.html so it goes back to index.html how do i do this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.