Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

I'm stuck

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Postby bmcua » Wed Feb 26, 2003 4:21 pm

I'm new at this..

printf ("<td>%s</td>\n",$Row[artist]);
printf ("<td>%s</td>\n",$Row[extra1]);

should be

printf ("<td>%s</td>\n",$Row["artist"]);
printf ("<td>%s</td>\n",$Row["extra1"]);

correct me if I'm wrong...=)
bmcua
 

Postby Redcircle » Wed Feb 26, 2003 5:42 pm

don't use either

use

echo '<td>'.$Row['artist'].'</td>'."\n";
echo '<td>'.$Row['extra1'].'</td>'."\n";

this runs faster than printf(); and easier to understand.
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.