matt12345's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
35 (0.04 per day)
Joined:
08-June 12
Profile Views:
552
Last Active:
User is offline Apr 29 2013 03:07 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Safari
Favorite Processor:
Intel
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   matt12345 has not set their status

Posts I've Made

  1. In Topic: URL Requests & web.config

    Posted 18 Apr 2013

    View Postmodi123_1, on 18 April 2013 - 09:40 PM, said:

    Hmm.. okay.. So ajax isn't something that would be affected by being on linux. It's a variation of javascript.

    If you can run javascript on your site then you can run ajax. It's as simple as that.


    I know it's a variation of Javascript. However, I'm only telling you exactly what I experienced while using Linux. All my non-AJAX Javascript code worked fine, but when it came to actually running AJAX code, that variant of Javascript wouldn't work at all.

    Now that I'm using Windows, not only does all my non-AJAX Javascript code run smoothly, but so does my AJAX code.
  2. In Topic: URL Requests & web.config

    Posted 18 Apr 2013

    View Postmodi123_1, on 18 April 2013 - 08:58 PM, said:

    It doesn't sound like you are using the windows hosting for asp.net pages, right? Seems like an odd choice for hosting if you are not going that route, but okay.

    Examples of how htaccess would have solved your problems:

    1 -> read up on htaccess basics
    http://www.htaccessb...tom-error-page/

    2 -> adding file extensions.
    http://support.godad...file-extensions

    ---------
    As for the webconfig typically you would set all that up in the IIS. Do you have access to that?


    I started out on Linux hosting, but quickly found that AJAX wasn't working, though Javascript generally was. I did some research, and from where I looked, I came to the conclusion that Linux hosting wasn't going to work for me anytime soon, as my site does use quite a bit of AJAX (for me, when logged into my blog). Linux, alongside my .htaccess file, actually worked fine up until the OS switch, and all went well till then in regards to URL requests.

    Now, however, I get AJAX support but at the cost of URL bugs (like I said in the previous sentence). If there's a way to get Linux hosting to support AJAX though, that'd be great, as I'm sure a free switch back to Linux with some .htaccess editing (and/or whatever else would be required) would be a lot smoother than trying to get this web.config file all written out from scratch. Addressing your provided links, if I'm to stay on Windows, shouldn't I be researching the web.config file, rather than the .htaccess file?

    Yes, I have access to IIS. In Godaddy, it can be found by:

    My Account > Web Hosting > Launch > Hosting Details > Tools > IIS Management

    Within IIS, there's one directory listed (Content Root), and it's check marked by default, with a status that reads "Setup."
  3. In Topic: AJAX base64 Parameter

    Posted 29 Jan 2013

    I figured it out.
  4. In Topic: Page showing earliest record instead of latest

    Posted 14 Oct 2012

    View PostCTphpnwb, on 14 October 2012 - 12:01 PM, said:

    Ok, then why are you using DESC? That's going to show the latest first and end with the first item.


    I just removed "DESC." Still, the issue of the latest messages' ID numbers appearing instead of the messages themselves still is present.
  5. In Topic: Page showing earliest record instead of latest

    Posted 14 Oct 2012

    View PostCTphpnwb, on 14 October 2012 - 10:45 AM, said:

    Oh, sorry. I meant to say
    MAX(id) as last_message
    



    After changing the code to what you said here, it now at least identifies the ID of the latest message. The only thing wrong is that it echoes the ID number of the latest message instead of the latest message itself! Help getting it to echo the proper thing would be great. Here is the code of my updated page:

    
     require("./connect.php");
                                $feg = mysql_query("SELECT MAX(id) as last_message,con_id,id FROM `messages` GROUP BY con_id ORDER BY id DESC");
    
                                $rel = mysql_num_rows($feg);
                                
                                    
                                echo "<center><br/><i>Inbox:</i><br/><br/></center>";
                                if($rel > 0){
                                    $i=0;
                                    
                                    while($rek = mysql_fetch_array($feg)){
                                       
                                        
                                        
                                        if($rek['con_id'] > 1){
                                            $first = current(explode(".", $rek['con_id']));
                                            $second = next(explode(".", $rek['con_id']));
                                                    if(($first === $userid) && ($second === $userid) ){
                                                        $i++;
                                                        if($i<2){
                                                            echo "<center><b>$username</b><br/><a href='./conversation.php?id=$rek[con_id]'>".$rek['last_message']."</a><br/><br/></center>";
                                                        }
                                                    }
                                                    
                                                    
                                        
                                                    if(($first === $userid) && ($second !== $userid) ){
                                                        
                                                            $rt = mysql_query("SELECT * FROM `users` WHERE id='$second' GROUP BY id DESC");
                                                            
                                                            $rew = mysql_fetch_assoc($rt);
                                                            $nk = $rew['username'];
                                                                
                                                                $string = "<center><b>$nk</b><br/><a href='./conversation.php?id=$rek[con_id]'>".$rek['last_message']."</a><br/><br/></center>";
                                                                echo $string;
                                                                
                                                        
                                                    }
                                                    
                                                    if(($first !== $userid) && ($second === $userid) ){
                                                          $rt = mysql_query("SELECT * FROM `users` WHERE id='$first' GROUP BY id DESC");
                                                            
                                                            $rew = mysql_fetch_assoc($rt);
                                                            $nk = $rew['username'];
                                                          
                                                                $string = "<center><b>$nk</b><br/><a href='./conversation.php?id=$rek[con_id]'>".$rek['last_message']."</a><br/><br/></center>";
                                                                echo $string;
                                                     
                                                                  
                                                    }
                                                
                                            
                                        }   
                                    }
                                        
                                      
                                    
                                }else{
                                    echo "<center>No messages.</center>";
                                }
                                
                        
    
    


    Thanks.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
1
Programming Languages:
HTML, CSS, PHP, MySQL, JavaScript

Contact Information

E-mail:
Click here to e-mail me

Friends

matt12345 hasn't added any friends yet.

Comments

matt12345 has no profile comments yet. Why not say hello?