
blazing_bruce
Members-
Posts
28 -
Joined
-
Last visited
Never
About blazing_bruce
- Birthday 10/02/1986
Contact Methods
- MSN
- Yahoo
Profile Information
-
Gender
Not Telling
-
Location
India
blazing_bruce's Achievements

Newbie (1/5)
0
Reputation
-
@ProjectFear, I really thank you for your time & kind advices to improve my site. I have fixed that white popup on shared hosting listing pages. The price slider is being fixed. Again, Thanks a lot. Thank you my friend
-
Hi., I am really glad to introduce my new hosting comparison & hosting search engine http://servergrabber.com to PHPFreaks Community. I am eagerly waiting for your reviews.
-
Give url + try to use CDN if needed or move to cloud if it is related to "huge traffic". But before that, Give us an url
-
footer area's contact us & other 2 links are not working.. Write something related to your website on <title>Tag it helps for SEO.
-
Well yes too much <h1> is not a good. I am just trying to get contents inbetween tags.. I tried the following for <td> </td> . preg_match_all('/<td [^>]*>((?:<td.+?<\/td|.)*?)<\/td>/si', $sometable, $matches); It worked like charm
-
Hello, I am learning regularexperssion. it is pretty awesome. Is it possible to make a pattern in preg_match_all to grab content of 6th or 7th h1 tag's text <h1 styles.. or any other attributes *>text</h1> <h1 styles.. or any other attributes *>text</h1> <h1 styles.. or any other attributes *>text</h1> <h1 styles.. or any other attributes *>text</h1> <h1 styles.. or any other attributes *>text</h1> The main objective here is.. I am trying to find a text of Nth occurance of <h1 and </h1> I was trying to use preg_match_all .. But unable to get it. Any help would be much appreciated . Im sorry if it is a silly question
-
getting combinations of array index or elements
blazing_bruce replied to blazing_bruce's topic in PHP Coding Help
i writtened an algorithm for it myself :) $checked[0] = 1; $checked[1] = 3; $checked[2] = 4; $checked[3] = 6; $checked[4] = 7; if you want to get all posiblities of array elements (with out repeating) like this 0 1 2 4 0 1 2 3 0 1 3 4 0 2 3 4 1 2 3 4 PHP code follows [code]for($n=0;$n<=$total_checked;$n++) { unset($new); $j=0; //echo("N=$n<br>"); $value = $total_checked-$n; //echo("value = $value<br>"); for($b=0;$b<$total_checked;$b++) { if($b==$value) { // echo("Entered condition"); $notaccepted = $checked[$b]; continue; } $new[$j]=$checked[$b]; echo($j); //Change here if you want that combination of array values echo("$new[$j]"); $j++; } if($n==0) { continue; } // print_r($new); echo("<BR>"); } [/code] Thank you, Karthi keyan -
getting combinations of array index or elements
blazing_bruce replied to blazing_bruce's topic in PHP Coding Help
if you know the outline of an algorithm, then you are welcome. please help me. -
Hello all, i have an array named $checked; $checked[0] = 1; $checked[1] = 3; $checked[2] = 4; $checked[3] = 6; $checked[4] = 7; i want to make combinations like array index 0 1 2 3 means $checked[0]; $checked[1]; $checked[2]; $checked[3]; 0 1 2 4 0 1 3 4 0 2 3 4 1 2 3 4 . . . . like this manner. it should find all the possible combinations. here i said the sizeof array is five. but it may be 7 , 8 or 3 . if the size of array is 'n' then i want combinations in size of 'n-1' . is it possible? please help me. Thank you,
-
**SOLVED** mysql table searching. harder a bit.
blazing_bruce replied to blazing_bruce's topic in PHP Coding Help
Thank you Mr.Barand. your query is working now. -
hello all, i have a table named rest RID CID 1 | 2 1 | 3 1 | 4 2 | 2 2 | 3 3 | 2 3 | 4 4 | 2 4 | 3 i want to list records which accepts the cards (CID). first i have 4 check boxes in search.php for($i=1;$i<=$total_cards;$i++) { $fetch = mysql_fetch_row($pass_cards); $id=$fetch[0]; $name = $fetch[1]; echo("<input type='checkbox' name='card[]' value='$id' />$name"); } in list.php i want to show the list of records based on check box's value getting post values by $checked = $HTTP_POST_VARS['card']; now i want to list all the records which having all the CID values. if i checking the check box 2 and 3 (which is CID) then list.php will show 1,2,4 (RID) i have tried in many ways, but no use. this is wil be a simple MySQL query. please help me.
-
hello, now we are using $_POST['id']; like this . i want to use $_POST['$id']; help me. i want to place a php variable inside of $_POST[] please help me. Thank you, Karthi keyan.
-
first try to check is it set on your system. try to use if(isset($_COOKIE['policyusername'])) or empty($_COOKIE['policyusername']) . try to check with junk data it is $username = "try this data"; and setcookie(policyusername, $username); and then chck it. if it shows "try this data" in browser then there is a problem in query or empty data returend by mysql. Try all the things i told Thank you, Karthikeyan.
-
i think cookies are not setting in your pc. make sure that your browser allows to set cookies Thank you, Karthi keyan.
-
[!--quoteo(post=356919:date=Mar 21 2006, 05:39 PM:name=gk20)--][div class=\'quotetop\']QUOTE(gk20 @ Mar 21 2006, 05:39 PM) [snapback]356919[/snapback][/div][div class=\'quotemain\'][!--quotec--] I have a table called item with fields category and item. I can display all distinct categories but I want to display them as links on my home page, so that when u click a category it displays all items in that category on a new page? Here my code for displaying each individual category: <?php include 'db.inc.php'; $cats = @mysql_query("SELECT DISTINCT category from item ORDER BY category"); echo '<b>  Category List<br></b>'; while ($row = mysql_fetch_array($cats)) { echo '<font color=red size="4">'; echo ' '; echo $row['category'] . '<br/>'; echo '</font>'; } ?> Can anyone help? [/quote] if you are trying to link them then add two more echos inside of the while that is while ($row = mysql_fetch_array($cats)) { //like file is $link = "$row['category'] "."php" echo '<font color=red size="4">'; echo ' '; echo '<a href='$link'>'; echo $row['category'] . '<br/>'; echo '</a>'; echo '</font>'; } i hope this will work as per your needs. Thank you, Karthikeyan