User Profile

Collapse

Profile Sidebar

Collapse
LuiePL
LuiePL
Last Activity: Feb 8 '07, 11:33 AM
Joined: Sep 11 '06
Location: Philly
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • LuiePL
    started a topic IMAP body formatting
    in PHP

    IMAP body formatting

    I'm developing a web based email application for my website, and right now I'm working on getting on the "read" portion up and working. I would like it to only display the actual text of the message that was typed. It also repeats the message. Below is an example of it.





    --0-70050447-1167043329=:890 22
    Content-Type: text/plain; charset=iso-8859-7
    Content-Transfer-Encoding: quoted-printable...
    See more | Go to post

  • LuiePL
    started a topic IMAP from email not displaying
    in PHP

    IMAP from email not displaying

    I'm developing a web based email application for my website, and right now I'm working on getting on the "read" portion up and working. When I try to have it display who sent the email, if it has a persons name, it uses that (i.e. "Luie"). I have been using the following, and changing to to other values doesn't seem to matter:

    $mailHeader = @imap_headerinf o($conn, $i)
    $mailHeader->reply_toaddres s ...
    See more | Go to post

  • LuiePL
    started a topic Static Column amongst Multi-Column Loop
    in PHP

    Static Column amongst Multi-Column Loop

    I'm looking to update my member list, Since certain states will have more members, I've decided to go with a "single list" approach. I found the following code from this site, which I have modified for my purposes:

    [PHP]$columns = 3;

    $query = Non Admins;
    $result = mysql_query($qu ery);

    $num_rows = mysql_num_rows( $result);

    //we are going to set a new variables...
    See more | Go to post

  • LuiePL
    replied to Need some AJAX/PHP/Array help
    OK, I'll look through those when I get some time. Thanks for all your help in getting this to work.
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    I went through my test page and got rid of the Array it it works with out it. So I got rid of it on my live page, and it works there also, so I'm thinking it was only necessary when I had the HTML tag issue.

    Now the only issue I've run into is it not working in firefox. Throughout the testing it never worked, so it's not something that I suddenly changed that stopped it. I threw up a message on the live page telling the people that...
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    YES!!! OK, well I was looking through the code some more, and tried to display the whole eval(Array()) thing and it was showing as undefined, so I dropped the Array() and now it's working. So I guess it had to do with the HTML tags, now that they're gone, it's working!

    I just have to fiddle with the Location a little, since it's a drop down right now, but at least it's working. Thanks for the help guys!
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    OK I got rid of the HTML tags in the getMember.php file (something that shouldn't have been there to begin with), so it's no longer giving me all the code, however, it's still not populating the fields as it should.
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    Well this is interesting... I threw in the alert and it shows this:

    [HTML]<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitl ed Document</title>
    </head>

    <body>

    formObj.firstna me.value = 'Luie';
    formObj.lastnam e.value = 'Lugo';
    formObj.locatio n.value...
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    I just added "Array()" around ajaxObjects[indexThis] and it's now working, a little. I now get it showing what the "ajaxObject s[indexThis].response" is. So I know that the eval() is working to an extent. Also I'm not getting "Done, with errors on page" messages, so the syntax is good.

    So my code looks like:

    Code:
    var ajaxObjects = new Array();
    var currentMemberID = false;
    ...
    See more | Go to post
    Last edited by LuiePL; Sep 22 '06, 02:49 AM. Reason: Switched some text

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    I have the indexThis in there because it's the only way the code goes from the getData function to the showData. However it's stopping at the eval() part for some reason.

    Connecting to the database isn't the problem, because when I go to the getMember.php page and define the member number explicitly it returns the proper values.

    You can email your code if you want, that might help....
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    Could it have anything to do with the fact that my memberID contains letters? I copied all the files from the demo just changing it so it would connect to my database and allow letters, and it doesnt work.

    So I added the clients table to my database, and I'm getting a Syntax error for this line:

    eval(ajaxObject s[indexThis].response);...
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    I actually go most if it working now. The code in the demo is different than the code they give you which I thought was interesting... Below is the code I'm using on this page. The getMember.php page puts out the information right, so it's got to be something in the AJAX function somewhere.

    Code:
    var ajax = new sack();
    var currentMemberID = false;
    
    function getMemberData()
    {
    	var indexThis = ajax.length;
    ...
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Go to the last record
    Many thanks!!!!
    See more | Go to post

    Leave a comment:


  • LuiePL
    started a topic Go to the last record

    Go to the last record

    How can I go to the last record of database? I've been having problems after creating a new record, and trying to display it, but I don't know what primary ID it's given, so I dont know how to go the last record. Thanks for the help.
    See more | Go to post

  • LuiePL
    replied to Need some AJAX/PHP/Array help
    I'd rather use the method you suggested. It makes it easier that way, and plus I want to learn AJAX, so I'd like to get it working.
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    I tried it out, but no luck. At first I just copied everything over just changing the values for my database. Then I tried to customize it so it's more inline with what I'm trying to do.

    You can see my page at http://beta.eastcoast911.com/lookup.php. I saved the ajax.js file so that's not the problem. I threw in a line into each function on the lookup.php page to change the <div> whenever it was called, but it never changes.
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    That is actually what I've been trying to find, but no one's been able to help point me in that direction. I'll have to look at how it works it hopefully get it to work. Thanks for the help!
    See more | Go to post

    Leave a comment:


  • LuiePL
    replied to Need some AJAX/PHP/Array help
    Below is the code as it is now. if you go to the page it is on here, you'll notice it doesn't fill the table, or change the <div> field. So there's got to be an error somewhere in there. But I understand where you're coming from with your idea.

    Do I need to represent the PHP data differently since it's within the Javascript maybe?

    [PHP]
    echo "<table width='590px' border=1 cellpadding=0 cellspacing=0>" ;...
    See more | Go to post

    Leave a comment:


  • LuiePL
    started a topic Need some AJAX/PHP/Array help

    Need some AJAX/PHP/Array help

    I'm looking to repopulate some fields when an administrator chooses a different user. I think this can be done through arrays, since by the time it gets to the end computer the PHP has already been parsed, and running a javascript funtion with PHP in it, would ultimately prove fruitless. But what I'm trying to figure out is how to take the array that was built in PHP and pass it (as a global variable?) to the javascript to use and read.
    ...
    See more | Go to post

  • LuiePL
    replied to Setting a PHP value in JS for SQL
    I guess one example of what I'm trying to do is when you do a survey, and you get an instant result without the page reloading (ie use of AJAX). So I'm just trying to figure out how to use AJAX in this scenario.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...