Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing quotes and percentages through printf 1

Status
Not open for further replies.

Aeros

Programmer
Joined
Oct 7, 2002
Messages
166
Location
US

Im pulling data from a query that contains quotes and percentage signs that break the code when I display it:

printf("$varProdDesc");

How do I avoid this?

Thanks
 
Have you tried using
Code:
echo
or
Code:
print
instead of
Code:
printf
?

//Daniel
 
actually I just tried using print and that works perfectly. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top