PHP PDO 2 Table Join using Unnamed Placeholder ? - FIX THIS CODE TO WORK
$10-30 USD
Đã đóng
Đã đăng vào hơn 8 năm trước
$10-30 USD
Thanh toán khi bàn giao
I can get this working without the unnamed placeholder, ?
But I need it working WITH the unnamed placeholder, ?
FIX this code and I'll try it:
$config = getConfig('db.membership_level1');
$db = new SimplePDO($config);
$username = Auth::getInstance()->getIdentity();
$sql = "SELECT username, usernamelightpage, useridlightpage, hourlyjackpotlighttext, lightpagepic,
lightpagetext1, lightpagetext2, lightpagetext3, lightpagetext4, lightpagetext5, lightpagetext6, lightpagetext7, lightpagetext8, lightpagetext9, lightpagetext10,
lightpagetext11, lightpagetext12, lightpagetext13, lightpagetext14, lightpagetext15, lightpagetext16, lightpagetext17, lightpagetext18, lightpagetext19, lightpagetext20
FROM registering
LEFT JOIN lightpage ON [login to view URL] = [login to view URL]
WHERE username = ?";
$bind = array($username);
$row = $db->fetchRow($sql, $bind);
if ($row) {
echo "<div align='left'><img src='[login to view URL]'></div>";
echo "<div style='position: absolute; top:-50px; left:180px;'>";
echo "<table><tr><td width='1000'>";
echo "<marquee behavior=\"scroll\" direction=\"left\" scrollamount=\"5\" loop=\"1\" style=\"position:relative; top:180px; width:1000px; height:50px;\">";
echo "<a href='[login to view URL]'>";
echo "<img src='{$row['hourlyjackpotlighttext']}' alt='When no picture shows, it means you are not an Hourly Jackpot Winner at this time. The Hourly Jackpot Winner sees a picture here and has instructions on how to claim his or her Hourly Jackpot!'>";
echo "</a>";
echo "</marquee>";
echo "</td>";
echo "</tr></table>";
echo "</div>";
echo "<table cellpadding='0' cellspacing='0'><tr>";
echo "<td width='300'>";
echo "<FORM action='[login to view URL]' method='post'>";
echo "<div align='left' style='position: absolute; top:130px; left:30px;'>";
echo "<font face='Comic Sans MS' size='6' color='navy'>";
echo $row['username'];
echo "</font>";
echo "</div>";
echo "<div style='margin-left:30px;'>";
echo "<br><br><br><font size='1'>Mouseover top red line to ZOOM the picture!</font>";
echo "<br><br><font size='1'>Mouseover bottom red line to shrink the picture again.</font>";
echo "</div>";
echo "</td></tr><tr><td style='width:800px; height:20px;'>";
?>
<div align="left" style="margin-left:30px;">
<a href="#" onmouseover="zoom(110,130,'lightpagepic','in')" onmouseout="clearzoom()"><font color="white" size="2">Zoom In</font></a>
<br>
<a href="#" onmouseover="zoom(110,130,'lightpagepic','restore')"><font color="white" size="1">Hover Here First</font></a>
<br>
<a href="#" onmouseover="zoom(130,110,'lightpagepic','out')" onmouseout="clearzoom()"><font color="white" size="2">Zoom Out</font></a>
<div style="position:relative; width:50px; height:0px;">
<div style="position:absolute; top:10px; left:5px;">
<?php
echo "<img src='[login to view URL]";
echo $row['lightpagepic'];
echo "'>";
}
?>
Hello!
With 98% to 99% completion rate, 850+ successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page https://www.freelancer.com/u/rajeshsonisl.html !!)... you can never go wrong choosing me :)
I am available to get started on your project right away. I look forward to your reply.
Thanks.
Kind Regards,
Rajesh Soni
Dear Sir, Please let me fix it. Thanks..............................................................................................................................