Hi, I bought a turnkey myspace resource site. It has a friend train, which is meant to automatically get your name age and picture, but it doesn't it just leaves them blank. The train is here: http://rocketmyspace.com/train Does anyone know how to fix it? PM me and I will send you the php for it if you can help, thanks. Whoever helps can get as many sitewide links on the sidebar as they want.
I don't know what parts of the script are important so this is the whole train script, if anyone could help me fix it, it would be greatly appreciated: <?php $title = $desc = "Friend Train"; $trainCount = 0; foreach ($trainArray as $aTemp) { $trainCount++; } $code.= "<form action=\"" . HOMEPAGE . "trainadd\" method=\"POST\"><table border=0 width=100% cellpadding=5 cellspacing=0 bgcolor=ffffff>"; $code.= "<tr>"; $code.= "<td bgcolor=1c76fe>"; $code.= "<table border=0 cellpadding=0 cellspacing=0 width=100%>"; $code.= "<tr>"; $code.= "<td align=left>"; $code.= "<font size=2 color=ffffff>?Featured MySpace Profile</font>"; $code.= "</td>"; $code.= "<td align=right>"; $code.= "</td>"; $code.= "</tr>"; $code.= "</table>"; $code.= "</td>"; $code.= "</tr>"; $code.= "<tr>"; $code.= "<td>"; $code.= "<table border=0 cellpadding=5 cellspacing=1 width=100% bgcolor=ffffff>"; $code.= "<tr>"; $code.= "<td width=67 valign=middle "; if ($featuredArray['gender'] == "Male") { $code.= "bgcolor=99ccff"; } elseif ($featuredArray['gender'] == "Female") { $code.= "bgcolor=f7d7f0"; } else { $code.= "bgcolor=ffcc99"; } $code.= ">"; $code.= "<center><img src=\"" . $featuredArray['pictureurl'] . "\" width=60 height=60></center>"; $code.= "</td>"; $code.= "<td valign=middle "; if ($featuredArray['gender'] == "Male") { $code.= "bgcolor=99ccff"; } elseif ($featuredArray['gender'] == "Female") { $code.= "bgcolor=f7d7f0"; } else { $code.= "bgcolor=ffcc99"; } $code.= ">"; $code.= "<font size=2><b>Name:</b> " . $featuredArray['display'] . "<br></font>"; if ($featuredArray['gender'] <> "Band") { $code.= "<font size=1><b>Age:</b> " . $featuredArray['age'] . "<br>"; } else { $code.= "<font size=1><b>Genre:</b> " . $featuredArray['age'] . "<br>"; } $code.= "<b>Quote:</b> " . $featuredArray['quote'] . "<br></font>"; $code.= "<a target=\"_blank\" href=\"http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendID=" . $featuredArray['id'] . "\"><u>View MySpace Profile</u></a>"; $code.= "</td>"; $code.= "<td valign=middle align=center width=80 bgcolor=1c76fe>"; $code.= "<a target=\"_blank\" href=\"http://www.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=" . $featuredArray['id'] . "\"><STRONG><font size=3>ADD TO FRIENDS</font></STRONG></a>"; $code.= "</td>"; $code.= "</tr>"; $code.= "</table>"; $code.= "</td>"; $code.= "</tr>"; $code.= "</table>"; $code.= "<br>"; $code.= "<table border=0 width=100% cellpadding=5 cellspacing=1 bgcolor=ffffff>"; $code.= "<tr>"; $code.= "<td bgcolor=1c76fe>"; $code.= "<font size=2 color=ffffff>?Join the Train</font>"; $code.= "</td>"; $code.= "</tr>"; $code.= "<tr>"; $code.= "<td>"; $code.= "<center>"; $code.= "<input type=\"hidden\" name=\"page\" value=\"addconfirm\">"; $code.= "<font size=2><b>Input MySpace ID:</b></font><br>"; $code.= "<input type=\"text\" name=\"input_id\" maxlength=15><br>"; $code.= "<font size=2><b>Input a message/ quote:</b></font><br>"; $code.= "<input type=\"text\" name=\"input_quote\" maxlength=25><br>"; $code.= "<input type=\"checkbox\" name=\"profileisband\" value=\"1\" id=\"profileisband\">"; $code.= "<label for=\"profileisband\">Band Profile</label><br>"; $code.= "<font size=1><i><b>Band Profiles: Please put your URL for the ID (Example: takingbacksunday).</b></i></font><br><br>"; $code.= "<small><i>The Friend Train will automatically retrieve your age, name, and picture from MySpace.</i></small><br>"; $code.= "<input type=\"submit\" value=\"Submit\"></center>"; $code.= "</td>"; $code.= "</tr>"; $code.= "</table>"; $code.="<br>"; $code.= "<center><b><font size=3>Current Round: " . $train_currentcount . " (" . $trainCount . "/40) People</font></b></center>"; $code.= "<br>"; $code.= "<table border=0 width=100% cellpadding=5 cellspacing=0 bgcolor=ffffff>"; $code.= "<tr>"; $code.= "<td bgcolor=1c76fe>"; $code.= "<table border=0 cellpadding=0 cellspacing=0 width=100%>"; $code.= "<tr>"; $code.= "<td align=left>"; $code.= "<font size=2 color=ffffff>?Friend Train</font>"; $code.= "</td>"; $code.= "<td align=right>"; $code.= "</td>"; $code.= "</tr>"; $code.= "</table>"; $code.= "</td>"; $code.= "</tr>"; $code.= "<tr>"; $code.= "<td>"; $code.= "<table border=0 cellpadding=5 cellspacing=1 width=100% bgcolor=ffffff>"; $trainCount = 0; foreach ($trainArray as $aTemp) { $trainCount++; $code.= "<tr>"; $code.= "<td width=25 valign=middle "; if ($trainArray[$trainCount]['gender'] == "Male") { $code.= "bgcolor=99ccff"; } elseif ($trainArray[$trainCount]['gender'] == "Female") { $code.= "bgcolor=f7d7f0"; } else { $code.= "bgcolor=ffcc99"; } $code.= ">"; $code.= "<center><img src=\"" . $trainArray[$trainCount]['pictureurl'] . "\" width=60 height=60></center>"; $code.= "</td>"; $code.= "<td valign=middle "; if ($trainArray[$trainCount]['gender'] == "Male") { $code.= "bgcolor=99ccff"; } elseif ($trainArray[$trainCount]['gender'] == "Female") { $code.= "bgcolor=f7d7f0"; } else { $code.= "bgcolor=ffcc99"; } $code.= ">"; $code.= "<font size=2><b>Name:</b> " . $trainArray[$trainCount]['display'] . "<br></font>"; if ($trainArray[$trainCount]['gender'] <> "Band") { $code.= "<font size=1><b>Age:</b> " . $trainArray[$trainCount]['age'] . "<br>"; } else { $code.= "<b>Genre:</b> " . $trainArray[$trainCount]['age'] . "<br></font>"; } $code.= "<b>Quote:</b> " . $trainArray[$trainCount]['quote'] . "<br>"; $code.= "<a class=\"link_blacktored\" target=\"_blank\" href=\"http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendID=" . $trainArray[$trainCount]['id'] . "\"><u>View MySpace Profile</u></a>"; $code.= "</td>"; $code.= "<td valign=middle align=center width=80 bgcolor=1c76fe>"; $code.= "<a class=\"link_blacktored\" target=\"_blank\" href=\"http://www.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=" . $trainArray[$trainCount]['id'] . "\"><STRONG><font size=3>ADD TO FRIENDS</font></STRONG></a>"; $code.= "</td>"; $code.= "</tr>"; } $code.= "</table>"; $code.= "</td>"; $code.= "</tr>"; $code.= "</table></form>"; $code = str_replace("<", "<", $code); $code = str_replace(">", ">", $code); $code = str_replace("\"", """, $code); ?> <div align="center"> <? require_once( ROOT_DIR ."/include/db.php"); $sql = "select * from ad WHERE style='468x60'"; $rs = $db->Execute( $sql ); echo $rs->fields['content']; ?> </div> <center> <table border=0 width=70% cellpadding=5 cellspacing=1 bgcolor=ffffff> <tr > <td bgcolor=1c76fe> <div align="center"><font size=2 class="txt_orange_bold" >JOIN THE TRAIN</font></div> </td> </tr> <tr> <td> <form action="<?=HOMEPAGE?>trainadd" method="POST"> <div align="center"> <input type="hidden" name="page" value="addconfirm"> <font size=1><b>Input MySpace ID:</b></font><br> <input name="input_id" type="text" size="50" maxlength=50> <br> <font size=1><b>Input a message/ quote:</b></font><br> <input name="input_quote" type="text" size="50" maxlength=25> <br> <input type="checkbox" name="profileisband" value="1" id="profileisband"> <label for="profileisband">Band Profile</label> <br> <font size=1><i><small>Bands: Put your URL for the ID<br> <i>Example: jayz</i></small></i><br> </font><br> <input name="submit" type="submit" value="JOIN THE TRAIN"> </div> </form> </td> </tr> </table> <table border=0 width=70% cellpadding=5 cellspacing=0 bgcolor=ffffff> <tr> <td bgcolor=1c76fe> <table border=0 cellpadding=0 cellspacing=0 width=100%> <tr> <td align=left> <div align="center"><font size=2 class="txt_orange_bold"> FEATURED MYSPACE PROFILE</font></div></td> <td align=right> </td> </tr> </table> </td> </tr> <tr> <td> <table border=0 cellpadding=5 cellspacing=1 width=100% bgcolor=ffffff> <tr><?php echo "<td width=67 valign=middle "; if ($featuredArray['gender'] == "Male") { echo "bgcolor=99ccff"; } elseif ($featuredArray['gender'] == "Female") { echo "bgcolor=f7d7f0"; } else { echo "bgcolor=ffcc99"; } echo ">"; echo "<center><img src=\"" . $featuredArray['pictureurl'] . "\" width=60 height=60></center>"; echo "</td>"; echo "<td valign=middle "; if ($featuredArray['gender'] == "Male") { echo "bgcolor=99ccff"; } elseif ($featuredArray['gender'] == "Female") { echo "bgcolor=f7d7f0"; } else { echo "bgcolor=ffcc99"; } echo ">"; echo "<font size=2><b>Name:</b> " . $featuredArray['display'] . "<br></font>"; if ($featuredArray['gender'] <> "Band") { echo "<b><font size=1>Age:</b> " . $featuredArray['age'] . "<br>"; } else { echo "<b><font size=1>Genre:</b> " . $featuredArray['age'] . "<br>"; } echo "<b>Quote:</b> " . $featuredArray['quote'] . "<br></font>"; echo "<a class=\"link_blacktored\" target=\"_blank\" href=\"http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendID=" . $featuredArray['id'] . "\"><u>View MySpace Profile</u></a>"; echo "</td>"; echo "<td valign=middle align=center width=80 bgcolor=1c76fe>"; echo "<a class=\"link_blacktored\" target=\"_blank\" href=\"http://www.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=" . $featuredArray['id'] . "\"><STRONG><font size=3>ADD TO FRIENDS</font></STRONG></a>"; echo "</td>"; ?></tr> </table> </td> </tr> </table> <table border=0 cellpadding=0 cellspacing=0 height=6><tr><td></td></tr></table> <table border=0 cellpadding=0 cellspacing=0 height=6><tr><td></td></tr></table> <table border=0 width=70% cellpadding=5 cellspacing=0 bgcolor=ffffff> <tr> <td bgcolor=1c76fe> <table border=0 cellpadding=0 cellspacing=0 width=100%> <tr> <td align=left> <div align="center"><font size=2 class="txt_orange_bold" >FRIEND TRAIN</font></div></td> <td align=right> </td> </tr> </table> </td> </tr> <tr> <td> <table border=0 cellpadding=5 cellspacing=1 width=100% bgcolor=ffffff> <?php $trainCount = 0; foreach ($trainArray as $aTemp) { $trainCount++; echo "<tr>"; echo "<td width=67 valign=middle "; if ($trainArray[$trainCount]['gender'] == "Male") { echo "bgcolor=99ccff"; } elseif ($trainArray[$trainCount]['gender'] == "Female") { echo "bgcolor=f7d7f0"; } else { echo "bgcolor=ffcc99"; } echo ">"; echo "<center><img src=\"" . $trainArray[$trainCount]['pictureurl'] . "\" width=60 height=60></center>"; echo "</td>"; echo "<td valign=middle "; if ($trainArray[$trainCount]['gender'] == "Male") { echo "bgcolor=99ccff"; } elseif ($trainArray[$trainCount]['gender'] == "Female") { echo "bgcolor=f7d7f0"; } else { echo "bgcolor=ffcc99"; } echo ">"; echo "<font size=2><b>Name:</b> " . $trainArray[$trainCount]['display'] . "<br></font>"; if ($trainArray[$trainCount]['gender'] <> "Band") { echo "<font size=1><b>Age:</b> " . $trainArray[$trainCount]['age'] . "<br>"; } else { echo "<b>Genre:</b> " . $trainArray[$trainCount]['age'] . "<br>"; } echo "<b>Quote:</b> " . $trainArray[$trainCount]['quote'] . "<br></font>"; echo "<a class=\"link_blacktored\" target=\"_blank\" href=\"http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendID=" . $trainArray[$trainCount]['id'] . "\"><u>View MySpace Profile</u></a>"; echo "</td>"; echo "<td valign=middle align=center width=80 bgcolor=1c76fe>"; echo "<a class=\"link_blacktored\" target=\"_blank\" href=\"http://www.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=" . $trainArray[$trainCount]['id'] . "\"><STRONG><font size=3>ADD TO FRIENDS</font></STRONG></a>"; echo "</td>"; echo "</tr>"; } ?> </table> </td> </tr> </table> </center> PHP:
hi, and besides that, did you think how to do with the captcha? your script does not include nothing about that situation. kinds