I'm stuck

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

bmcua

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...=)

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

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.


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest