Jump to content

skippa

Members
  • Posts

    43
  • Joined

  • Last visited

    Never

Posts posted by skippa

  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. 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

  3. 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?

  4. 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

  5. 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?

  6. 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?

  7. 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

  8. 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?

  9. hi i want a frameset code that looks like this

    _____________

    |_____________|

    | |                | |

    | |                | |

    | |                | |

    | |                | |

     

    can any one help me?

     

    i want there to be differet pages in each frame, e.g main.php left.php right.php top.php

     

    thankyou

     

    chris

  10. Whats wrong with this?

     

    CREATE TABLE `poker` (

      `id` int(11) NOT NULL auto_increment,

      `player1` varchar(40) NOT NULL default '',

      `player2` varchar(40) default NULL,

      `player3` varchar(40) default NULL,

      `player4` varchar(40) default NULL,

      `cards1` varchar(250) default NULL,

      `cards2` varchar(250) default NULL,

      `cards3` varchar(250) default NULL,

      `cards4` varchar(250) default NULL,

      `money1` int(11) default '0',

      `money2` int(11) default '0',

      `money3` int(11) default '0',

      `money4` int(11) default '0',

      `status` varchar(250) NOT NULL default '',

      `ante` int(16) NOT NULL default '0',

      `pot` int(16) NOT NULL default '0',

      `stage` int(1) default '0',

      `swapstart` int(1) NOT NULL default '0',

      `currentraise` int(1) NOT NULL default '0',

      `allin` binary(1) NOT NULL default '0',

      `lastmove` int(11) default NULL,',

      `created` int(11) NOT NULL default '0',

      `p1` varchar(100) NOT NULL default '',

      `p2` varchar(100) NOT NULL default '',

      `p3` varchar(100) character set latin1 collate latin1_spanish_ci NOT NULL default '',

      `p4` varchar(100) character set latin1 collate latin1_spanish_ci NOT NULL default '',

      `entry` varchar(100) NOT NULL default '',

      PRIMARY KEY  (`id`),

      UNIQUE KEY `player1` (`player1`,`player2`,`player3`,`player4`)

    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

  11. basicly, when each player of my game registers, it inserts there ip address into the database. and i would like to create a search to find out how many users and playing on the same ip address. i was thinking.

     

    search for 'username' whose is adress = 'their ip address would be here' if ip address =''their ip address would be here' show usernames..

     

    could someone help me?

     

    thanks

     

    chris.

  12. its difficult to explain.

     

    basicly

     

    Your name:                (Name box here)

    email to send mail to:  (email box here)

    email to send mail to:  (email box here)

    email to send mail to:  (email box here)

    email to send mail to:  (email box here)

    Message:                  (message box here)

     

  13. ok. so ive got a php email form. but i want to change it, instead of me changing the email address in the code, i would like there to be several boxes with optional emails users on my site can send a prewritten email to. is there anyway i can do this?

     

    chris

×
×
  • 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.