Jump to content

john010117

Members
  • Posts

    492
  • Joined

  • Last visited

    Never

Posts posted by john010117

  1. I'll be talking about the technical issues.

    All the links on the top nav bar doesn't work (except for tipsntricks.html). There is no link to the registration page (if there is a registration page). I just typed in a dummy user/pass, and all I got was text. You should add a layout to the processing page also.

  2. I downloaded the package from wampserver.com, and ran the installation exe file. I "turned off" Apache and MySQL (I meant to say MySQL, not PHP) by clicking the wamp icon in the taskbar, and selecting "Stop service" for each one.

  3. On the second script that you've posted...

     

    <body bgcolor="#000000" text="#FFFFFF">
    <table width="500" border="1" bordercolor="#FFFFFF">
    
    <?php
    $link = mysql_connect("localhost", "****", "****");
    if (!$link) {
        die('Could not connect: ' . mysql_error());
    }
    
    $db_selected = mysql_select_db("mitact_mitact");
    if (!$db_selected) {
        die ('Can\'t use foo : ' . mysql_error());
    }
    $genre = null;
    $result = mysql_query("SELECT * FROM  `Bands_Genre`");
    if (!$result) {
        die('Invalid query: ' . mysql_error());
    }
    
    while ($row = mysql_fetch_array($result)) {
        $genre[$row["gid"]] = $row["name"];
    }
    
    mysql_free_result($result);
    $band_name = urldecode($_GET['band'];
    $band_name_escaped = mysql_real_escape_string($band_name);
    
    $result = mysql_query("SELECT * FROM  `Bands_Confirmed` WHERE  `bandname` =  '$band_name_escaped'");
    if (!$result) {
        die('Invalid query: ' . mysql_error());
    }
    addslashes($result);
    while ($row = mysql_fetch_array($result)) {//while fetch BEGINS
    ?>
    
    <tbody>
      <tr>
         <td colspan="2">
          <h2><?php echo $row["bandname"];?></h2>
        </td>
       </tr>
       <tr>
          <td colspan="2">
          <ul>
            <li>Genre 1: <?php echo $genre[$row["genre1"]];?></li>
            <?php if ($genre[$row["genre2"]]<>"") 
                      {echo'<li>Genre 2:',$genre[$row["genre2"]],'</li>';}?>
    
                    <?php if ($genre[$row["genre3"]]<>"") 
                      {echo '<li>Genre 3:',$genre[$row["genre3"]],'</li>';}?>
    
            <li>Original music, Covers or Both: <?php echo $row["type"];?></li>
            </ul>
        </td>
       </tr>
        <tr>
           <td colspan="2">
          <div>
            <dl>
              <dt><?php echo $row["contact1"];?></dt>
    
             <?php if ($row["contact1number"]<>"")
               {echo '<dd>',$row["contact1number"],'</dd>';}?>
    
              <dd><?php echo $row["email1"];?></dd>
              <dt><?php echo $row["contact2"];?></dt>
              <dd><?php echo $row["contact2number"];?></dd>
              <dd><?php echo $row["email2"];?></dd>
    
              <?php if ($row["managerdetails"]<>"")
               {echo '<dt>Manager details</dt>';
                 echo '<dd>',$row["managerdetails"],'</dd>';}?>
              
              <?php if ($row["managerdetails"]<>"")
               {echo '<dt>Booking agent</dt>';
                 echo '<dd>',$row["bookingagentdetails"],'</dd>';}?>
            </dl>
          </div>
        </td>
      </tr>
      <tr>
    <?php if ($row["myspace"]<>"")
               {echo '<td width="250">','MySpace: <a href="';
                 echo $row["myspace"];
                 echo'">',$row["myspace"],'</a></td>';}?>
    
    <?php if ($row["website"]<>"")
               {echo '<td width="250">','Website: <a href="';
                 echo $row["website"];
                 echo'">',$row["website"],'</a></td>';}?>
      </tr>
    </tbody>
    
    <?php
    } //END WHILE
    
    mysql_free_result($result);
    mysql_close($link);
    ?>
    

  4. Hi.

    I'm not really used to having servers installed on my [old] comp. I've installed WAMP successfully, and verified that it runs correctly. But when I turn of both the Apache server and PHP, the process named httpd.exe is still running. When I try to end the process, it says that I don't have the permission to do that (even though I'm the only admin on the comp). How do I turn it off?

     

    BTW, I have Windows 2k.

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