No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
Re: You can use maxdb_insert_id() For the Getting last record from table.. Ashish Patel | |
![]() | Re: I think mistack is here you typed like this if (mysql_num_rows($sql>0));{ But it should like this if (mysql_num_rows($sql)>0) { } Remove [COLOR="Red"][URL="http://tes-india.com"]Semicolon [/URL][/COLOR]and Add one [COLOR="Red"][COLOR="Green"][URL="http://tes-india.com"]Brace [/URL][/COLOR][/COLOR] |
Re: Hi I tried This one Please Check it out Code by [URL="http://www.tes-india.com"]Web Developer[/URL] [CODE]$res=mysql_query("select page_cat from tbl_page_detail where page_name='Home'"); $rs=mysql_fetch_array($res); $q="select * from tbl_category where cat_id IN (".$rs[0].")"; $res=mysql_query($q); $arr=array(); while($rs=mysql_fetch_array($res)) { array_push($arr,$rs['cat_name']); } $arr1 = implode(",", $arr); echo $arr1; [/CODE] ![]() |
The End.