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....
User Profile
Collapse
-
In gridview have to find out maximum length in column
-
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 -
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 ();...Leave a comment:
-
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...Leave a comment:
-
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...Leave a comment:
-
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)
{
... -
thanks nathj
I got it. If any probs i will definitely shout for.
good luck
ramuLeave a comment:
-
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...Leave a comment:
-
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() );
... -
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 -
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 -
Thanks Satas. I could complete my task with ur cooperation. thanks alot.
All the Best...Leave a comment:
-
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....Leave a comment:
-
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....Leave a comment:
-
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...Leave a comment:
-
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>";...
No activity results to display
Show More
Leave a comment: