Jump to content

blackcell

Members
  • Posts

    439
  • Joined

  • Last visited

Posts posted by blackcell

  1. Hey guys,

    Really new to Linux stuff. I have a buddy that has recently used Ubuntu to set up a squid proxy server that we finally got up and running. We also have nTop on this system and it works. The problem is, nTop is suppose to support the ability to dump captured data to a mysql database and has a preference to specify. The problem is, it doesn't seem to be working lol. I don't know if I need to create the basic table structure or what and if so I have no idea where to find the structure setup. Any push in the right direction would help. I have searched keyword combos through google and it doesn't seem to shed any light on it.

  2. I am trying to perform a mysql search based upon the first letter of the users choice. I need to tell mysql to to look only at the first letter of the value in table_field. I have 2 years of experience with mysql but I haven't really cracked into using mysql's advanced usage and want to start. I thought maybe substring(string,len) from mysql's website was what I wanted but either that isn't it or I am not using it right.

     

    Thanks guys.

  3. Hello,

     

    I have tried to find what I need on the mysql site but im not for sure. I know the basics of mysql until it starts with the joins. Basically, I have a ticket system I developed. I want to be able to synchronize two systems by "importing" the table 'tickets_data' hosted on system 2 to the table 'tickets_data_hostname' to system 1. I need to modify my sql query that shows all this data so that it pulls the data from both tables at once (seemingly). The table structure is identical but the data contents are different.

     

    # Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8

    # MySQL client version: 5.1.30

     

    Edit1: mysql & apache version

  4. I can't find the problem with this Ajax tutorial example. Can someone tell me what stupid little thing I am doing wrong?

     

    root/index.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
      <title>Test</title>
    <script language="javascript" type="text/javascript">
       var request = false;
       try {
         request = new XMLHttpRequest();
       } catch (trymicrosoft) {
         try {
           request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (othermicrosoft) {
           try {
             request = new ActiveXObject("Microsoft.XMLHTTP");
           } catch (failed) {
             request = false;
           }
         }
       }
       if (!request)
         alert("Error initializing XMLHttpRequest!");
       function getCustomerInfo() {
         var phone = document.getElementById("phone").value;
         var url = "/scripts/index.php?phone=" + escape(phone);
         request.open("GET", url, true);
         request.onreadystatechange = updatePage;
         request.send(null);
       }
        function updatePage() {
             if (request.readyState == 4) {
               if (request.status == 200) {
                 var response = request.responseText;
                 document.getElementById("order").value = response;
               } else
                 alert("status is " + request.status);
                 var response = request.responseText;
                 document.getElementById("order").value = response;
             }
           }
    </script>
    
    </head>
    <body>
      <p><img src="breakneck-logo_4c.gif" alt="Break Neck Pizza" /></p>
      <form action="POST">
       <p>Enter your phone number:
        <input type="text" size="14" name="phone" id="phone"
               onChange="getCustomerInfo();" />
       </p>
       <p>Your order will be delivered to:</p>
       <div id="address"></div>
       <p>Type your order in here:</p>
       <p><textarea name="order" rows="6" cols="50" id="order"></textarea></p>
       <p><input type="submit" value="Order Pizza" id="submit" /></p>
      </form>
    </body>
    </html>
    

     

    root/scripts/index.php

    <?php
    echo "Hello";
    ?>
    

     

    Shouldn't this return "Hello" in the order box?

  5. What does the client side script expect back from the server response? Like you send the HTTP request and wait for it by looking at the Ready State, but if I call a script at /scripts/findEmail.ascript.php, how do I send what I want the response to be in the scripts/findEmail.ascript.php file using php programming? Sorry if you don't understand this is hard to explain but very basic.

     

    Edit: Do you just echo the result that needs to be sent back to the client?

  6. Project: World of Warcraft Auction House assistance

     

    Looking for: Volunteer(s) who are WoW players and php scriptwriters looking to improve their php skill by scriptwriting around a game they love.

     

    Description:

    I would like to create a system that will give a guild the ability to install on their guild website. This sytem will offer the ability for a user to input a price they are selling/buying items from on the auction house. This will in turn show averaged price breakdowns on each item entered, giving the player an idea of what to sell an item for if they have no competition. It would also be nice to show charted data results spanning months. More feature would be the ability to add comments to each item for discussion and multi-realm support.

     

    Note:

    If anybody knows of a system that averages player input prices let me know. I know places like wowhead.com gives users a retail price for items but I find they are occasionally off significantly.

  7. Hello ladies and gents...

     

    I am curious if any of you guys use mediawiki. I have started propping one up for my company and I have an issue that is preventing a department from converting their documents. I have found that when you use headlines to create table of contents, it works great in the sense that it numbers the headlines in the table of contents for you. e.g 1.1, 1.2, 1.3, 2.1, 2.2, 3.1, 3.2, etc...

    The problem is I need those numbers to display before the headline title in the body. Any mediawiki gurus around here willing to give some guidance.

     

    Oh and I am not trying to be rude but don't send me a link with the mediawiki's address and tell me to search it because I have been searching for three weeks for system and user built hooks/widgets with no luck.

     

    Thanks!

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