Jump to content

Want help in some changes in my file


malikzfs

Recommended Posts

Hi Dear,
 
I am running traffic exchange website and need your help to make it more versatile ,

 

plz check below code.

$sql=$Db1->query("SELECT * FROM memberships WHERE active='1' ORDER by `order`");
	if($Db1->num_rows() > 0) {
		while($membership = $Db1->fetch_array($sql)) {
			$includes[content].="<br/>

It will use to control below below code and create the separate out put for each Membership on my website.

<table class=\"tableStyle3\" style=\"width: 500px;\">
	<tr>
		<td colspan=2><b>$membership[title] Earning Settings</b></td>
	</tr>
	<tr>
		<td width='70%'>Visits Needed:</td>
		<td width='30%'><input type=\"text\" name=\"visits_needed_$membership[id]\" value=\"".$settings['visits_needed_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"credits_earning_$membership[id]\" value=\"".$settings['credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Cash Earning:</td>
		<td width='30%'><input type=\"text\" name=\"cash_earning_$membership[id]\" value=\"".$settings['cash_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>PTC Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"ptc_credits_earning_$membership[id]\" value=\"".$settings['ptc_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Banner Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"banner_credits_earning_$membership[id]\" value=\"".$settings['banner_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>F. Ad Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"fad_credits_earning_$membership[id]\" value=\"".$settings['fad_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Free Ref Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"free_ref_credits_earning_$membership[id]\" value=\"".$settings['free_ref_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Free Ref Cash Earning:</td>
		<td width='30%'><input type=\"text\" name=\"free_ref_cash_earning_$membership[id]\" value=\"".$settings['free_ref_cash_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Free Ref PTC Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"free_ref_ptc_credits_earning_$membership[id]\" value=\"".$settings['free_ref_ptc_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Free Ref Banner Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"free_ref_banner_credits_earning_$membership[id]\" value=\"".$settings['free_ref_banner_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Free Ref F. Ad Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"free_ref_fad_credits_earning_$membership[id]\" value=\"".$settings['free_ref_fad_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Premium Ref Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"premium_ref_credits_earning_$membership[id]\" value=\"".$settings['premium_ref_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Premium Ref Cash Earning:</td>
		<td width='30%'><input type=\"text\" name=\"premium_ref_cash_earning_$membership[id]\" value=\"".$settings['premium_ref_cash_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Premium Ref PTC Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"premium_ref_ptc_credits_earning_$membership[id]\" value=\"".$settings['premium_ref_ptc_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Premium Ref Banner Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"premium_ref_banner_credits_earning_$membership[id]\" value=\"".$settings['premium_ref_banner_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Premium Ref F. Ad Credits Earning:</td>
		<td width='30%'><input type=\"text\" name=\"premium_ref_fad_credits_earning_$membership[id]\" value=\"".$settings['premium_ref_fad_credits_earning_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Ref Credits Signup Bonus:</td>
		<td width='30%'><input type=\"text\" name=\"ref_credits_signup_$membership[id]\" value=\"".$settings['ref_credits_signup_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td width='70%'>Ref Cash Signup Bonus:</td>
		<td width='30%'><input type=\"text\" name=\"ref_cash_signup_$membership[id]\" value=\"".$settings['ref_cash_signup_'.$membership[id]]."\"></td>
	</tr>
	<tr>
		<td colspan=2 align=\"right\"><input type=\"submit\" value=\"Save\"></td>
	</tr>
</table>
			
			";
		}
	}
	$includes[content].="
</form>
";

?>

No w i want  array for below mention code in such a way that it create array for below mention part of this code.

 

For example if i have 4 membership then member can earn cash as per their downline membership.

<tr>
		<td width='70%'>Premium Ref Cash Earning:</td>
		<td width='30%'><input type=\"text\" name=\"premium_ref_cash_earning_$membership[id]\" value=\"".$settings['premium_ref_cash_earning_'.$membership[id]]."\"></td>
	</tr>
Link to comment
Share on other sites

 

 

No w i want  array for below mention code in such a way that it create array for below mention part of this code.

 

For example if i have 4 membership then member can earn cash as per their downline membership.

What does this mean? Your question is not very clear.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.