Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: indiantown
  • Order by date
  1. indiantown

    Need help to display 10 each column

    Hi jpadie... Thanks for all the help and your time, no words to thank you. I wanted to show you the final result but instead posting the link here, wanted to PM but it seems we don't have any PM options. Now my next project for next couple of days is to grab the count of deals/coupons by each...
  2. indiantown

    Need help to display 10 each column

    Hi jpadie, I did //check for a trailing column switch ($cnt): case 2: $table .= "<td>&nbsp;</td>"; break; case 3: $table .= "<td>&nbsp;</td></tr>"; break; endswitch; removed "<td>$link</td>" altogether as otherwise its adding another block. Is...
  3. indiantown

    Need help to display 10 each column

    Hi jpadie, Thanks for all the help. Little glitch... at the end of the table its duplicating the last entry Letter: Z. Zdag.com Zearth.com Zinio Zone labs Zones.com Zones.com You can see that "Zones.com" is getting duplicated. Please suggest.
  4. indiantown

    Need help to display 10 each column

    ...into an array $start_letter = ""; $cnt = 0; $table = "<table border=\"0\">"; while ($row = mysql_fetch_assoc($result)): $even = (($cnt - (2 * floor($cnt/2))) == 0) ? true : false; $link = "<a href=\"".$row['store_link']."\">".$row['store_title']."</a>"; if ($start_letter !=...
  5. indiantown

    Need help to display 10 each column

    Hi jpadie, one more thing...... how I can make it to display 3 columns rather than in only 2 columns TIA
  6. indiantown

    Need help to display 10 each column

    Hi jpadie, Debugged..... made it to work.... It was mysql_connect($host, $uname, $pwd) or die(mysql_error());; ;; was the culprit. How can I club Letter: . .Mac Letter: 1 1-800-Contacts 1-800-Flowers.com 1-800-Patches 1-800-PetMeds 1-800-WheelChair 123Inkjets.com Letter: 3...
  7. indiantown

    Need help to display 10 each column

    Hi jpadie, The code shows a blank page..... looks some bug in the code somewhere.... going to look more into it. Still doesn't work. Any ideas.... will keep you posted. regards
  8. indiantown

    Need help to display 10 each column

    ...colspan=\"3\">".chr($i)."</td></tr>";//prints out a row with the letter in it $cnt = count ($array[chr($i)]); $even = (($cnt - (2 * floor($cnt/2))) == 0) ? true : false; for ($j=0; $j<$cnt; $j+2): $table .= "<tr> <td> <a...
  9. indiantown

    Need help to display 10 each column

    Hi jpadie, Thanks for your time in writing the code. Its still not working... I am trying to debug.... don't know till when I would be awake trying to get this work. If you can also look into it please that why it still not working, I would be really tahnkful. TIA.
  10. indiantown

    Need help to display 10 each column

    Hi jpadie, I have around 400 entries and what I intend to do is list/group it according to letters. So, all my entries with Letter A will be grouped together and B.... A Apple,Ant..... B Boy,Ball.... If you help me with exactly how by changing SQL I can achieve will really help me out... TIA.
  11. indiantown

    Need help to display 10 each column

    Any suggestions?
  12. indiantown

    Need help to display 10 each column

    Hi LZ, A step forward.... here is the working script //show stores first $query = "select store_title, store_link from store_name order by store_title"; $result = mysql_query($query); //we add this line because we need to know the number of rows $num_rows = mysql_num_rows($result); echo...
  13. indiantown

    Need help to display 10 each column

    jpadie....thanks for your reply. Working still (its 2:00 in the morning.. uuh) this is what i tried //show stores first $q = "select store_id, store_title from store_name order by store_title"; $r = mysql_query($q); $n=mysql_num_rows($r); #table tag echo "<table align=center border=2...
  14. indiantown

    Need help to display 10 each column

    ...<br> <font size="2" color="#003366"><small>&nbsp;&nbsp;&nbsp;&nbsp;<? echo $song["title"]; ?></small></font><br> <? }//PutSongRow /* ## ===================================================================== ## */ ?> <table width="100%" bgcolor="<? echo $lightrow; ?>" border="0"...
  15. indiantown

    How to call the script *.php?c= with only one page

    Does not work, the complete script is below which I am using... please help me where and what changes I should make. <?php $crdr='/'; // set a correct RELATIVE path function set_path($cc){return "test-$cc.php";} $default="test-us.php"...
  16. indiantown

    How to call the script *.php?c= with only one page

    Hello All, I am using the below script to create redirection of my page visitors as per their ip address, <?php $v=0;$f=0;$n=array(); if(isset($HTTP_GET_VARS['ip'])){ $ip=$HTTP_GET_VARS['ip'];} else{$ip='10.1.1.10';} $ip=sprintf("%u",ip2long($ip)); while(strlen($ip)<10){$ip='0'.$ip;}...
  17. indiantown

    Date Display in PHP

    Thanks for the suggestion, it worked. regards
  18. indiantown

    Date Display in PHP

    I have the field in MYSQL database as time_stamp [timestamp(14)] and I am getting the format as 20050812202916. Please suggest.
  19. indiantown

    Date Display in PHP

    Hello All, I need help to display date and time in my script, what I have tried whcih give me output Aug 12th, 2005 but I want to display Aug 12th, 2005 10:30 am (example) The part of the code I am using is below: / / / $time_stamp = stripslashes($cats[time_stamp]); $year =...
  20. indiantown

    Search query skips xx/08 & xx/09 data

    ...var newimage='<img src="/new.gif">' var expired='<img src="/exp.gif">' var today=new Date() var one_day=1000*60*60*24 var monnum var daynum function exp(yr,m,d){ var todayy=today.getYear() monnum=m if (m <10) monnum="0"+m daynum=d if (d <10) daynum="0"+d if (todayy < 1000) todayy+=1900 var...

Part and Inventory Search

Back
Top