User Profile

Collapse

Profile Sidebar

Collapse
Ramu528
Ramu528
Last Activity: Oct 16 '08, 12:57 PM
Joined: Mar 13 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • In gridview have to find out maximum length in column

    Friends,

    I am working on excel sheet. i populated gridview with excel sheet data.
    the gridview has one column.
    have to find out the maximum length of String in that column.
    For example:
    gridviews has one column with three names
    Ram
    Murali
    Hari Krishna Murthy Sharma

    and it has to show that Hari Krishna Murthy Sharma occupies maximum length of characters....
    See more | Go to post

  • Ramu528
    replied to display one result from a set of db rows
    in PHP
    Hi Friends, I didnt get the solution for nested loop. can anybody provide me with their code how to run a nested loop and retrieve particular column of a row in a table.plz.

    thanks & regards,
    ramu
    See more | Go to post

    Leave a comment:


  • Ramu528
    replied to display one result from a set of db rows
    in PHP
    Problem With Nested Loop::::

    Hi ronald, my code goes like this......[php]<?php
    $query = 'SELECT * FROM jos_domain where userid='. $_SESSION['userid'];
    $db->setQuery($quer y);
    $rows = $db->loadObjectList ();
    foreach ($rows as $row)
    {

    $level= $row->lenglish_id;
    $db->setQuery("SELE CT * FROM jos_level where id= $level");
    $rowtest = $db->loadObjectList ();...
    See more | Go to post
    Last edited by ronverdonk; May 7 '08, 02:27 PM. Reason: 3rd time: code tags!

    Leave a comment:


  • Ramu528
    replied to display one result from a set of db rows
    in PHP
    Hi ronald,
    with the below code i am still retrieving all values from table(2 3 5)[php]foreach ($rows as $row)
    {
    $level= $row->lenglish_id;
    $db->setQuery("SELE CT * FROM jos_level where id= $level");
    $rows = $db->loadObjectList ();
    $row = $rows[0];
    echo $row->english;
    }[/php]here echo $row->english; is yielding same output...
    See more | Go to post
    Last edited by ronverdonk; May 7 '08, 12:54 PM. Reason: warning: code tags!!

    Leave a comment:


  • Ramu528
    replied to display one result from a set of db rows
    in PHP
    Hi Ronald,

    here , english is column in my table. the output is 2,4,5. it means 2 of from first row,4 from second row ,and 5 from third row. if i want to fetch only first row (english) column value , what should i change in code.echo $rows->english or echo $row->english is not working. can u help me out ? plz. thanks in advance.
    Ramu...
    See more | Go to post

    Leave a comment:


  • Ramu528
    started a topic display one result from a set of db rows
    in PHP

    display one result from a set of db rows

    Hi friends, I am working on two tables. one table(A) stores id of another table(B).

    I store id's in the table. with that corresponding 'id' ,i have to get the value given in table B. [php]<?php
    $query = 'SELECT * FROM jos_domain where userid='. $_SESSION['userid'];
    $db->setQuery($quer y);
    $rows = $db->loadObjectList ();
    foreach ($rows as $row)
    {
    ...
    See more | Go to post
    Last edited by ronverdonk; May 7 '08, 11:27 AM. Reason: warning: use code tags!!

  • Ramu528
    replied to Rewrite the code using classes
    in PHP
    thanks nathj

    I got it. If any probs i will definitely shout for.

    good luck

    ramu
    See more | Go to post

    Leave a comment:


  • Ramu528
    replied to Problem occure in the mail() function
    in PHP
    Hi Sravani,

    Its an SMTP error. contact ur system administrator to set the settings of your server which u r using. SMTP u have to set an default emailid too. Default IP has to be changed.
    All the Best,
    Ramu
    Hyderabad...
    See more | Go to post

    Leave a comment:


  • Ramu528
    started a topic Rewrite the code using classes
    in PHP

    Rewrite the code using classes

    Hi friends, I am populating a drop box from a table jos_qualificati ons. can anybody tell me how to populate a drop box using classes. something like
    $db->setQuery( $query );

    this is my code which i have written without using classes :::::::::::::
    [php]
    $result = mysql_query( "SELECT category FROM jos_qualificati ons" )
    or die("SELECT Error: ".mysql_error() );
    ...
    See more | Go to post
    Last edited by ronverdonk; Mar 20 '08, 09:31 AM. Reason: code within tags!!

  • Ramu528
    started a topic Stored Procedures in JOOMLA 1.5

    Stored Procedures in JOOMLA 1.5

    Hi friends, I am working on JOOMLA 1.5. and database i am using is mysql. can we write stored procedures for Joomla 1.5. Plz reply.

    Ram
    See more | Go to post

  • Ramu528
    started a topic code for sending mail needed
    in PHP

    code for sending mail needed

    Hi friends,
    Today i am working on sending mail in php. i need working code so that i can send mail.the code should be in a single php file. can anybody help me.
    thanks
    See more | Go to post

  • Ramu528
    replied to Validation Required
    in PHP
    Thanks Satas. I could complete my task with ur cooperation. thanks alot.
    All the Best...
    See more | Go to post

    Leave a comment:


  • Ramu528
    replied to Validation Required
    in PHP
    hi satas, can we write our own validation, i mean writing function like this::

    onclick="gotode lete(row(id))";

    can u help me out here.

    with 'return confirm' i am not able to delete the record. But i am showing alert message and when pressing ok button , the page is just refreshing.

    plz satas....
    See more | Go to post

    Leave a comment:


  • Ramu528
    replied to Validation Required
    in PHP
    Hi friends,

    i able correct my code with help of SAMAS. thanks samas.

    its first time, sorry, i will post my code with error from next time.
    good day....
    See more | Go to post

    Leave a comment:


  • Ramu528
    replied to Validation Required
    in PHP
    hi satas,

    i am getting the error, can u correct me where i am going wrong! plz

    Parse error: syntax error, unexpected T_RETURN, expecting ',' or ';' in...
    See more | Go to post

    Leave a comment:


  • Ramu528
    started a topic Validation Required
    in PHP

    Validation Required

    Hi friends,
    I am new to PHP. i need validations for Delete a record.

    i store a column from Database table in a tabular format. i have edit and delete option. i need to write validations confirm (yes or no to delete the record) my code goes like this::::::

    echo "<td width='68' ><a href='index2.ph p?option=com_qu alification&cid =$cid&type=dele te'> Delete</a> </td>";...
    See more | Go to post
No activity results to display
Show More
Working...