Jump to content
xisto Community

Roly

Members
  • Content Count

    153
  • Joined

  • Last visited

Posts posted by Roly


  1. The pages load really fast. Which GameFAQs spinoff source are you using? And by the way, what spinoffs do you frequent and what name do you go by? (just curious)

    Speed is why I like GameFAQs spinoffs better than the usual invisionfree and phpBB boards. And I think he's using the GameFAQs Hell spinoff. And what spinoff name do you go by Greven il-Vec?
    I used to use a GameFAQs spinoff for my site but now I decided to use my own, but I'm not making boards this time. I don't like being the admin of boards that much >_>

  2. For all of you who hate school, you should already have gotten used to it. I mean you will go to it every year so you might as well make good use of it and look forward to it. And when you wake up you gotta say something positive like "Alright another beatiful day of school :P". Even though I say this I don't say that because now I take the bus to school but soon I'll probably have acar or get a ride.To be honest when I was in 6 through 8 grade I hated school. Worst years ever. But starting on the 9th grade I began to understand stuff and how it all works even though I was still a n00b. And this has helpedme but whenever I do something like the first day of school I say to myself, "I hope I really embarass myself and look like an idiot". It may sound negative but it means I'm accepting reality and ready to face it in a way.I have this friend who is homke school since 8th grade. He's a Junior now but he told me his reason and it seemed pretty good. He said a guy ran over a popular guy in his school and kiled him. The guy died. My friend said "that'll teach him to not be a ****head" about the guy who ran over the other guy. But somehow it got around that he was talking about the dead guy. So immediately everyone hated him except his true friends. He got beat up almost every day by many and no one liked him. So he then stayed home schooled. He moved away after about 2 years but decided to stay home schooled still >_>


  3. I don't think having that many tables is a good idea but if you want to go for it. But if you were to do it with only one table I would recommend you store the information with another field, company. That field would be the same if the company information is the same.

    For example, company 1 would be like:

    Company: 1ClientName: Client XYZ
    PasswordReset: No, we cannot reset this clients passwords.
    RemoteAccess: To remote access this client , go to xxx.yyy.zzz.bbb IP Address.

    Company: 1
    ClientName: info
    PasswordReset: info
    RemoteAccess: info


    Then run a mysql query that would look like
    mysql_query('SELECT * FROM clients WHERE company = '.$_GET['company']);
    Then do a while statement to output all the company information to the page.

  4. You should add an id to each client and link on the left side of the screen. The link should be something like "index.php?id=1". Then the code should be like,

    <?php[/br]if(isset($_GET['id']))[br]{[/br]  $result = mysql_query('SELECT * FROM clients WHERE id = \''.$_GET['id'].'\'');[br]  if(mysql_num_rows($result) > 0)[/br]  {[br]    $row = mysql_fetch_assoc($result);[/br]    echo '<b>ClientName:</b> '.$row['ClientName'].'<br /><b>PasswordReset:</b>'.$row['PasswordReset'].'<br /><b>RemoteAccess:</b>'.$row['RemoteAddress'];[br]  } else[/br]    echo 'Invalid Client ID';[br]}
    I hope that helps, I didn't really udnerstand what you want to do >_>

  5. No you need to give a name to your text field. For it to fit my code name it area and make the form method post. It doesn't have to be post, you can leave it as method="get" but you have to change $_POST['area'] in my other code to $_GET['area']. I don't know why I prefer post over get >_>

    . Or jsut copy this >_>

    <form id="headerSearch" action="./getarea.php" method="post">[/br]       <div>[br]        <input class="text" name="area" type="text" value="Area Code Search"[/br]              onFocus="if (this.value == 'Area Code Search') this.value=''; else this.select();"[br]              onBlur="if (this.value == '') this.value='Area Code Search';" />[/br]            [br]       <input type="submit" class="submit" value="Go!" />[/br]     </div>   </form>


  6. Oh ok that works better. Yes that is possible, this is how:

    <?php[/br]// insert database connection here[br]$db = mysql_connect("localhost", "root","");[/br]mysql_select_db("db2",$db);[br][/br]if(isset($_POST['area']))[br]{[/br]$result = mysql_query('SELECT * FROM area WHERE acode = \''.$_POST['area'].'\'');[br]if(mysql_num_rows($result) > 0)[br]{[/br]  $row = mysql_fetch_assoc($result);[/br]  echo '<b>Area Code:</b> '.$row['acode'];[br]  echo '<b>State:</b> '.$row['state'];[/br]  echo '<b>Details:</b> '.$row['details'];[br]  echo '<b>Zone:</b> '.$row['zone'];[/br]} else[br]  echo 'No matches were found for the area code you submitted.';[/br]}?>

  7. I'm not sure what you mean with getting that to work but I'll try to help. The way I would do it is I would put all the area codes in a database and then search the database to see if the area code submitted matches.

    <?php[/br]// insert database connection here[br][/br]if(isset($_POST['area']))[br]{[/br]  $result = mysql_query('SELECT location FROM areacodes WHERE area = \''.$_POST['area'].'\'');[br]  if(mysql_num_rows($result) > 0)[/br]  {[br]    $row = mysql_fetch_row($result);[/br]    echo 'The area code you submitted is in '.$row[0].'.';[br]  } else[/br]    echo 'No matches were found for the area code you submitted.';[br]}[/br]?>[br][/br]<form id="headerSearch" method="post">[br]<div>[/br]<input class="text" type="text" name="area" value="Area Code Search"[br]onFocus="if (this.value == 'Area Code Search') this.value=''; else this.select();"[/br]onBlur="if (this.value == '') this.value='Area Code Search';" />[br]<input type="submit" class="submit" value="Go!" />[/br]</div>[br]</form>[/br]
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.