/    Sign up×
Community /Pin to ProfileBookmark

[URGENT] sprintf(while)

how do you put the contents produced by a while loop into sprintf…

please i really need it…..my life depends on it…hehe..not really, but i really need it fast…

here’s the deal..

there is a while loop here…

[code=php]//database query here
$db_query = mysql_query(“SELECT * FROM mypocket”);
while($query = mysql_fetch_array($db_query)){

// this is what i need to put into stream
// all data produced by the while loop for the query
// is put into stream[sprintf]…
//HOW??

} [/code]

putting sprintf infront of the while causes an error, is there a way?..thanks..?

[B][SIZE=”7″]THIS IS URGENT!![/SIZE][/B]

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@php_hazard_01authorApr 29.2007 — [SIZE="7"][B]please it's really urgent!![/B][/SIZE]
Copy linkTweet thisAlerts:
@NogDogApr 30.2007 — What stream does the data get added to? How is the data from each query result row formatted? Why do you think that shouting at us would encourage us to want want to help you?
Copy linkTweet thisAlerts:
@php_hazard_01authorApr 30.2007 — [B][SIZE="7"]hehe...XD LoL..?[/SIZE][/B]

i dont know...hehe...anyways, i resolved it...?

i was using the template class of PHPBB....and i figured out how they do it..?
×

Success!

Help @php_hazard_01 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...