Jump to content

Two pages producing differen results


Xtremer360

Recommended Posts

I'm trying to figure out why these two pages are producing different results when it should be producing the same results:

 

Page 1: http://www.kansasoutlawwrestling.com/backstage/content.php?p=roster

 

$querya = "SELECT
			bio.posername as posername,

			bio.charactername as charactername,

			biosingles.hometown as singleshometown,

			biosingles.height as singlesheight,

			biosingles.weight as singlesweight

		FROM

			efed_bio as bio

		INNER JOIN

			efed_list_styles as style

		ON

			(

				bio.style_id = style.id

			)

		LEFT JOIN

			efed_bio_singles as biosingles

		ON

			(

				bio.id = biosingles.bio_id

			)						

		WHERE

			style.name = 'singles' and

			bio.sortorder = '$sortorder' and

			bio.status_id = '1'

		ORDER BY

			bio.charactername";

	$resulta = mysql_query ($querya); 

	while ($rowa = mysql_fetch_assoc($resulta))

	{

		$fieldarray=array('posername','charactername','singleshometown','singlesheight','singlesweight');

		foreach ($fieldarray as $fieldlabel)

		{

			if (isset($rowa[$fieldlabel])) 

			{ 

				$$fieldlabel=$rowa[$fieldlabel];

				$$fieldlabel=cleanquerydata($$fieldlabel);

			}

		}

 

And this page: http://kansasoutlawwrestling.com/roster/singles

 

$querya = "SELECT

			bio.posername as posername,

			bio.charactername as charactername,

			biosingles.hometown as singleshometown,

			biosingles.height as singlesheight,

			biosingles.weight as singlesweight

		FROM

			efed_bio as bio

		INNER JOIN

			efed_list_styles as style

		ON

			(

				bio.style_id = style.id

			)

		LEFT JOIN

			efed_bio_singles as biosingles

		ON

			(

				bio.id = biosingles.bio_id

			)

		WHERE

			style.name = 'singles' and

			bio.sortorder = '$sortorder' and

			bio.status_id = '1'

		ORDER BY

			bio.charactername";
      $resulta = mysql_query($querya) or die(mysql_error());
      while ($rowa = mysql_fetch_assoc($resulta)) {
          $fieldarray = array('posername', 'charactername', 'singleshometown', 'singlesheight', 'singlesweight');
          foreach ($fieldarray as $fieldlabel) {
              if (isset($rowa[$fieldlabel])) {
                  $$fieldlabel = $rowa[$fieldlabel];
                  $$fieldlabel = cleanquerydata($$fieldlabel);
              }
          }

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.