Jump to content

aj123cd

Members
  • Posts

    82
  • Joined

  • Last visited

Posts posted by aj123cd

  1. Thank You DaveyK.

     

    Now I got this out put. How do I get the email from this multi array

     

    array(1) {
      ["contacts"]=>
      array(4) {
        ["start"]=>
        int(0)
        ["count"]=>
        int(5)
        ["total"]=>
        int(64)
        ["contact"]=>
        array(5) {
          [0]=>
          array(3) {
            ["isConnection"]=>
            bool(false)
            ["id"]=>
            int(137)
            ["fields"]=>
            array(2) {
              [0]=>
              array(6) {
                ["id"]=>
                int(47)
                ["type"]=>
                string(7) "otherid"
                ["value"]=>
                string(20) "emailaddress@hotmail.com"
                ["editedBy"]=>
                string(5) "OWNER"
                ["flags"]=>
                array(1) {
                  [0]=>
                  string(3) "MSN"
                }
                ["categories"]=>
                array(0) {
                }
              }
              [1]=>
              array(5) {
                ["id"]=>
                int(46)
                ["type"]=>
                string(4) "name"
                ["value"]=>
                array(7) {
                  ["givenName"]=>
                  string(5) "(Y)vv"
                  ["middleName"]=>
                  string(0) ""
                  ["familyName"]=>
                  string(0) ""
                  ["prefix"]=>
                  string(0) ""
                  ["suffix"]=>
                  string(0) ""
                  ["givenNameSound"]=>
                  string(0) ""
                  ["familyNameSound"]=>
                  string(0) ""
                }
                ["editedBy"]=>
                string(5) "OWNER"
                ["categories"]=>
                array(0) {
                }
              }
            }
          }
          [1]=>
          array(3) {
            ["isConnection"]=>
            bool(false)
            ["id"]=>
            int(16777360)
            ["fields"]=>
            array(3) {
              [0]=>
              array(5) {
                ["id"]=>
                int(16777276)
                ["type"]=>
                string(5) "email"
                ["value"]=>
                string(23) "emailaddress@hotmail.co.uk"
                ["editedBy"]=>
                string(5) "OWNER"
                ["categories"]=>
                array(0) {
                }
              }
              [1]=>
              array(5) {
                ["id"]=>
                int(16777274)
                ["type"]=>
                string(4) "name"
                ["value"]=>
                array(7) {
                  ["givenName"]=>
                  string(7) "aarathy"
                  ["middleName"]=>
                  string(0) ""
                  ["familyName"]=>
                  string(1) "j"
                  ["prefix"]=>
                  string(0) ""
                  ["suffix"]=>
                  string(0) ""
                  ["givenNameSound"]=>
                  string(0) ""
                  ["familyNameSound"]=>
                  string(0) ""
                }
                ["editedBy"]=>
                string(5) "OWNER"
                ["categories"]=>
                array(0) {
                }
              }
              [2]=>
              array(5) {
                ["id"]=>
                int(16777275)
                ["type"]=>
                string(4) "name"
                ["value"]=>
                array(7) {
                  ["givenName"]=>
                  string(7) "aarathy"
                  ["middleName"]=>
                  string(0) ""
                  ["familyName"]=>
                  string(1) "j"
                  ["prefix"]=>
                  string(0) ""
                  ["suffix"]=>
                  string(0) ""
                  ["givenNameSound"]=>
                  string(0) ""
                  ["familyNameSound"]=>
                  string(0) ""
                }
                ["editedBy"]=>
                string(5) "OWNER"
                ["categories"]=>
                array(0) {
                }
              }
            }
          }
          [2]=>
          array(3) {
            ["isConnection"]=>
            bool(false)
            ["id"]=>
            int(126)
            ["fields"]=>
            array(2) {
              [0]=>
              array(5) {
                ["id"]=>
                int(2)
                ["type"]=>
                string(7) "yahooid"
                ["value"]=>
                string(16) "aditya_kommineni"
                ["editedBy"]=>
                string(5) "OWNER"
                ["categories"]=>
                array(0) {
                }
              }
              [1]=>
              array(5) {
                ["id"]=>
                int(1)
                ["type"]=>
                string(4) "name"
                ["value"]=>
                array(7) {
                  ["givenName"]=>
                  string(16) "aditya_kommineni"
                  ["middleName"]=>
                  string(0) ""
                  ["familyName"]=>
                  string(0) ""
                  ["prefix"]=>
                  string(0) ""
                  ["suffix"]=>
                  string(0) ""
                  ["givenNameSound"]=>
                  string(0) ""
                  ["familyNameSound"]=>
                  string(0) ""
                }
                ["editedBy"]=>
                string(5) "OWNER"
                ["categories"]=>
                array(0) {
                }
              }
            }
          }
          [3]=>
          array(3) {
            ["isConnection"]=>
            bool(false)
            ["id"]=>
            int(16777356)
            ["fields"]=>
            array(1) {
              [0]=>
              array(5) {
                ["id"]=>
                int(16777267)
                ["type"]=>
                string(5) "email"
                ["value"]=>
                string(25) "admissions@buckscc.gov.uk"
                ["editedBy"]=>
                string(5) "OWNER"
                ["categories"]=>
                array(0) {
                }
              }
            }
          }
          [4]=>
          array(3) {
            ["isConnection"]=>
            bool(false)
            ["id"]=>
            int(16777386)
            ["fields"]=>
            array(1) {
              [0]=>
              array(5) {
                ["id"]=>
                int(16777305)
                ["type"]=>
                string(5) "email"
                ["value"]=>
                string(26) "emailaddress@renault.co.uk"
                ["editedBy"]=>
                string(5) "OWNER"
                ["categories"]=>
                array(0) {
                }
              }
            }
          }
        }
      }
    }

     

  2. This the output I am getting from yahoo contact API

    How can I grab or get the email address and given name.

     

    Please advise me.

    Thank you for your help

     

    OUTPUT

    {
      "contacts": {
        "start": 0,
        "count": 5,
        "total": 5,
        "contact": [
          {
            "isConnection": false,
            "id": 3,
            "fields": [
              {
                "id": 6,
                "type": "yahooid",
                "value": "raji_kris09",
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              },
              {
                "id": 7,
                "type": "guid",
                "value": "OEZYDW3EVJJPLQMU3ZFTLYZR7Y",
                "editedBy": "OWNER",
                "flags": [
                  "Y360"
                ],
                "categories": [
                 
                ],
                "isConnection": false
              },
              {
                "id": 5,
                "type": "name",
                "value": {
                  "givenName": "Raji",
                  "middleName": "",
                  "familyName": "Krishnan",
                  "prefix": "",
                  "suffix": "",
                  "givenNameSound": "",
                  "familyNameSound": ""
                },
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              }
            ]
          },
          {
            "isConnection": false,
            "id": 16777218,
            "fields": [
              {
                "id": 16777220,
                "type": "yahooid",
                "value": "medhibhanu",
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              },
              {
                "id": 16777219,
                "type": "name",
                "value": {
                  "givenName": "Bhanu",
                  "middleName": "",
                  "familyName": "Medhi",
                  "prefix": "",
                  "suffix": "",
                  "givenNameSound": "",
                  "familyNameSound": ""
                },
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              }
            ]
          },
          {
            "isConnection": false,
            "id": 16777221,
            "fields": [
              {
                "id": 16777228,
                "type": "email",
                "value": ""emailaddress@rediffmail.com",
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              },
              {
                "id": 16777227,
                "type": "name",
                "value": {
                  "givenName": "bhanushri",
                  "middleName": "",
                  "familyName": "medhi",
                  "prefix": "",
                  "suffix": "",
                  "givenNameSound": "",
                  "familyNameSound": ""
                },
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              }
            ]
          },
          {
            "isConnection": false,
            "id": 1,
            "fields": [
              {
                "id": 1,
                "type": "yahooid",
                "value": "minu_n_2000",
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              },
              {
                "id": 2,
                "type": "name",
                "value": {
                  "givenName": "minu",
                  "middleName": "",
                  "familyName": "nair",
                  "prefix": "",
                  "suffix": "",
                  "givenNameSound": "",
                  "familyNameSound": ""
                },
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              }
            ]
          },
          {
            "isConnection": false,
            "id": 33554436,
            "fields": [
              {
                "id": 33554441,
                "type": "email",
                "value": ""emailaddress@ymail.com",
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              },
              {
                "id": 16777226,
                "type": "yahooid",
                "value": "emailaddress@ymail.com",
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              },
              {
                "id": 33554440,
                "type": "name",
                "value": {
                  "givenName": "rekha",
                  "middleName": "",
                  "familyName": "",
                  "prefix": "",
                  "suffix": "",
                  "givenNameSound": "",
                  "familyNameSound": ""
                },
                "editedBy": "OWNER",
                "categories": [
                 
                ]
              }
            ]
          }
        ]
      }
    }

     

     

  3. Different pages show different sizes of the photo, on the webpage. When the photos are uploaded, I resize the photos to get three different sizes, big, small and thumbnail. Is this a good idea and are there any other alternative methods.

     

     

  4. Show new replies to your posts.

    I am building web forum in php. I am now stuck in the ?Show new replies to your posts? part. I am not able to understand the mechanism of Show new replies to posts.

     

     

    Can anyone explain to me how Show new replies to your posts Work?

     

    What kind of filter system should I have used?

    Please can you advise me?

    Thank you for your help.

     

     

  5. 
    $input='[quote user1;1] 
    		[quote user0;0]some content here [/quote]
    		[quote user1;1] this is my reply to user0 post[/quote] 
    	some content here
    	[/quote]
    	[quote user1;1] this is my reply to user0 post[/quote]  
    	[quote user0;0]some content here[/quote]';
    
    

     

    Psycho, in you method I could not able to get the output I want for an above input.

  6. Have written a Quote function for my own personal forum

    <?php 
    $out = '[quote raja; 31st July 2012 4.27 AM ] 
    
    My dear New Subject
    
    ■subject
    ■mySql
    ■PHP
    ■CSS
    Hello I would like to write a littel story about your new life.
    
    [/quote]
    '; 
    $cnt = 1; 
    while($cnt != 0){     
    $out = preg_replace('/\[quote\ (.*?);(.*?)\](.*?)\[\/quote\]/ms', '<blockquote>Posted by: \1 at \2.<br/>\3</blockquote>', $out, -1, $cnt); 
    } 
    echo $out;
    ?>
    
    

     

    I am getting output like this..

     

    Posted by: raja at 31st July 2012 4.27 AM .

    My dear New Subject ?? subject ?? mySql ?? PHP ?? CSS Hello I would like to write a littel story about your new life.

     

     

    I want the output like this

    Posted by: raja at 31st July 2012 4.27 AM .

    My dear New Subject

    ? subject

    ? mySql

    ? PHP

    ? CSS

    Hello I would like to write a little story about your new life.

    Can anyone advice me, what to do

    Thank you.

     

    Note - ?  is dote

  7. This my code. Thank you.

     

    
    <?php
    include("../includes/config.php");	
    
    
    if (isset($_POST['submit'])  ) {
    
    		$sql = "INSERT INTO  forum_messagess
    			   (  date, user_id, topic_id,  body  )  
    				VALUES( NOW(),'". 5 ."','"
    						   . 1 ."','"
    						   . $postedValue ."');";
    		$res = mysql_query($sql);
    
    
    
    		$threadsql = "SELECT * FROM  forum_messages";
                        $threadresult = mysql_query($threadsql);
    				$threadrow = mysql_fetch_assoc($threadresult);
    				echo $threadrow['body'];
    }
    ?>
    
    <form action="" method="post">
    
    <textarea name="body" rows="5" cols="15"></textarea>
        <input type="submit" name="submit" value="Submit">
       
    </form>
    
    

  8. I am sorry

    this is the code for display

     

                        $threadsql = "SELECT * FROM messages";
                        $threadresult = mysql_query($threadsql);
    				$threadrow = mysql_fetch_assoc($threadresult);
    				echo $threadrow['body'];
    

  9. INSERT code

    			$sql = "INSERT INTO messages
    			   (  date, user_id, topic_id,  body  )  
    				 VALUES( NOW(),'". 5 ."','"
    						   . 1 ."','"
    						   . $postedValue ."');";
    		$res = mysql_query($sql);
    

     

    to display

     

    			$sql = "INSERT INTO messages
    			   (  date, user_id, topic_id,  body  )  
    				 VALUES( NOW(),'". 5 ."','"
    						   . 1 ."','"
    						   . $postedValue ."');";
    		$res = mysql_query($sql);
    

  10. Stores the DATA in html formatted information in a MySQL database

    eg:

     

    <p>Hello</p><ul><li>1</li><li>2</li></ul>

    I just want to retrieve html formatted text which is stored in a MySQL  database & display it on a page.

     

    But the page is displaying the html coding rather than the formatted output.

    Expected result was

    Hello

    1

    2

    BUT  I am getting the following result.

     

    <p>Hello</p><ul><li>1</li><li>2</li></ul>

     

    I have tried all the method,

     

    THANKYOU

  11. In the DB text field I am keeping different type of date formats.

    To display the date I am using different type of code with echo. Can anyone advice me is there any other method available.

    • nl2br
      <pre></pre>

     

    #Please accept my apology

    My typing mistake. NOT DATE IT SHOULD BE DATA

     

  12. I have a PHP page setup with FCKeditor which stores html formatted information in a MySQL database.

     

     

    I just want to retrieve html formatted text which is stored in a MySQL  database & display it on a page.

     

    But the page is displaying the html coding rather than the formatted output.

     

     

     

    Thank you for all your help. :D

     

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