Search found 6 matches

by Toktam
Tue May 20, 2008 11:19 am
Forum: PHP - Code
Topic: need some help
Replies: 12
Views: 567

Re: need some help

yes,i'm really lost. Actually this is my first php try. Anyway I have a table with movie_ids and the dates they have been borrowed as multi_value attributes. I tried to make a table of movie_ids and the number of times they have been borrowed by the first query and I need the movie_id with the maxim...
by Toktam
Tue May 20, 2008 10:59 am
Forum: PHP - Code
Topic: need some help
Replies: 12
Views: 567

Re: need some help

I tried that way but it just printed movie_ids not the name of the table
How I can find the name of table ? :(
by Toktam
Tue May 20, 2008 10:18 am
Forum: PHP - Code
Topic: need some help
Replies: 12
Views: 567

Re: need some help

I'm asking too many questions,sorry.
if I do $row=mysql_fetch_array($count_bor,MYSQL_BOTH),it means that I store the table in row variable?
It still gives me error when I change the count_bor to row in the second query
by Toktam
Tue May 20, 2008 9:40 am
Forum: PHP - Code
Topic: need some help
Replies: 12
Views: 567

Re: need some help

Thanks for the tutorial,

I looked at it but i couldn't find how we can store those information in the table
as I need a table for the second query.

Thanks a lot
by Toktam
Tue May 20, 2008 8:55 am
Forum: PHP - Code
Topic: need some help
Replies: 12
Views: 567

Re: need some help

Thanks emmbec,

I tried that,That's a pointer,right?
But how I can fetch the result?

Thanks again :)
by Toktam
Mon May 19, 2008 11:26 am
Forum: PHP - Code
Topic: need some help
Replies: 12
Views: 567

need some help

Hi all, Can we use php variable as a table in mysql_query? I did this : $count_bor =mysql_query("select movie_id,count(borrow_date) as count_borrow from borrow_history group by movie_id" ); $max_count =mysql_query("select max(count_borrow),movie_id from $count_bor group by count_borro...