I have a string called $tabledetail that is built in a set of where and if statements. When I echo the string using the following statement
echo "$tabledetail\n";
I get the following output:
"<tr><td><font color='white'><a href='libraryonlinesearchsummary.php3?id=%s&title=%s' target='_blank'>%
s</a></td><td><font color='white'>%s</td><td><font color='white'>%s</td><td><font color='white'>%s</td><td><font color='white'>%s</td><td><font color='white'>%s</td><td><font color='white'>%s</td><td><font color='white'>%s</td></tr>", $sequenceidrow, $titlerow, $titlerow, $authorsrow, $pagesrow, $copyrightdaterow, $coverrow, $numberofcopiesrow, $callnumberrow, $authorsabbrrow
The above strings that are supposed to be substituted into each %s field are coming from a database. However, when I try to do the printf statement like this:
printf ($tabledetail);
I get the following error:
Warning: printf(): too few arguments in /home/countrys/countrysidechristian-www/interactivemultimedia/churchlibrary/libraryonlinesearch.php3 on line 214
Any help with what I am doing wrong with my printf statement is appreciated.
Thanks,
Brian