User Profile

Collapse

Profile Sidebar

Collapse
ryan2345
ryan2345
Last Activity: May 1 '08, 04:05 PM
Joined: Mar 20 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ryan2345
    started a topic Problem with submit button
    in PHP

    Problem with submit button

    Hi,
    I have a search page. After the user enters the keyword to be searched and if he presses enter key to search then the page gets refreshed. But if he clicks on the submit button then the result is displayed.What is the problem in the below code. I want the result to be displayed even if user presses enter key.

    [code=php]
    if (!isset($_POST['Submit'])) {
    // form not submitted
    ?>
    <p><strong>...
    See more | Go to post

  • ryan2345
    replied to Problem opening in new page
    in PHP
    User clicks on a username on the results page(p1), this opens a new window with the users details(p2).
    The user then clicks on another username on the results page(p1), and this then reloads the user details of new user in p2. It should be in p3.
    p2 should still contain the same user details.
    Sorry for being unclear...
    See more | Go to post

    Leave a comment:


  • ryan2345
    started a topic Problem opening in new page
    in PHP

    Problem opening in new page

    I have made a search page. Result of search displays the name of users along with their experience. if a user clicks on any name then a new browser page is opened and the details of that user are dipalyed. So now there are 2 pages open: 1 is the result page and the other is details page. If the user again clicks on other user name then that users details are shown on the same page on which it was showing previously. Now there should be 3 pages opened:...
    See more | Go to post

  • ryan2345
    replied to Display name of users who are online
    in PHP
    The problem of refreshing got solved. I misplaced the meta tags now its working correctly. I wanted to display the name,logo of the site and the menu option on top of chat so how can i do that. If i place them directly on top of frames then the frames get misplaced. I tried using even another frame for it but that too didnt worked out. Can you plz help me with placing the following layout in my chat.php file.
    [code=php]
    <body>...
    See more | Go to post

    Leave a comment:


  • ryan2345
    replied to Display name of users who are online
    in PHP
    Thankyou. I tried doing using frames with meta refresh.
    I tried the frame part.
    I made another file called chat.php code for which is as follows
    [code=php]
    <HTML>
    <HEAD>
    <TITLE> Live Chat </TITLE>
    </HEAD>
    <FRAMESET COLS="70%,*">
    <FRAME SRC="index.php" >
    <FRAME SRC="online.php ">
    <meta http-equiv="refresh"...
    See more | Go to post

    Leave a comment:


  • ryan2345
    replied to Display name of users who are online
    in PHP
    Thanks.
    Ive downloaded SAJAX version 0.12.
    Now can you plz help me with displaying name of users at a side on my chat window which refreshes itself to display the users as they log in and log out....
    See more | Go to post

    Leave a comment:


  • ryan2345
    started a topic Display name of users who are online
    in PHP

    Display name of users who are online

    Hi,
    I have made a website wherein the user creates his account. Then the user can login into his account, update his account, search for people with different key skills. Theres also a discussion board and private messaging system in it. I have tried a simple script for live discussion with the help of a tutorial. Its kind of a live open chat. Now i wanted that when the user clicks on the live chat link there should be a frame on that window...
    See more | Go to post

  • ryan2345
    replied to Download the files stored in the database
    in PHP
    Sorry. The changes you told me to do in ur previous post worked out and the file only gets saved correctly. When the dialog box opens for open,save and cancel the download the save option is working correctly. But if i click on the open button then its not opening file in MS word. On clicking the open button it first asks me to convert the file to RTF, word for windows, words for macintosh,etc. If i click on anyone of the options then it displays...
    See more | Go to post

    Leave a comment:


  • ryan2345
    replied to Download the files stored in the database
    in PHP
    It is displaying the type as Ms word in dialog box but if we click to open it then it first to convert the file to and displays several options and after clicking on any option it displays page could not be found. The page doesnt gets openedon clicking open.
    The user can even upload the file as .txt so what should be done for that.
    See more | Go to post

    Leave a comment:


  • ryan2345
    replied to Download the files stored in the database
    in PHP
    Thanks i tried using this $info['Content'] so it gave parse syntax error.
    Then i tried this $info[Content]
    So it is giving me the following error:
    Warning: readfile(ÐÏࡱ á) [function.readfi le]: failed to open stream: Invalid argument in C:\xampp\htdocs \skill_search\g et_file.php on line 11

    What could be the reason?
    See more | Go to post

    Leave a comment:


  • ryan2345
    replied to Download the files stored in the database
    in PHP
    I tried the code. The dialog box appears to open,save or cancel the download. But now when i click on save it saves the file properly with the given extension to it. For eg. if the file is a .doc or .txt file it is saved to disk as it is. But if click on open then it opens an html page and nothing is displayed on it. Even in the dialog box it shows the page type to be an html page. This is the code that i ve used. What could possibly b wrong with...
    See more | Go to post

    Leave a comment:


  • ryan2345
    replied to Download the files stored in the database
    in PHP
    Can anyone plz guide me with it.
    See more | Go to post

    Leave a comment:


  • ryan2345
    replied to Problem in search from database
    My problem has got solved.
    I tried using joins and it worked well.
    Sorry and thanks.
    See more | Go to post

    Leave a comment:


  • ryan2345
    started a topic Problem in search from database

    Problem in search from database

    Hi,
    I have made a search page in which the user enters the keywords to be searched separated with a comma. The code that i ve used works well but it is displaying the name of the user twice.
    Eample: There are users registered in the database. Now if
    A: C,Perl,Python
    B:Java,Perl
    For eg: now the user has entered Perl,Python as the keywords.
    Then it displays the name A twice and B once.
    I wanted that...
    See more | Go to post

  • ryan2345
    replied to Download the files stored in the database
    in PHP
    Thanks alot. Its working fine now. But the problem is it is opening in the same page. I wanted that user should be given a dialog box to either open it or save it on their desktop. Can you plz help me with it.
    Thanku.
    See more | Go to post

    Leave a comment:


  • ryan2345
    replied to Download the files stored in the database
    in PHP
    Thanks.
    I looked at the post and tried it. Now when i click on the link, a dialog box appears to open save the get_file.php file. The document that i need to open doesnt gets opened.
    Here is the code that i tried:

    [code=php]
    View Resume:<a href="get_file. php?id=<?php echo $info2['UserDetailsId'];
    ?>"><?php echo $info2['ResumeFile']; ?></a>
    [/code]

    ...
    See more | Go to post

    Leave a comment:


  • ryan2345
    replied to Download the files stored in the database
    in PHP
    I have gone through that manual but i had a doubt in it.
    Like when a user registers he stores a image or a word document describing himself. So when a user views the profile of another user then he should be given an option to download the word document uploaded by that particular user. It changs from user to user. They are associated in the datbase with the name of the user. How can the filename be changed everytime in the header because...
    See more | Go to post

    Leave a comment:


  • ryan2345
    started a topic Download the files stored in the database
    in PHP

    Download the files stored in the database

    Hi,
    I ve stored .doc , .txt, .zip , .jpg, etc. files in the database.
    I wanted to give the user a link to download those files.
    I wanted it to be downloaded in a way as the attachments are downloaded.
    Like the user should be given a option to open or save the file.
    Can you plz help me how to go for it.
    See more | Go to post

  • ryan2345
    replied to Problem with ajax im
    The login page for ajax im is index.html
    I tried editing it. I removed the new user register and forgot password part from it.
    Now i want that when a user is logged in my sitr then just by clicking on the im option he should be able to chat without logging in again.
    The code of index.html is here:
    Plz help me out....
    See more | Go to post

    Leave a comment:


  • ryan2345
    replied to Problem with ajax im
    It is seting session and i hve also used sessioms in my login page. But still couldnt get it. I ve pasted part of the file i think that needs to be changed.

    [code=php]
    <?php
    require('config .php');

    include('json.p hp');

    // string sanitizer - only alphanumerics //
    function sanitize_alphan um($string, $min='', $max='')
    {
    $string = preg_replace('/[^a-zA-Z0-9\s]/', '',...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...