Jump to content

manichean

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Everything posted by manichean

  1. Hello newb, Your Error: [code] } else if md5($_POST['pass']) != $password) { /*Your line 34 should read like my answer code*/ [/code] My Answer Code: [code] } else if (md5($_POST['pass']) != $password) { [/code]
  2. Hello RJT, I understand what you trying do do, but I have found some probs with ur code [code] <table width='480'> /*need to use escape chars to make use of " when using equals following the web standards*/ <? $i=0; $first_letter_old=""; /* dont know what this is for but im sure u got a valid reason, I have not included it in my solution */ while ($i < $num) {     $name=mysql_result($result,$i,"name");     $image=mysql_result($result,$i,"image");     ++$i; echo "<td bgcolor=000000 valign='top' width='100' align='left'><center><a href='wrestler.php?name=$name'><img border=0 width=100 src='http://www.reef-break.com/scw/images/superstars/$image.jpg'></a><br><font face=verdana size=1 color=red><a href='wrestler.php?name=$name'>$name</a></font></center></td>"; } ?> </table> [/code] ok bascially you need a tr tag after your table declaration you are jumping straight into a td, minor mistake after too much coding  :-X, so now it depends on you do you want 5 td's per row ? or the br after 5 td's i would go for the tr option but here is the edited code for you. [code] <?php $i=0; $j=0; $stringToEcho; $bolEndTr = false; $stringToEcho = "<table width=\"480\">\n"; $stringToEcho .= "<tr>\n"; while ($i < $num) {     if ($num < 5){         $bolEndTr = true; /*We need to have this to make sure if there are less than 5 rows we must close the tr tag */     }     $name=mysql_result($result,$i,"name");     $image=mysql_result($result,$i,"image");     ++$i;     $stringToEcho .= "<td bgcolor=\"#000000\" valign=\"top\" width=\"100\" align=\"left\">\n";     $stringToEcho .= "<center>\n";     $stringToEcho .= "<a href=\"wrestler.php?name=$name\">\n";     $stringToEcho .= "<img border=\"0\" width=\"100\" src=\"http://www.reef-break.com/scw/images/superstars/$image.jpg\" />\n";     $stringToEcho .= "</a>\n";     $stringToEcho .= "<br>\n";     $stringToEcho .= "<font face=\"verdana\" size=\"1\" color=\"red\">\n";     $stringToEcho .= "<a href=\"wrestler.php?name=$name\">$name</a>\n";     $stringToEcho .= "</font>\n";     $stringToEcho .= "</center>\n";     $stringToEcho .= "</td>\n";     $j++;     if ($j == 5){         $stringToEcho .= "</tr>\n";         $j=0;     } } if ($bolEndTr){     $stringToEcho .= "</tr>\n"; } $stringToEcho .= "</table>\n"; echo $stringToEcho; ?> [/code] I hope this helps you, its also a good idea to make use of CSS for styling the elements you are displaying instead of having them in the page. It makes for easier editing 8)
  3. Hello, I would like my default virtual SMTP server to send email using php, when I use the Mail() function in php I get no errors and the NTFS_12868f1001c6ab2700000004.EML(just an example as this changes) file is created and placed into the Queue folder inside my c:\inetpub\mailroot\Queue. It never sends from this folder the email just stays there. At first I thought it was a php.ini file problem but my settings are 100% correct(as I understand it) let me give you some specs. Currently I think its a relay problem but im just not getting this right  :-\ [b]PHP.INI[/b] SMTP = localhost smtp_port = 25 sendmail_from = mhodge_txs@yahoo.com [b]PC SETUP[/b] PHP Version 5.1.3 IIS 5.1 Windows XP SP 2 [b]Default Websites[/b] Right click properties Server Extensions tab ->  Specifiy how mail should be sent -> Settings button Web servers mail address : @localhost Contact Address : @localhost SMTP mail server: localhost [b]Default SMTP virtual server settings[/b] Right click properties IP Addresses: All Assigned Access Tab -> Connection : All except list below Access Tab -> Relay : All except list below [b]telnet localhost 25[/b] 220 manimobile Microsoft ESMTP MAIL Service, Version: 6.0.2600.2180 ready at  We d, 19 Jul 2006 13:48:47 +0200 Please help this is most frustrating Thanks
×
×
  • 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.