Search found 10 matches

by krystof78
Thu Nov 05, 2009 5:58 am
Forum: PHP - Code
Topic: Uploading large flv files
Replies: 8
Views: 274

Uploading large flv files

Hi there, I have some trouble uploading large FLV files via a form. Here is my code:   <form action="edit_showreel.php?actor=<?php echo $sel_actor['id'];?>&currentpage=<?php echo $currentpage;?>" method="post" enctype="multipart/form-data"> <label for="uploaded...
by krystof78
Mon Nov 02, 2009 3:22 am
Forum: PHP - Code
Topic: Custom list order
Replies: 9
Views: 257

Re: Custom list order

With the help of a friend, I found the solution. I was actually pretty close to the solution. The only problem was that I was sending a sql query (find the number before/after the position) in another sql query (switch the position), which could not work. What I had to do is set the number found by ...
by krystof78
Thu Oct 29, 2009 6:16 am
Forum: PHP - Code
Topic: Custom list order
Replies: 9
Views: 257

Re: Custom list order

I have done some changes to the code but it does not seem to work.   <?php // if an arrow link was clicked... if (isset($_GET['dir'])) {     if ($_GET['dir'] && $_GET['position']) {        // make GET vars easier to handle        $dir = $_GET['dir'];        // cast as int and couple with swi...
by krystof78
Wed Oct 28, 2009 5:32 am
Forum: PHP - Code
Topic: Custom list order
Replies: 9
Views: 257

Re: Custom list order

Ok. So here is how my table "subjects" is built: http://img24.imageshack.us/img24/3267/picture1rg.png And here is the code:   <?php // find out how many rows are in the table $sql = "SELECT COUNT(*) FROM subjects"; $result = mysql_query($sql) or trigger_error("SQL", E_U...
by krystof78
Tue Oct 27, 2009 1:03 pm
Forum: PHP - Code
Topic: Custom list order
Replies: 9
Views: 257

Re: Custom list order

Sorry Califdon, I did not know about that rule. I guess I am so into my project and can't so far find a solution that I got a bit too impatient... As for my problem, I am going to try to be a bit clearer. Basically, the script described in the tutorial shows how to move up or down a row in a table b...
by krystof78
Tue Oct 27, 2009 11:18 am
Forum: PHP - Code
Topic: Custom list order
Replies: 9
Views: 257

Re: Custom list order

No one can help me on that? :(
by krystof78
Tue Oct 27, 2009 8:28 am
Forum: PHP - Code
Topic: Custom list order
Replies: 9
Views: 257

Custom list order

Hi there, I have found this tutorial and it's great till the point where I want to display my data by a variable. Let's say that I have in my table these fields: - id - name - usort - category I want to display the information by category. But then, when I use the script described in the tutorial, i...
by krystof78
Fri Oct 16, 2009 8:08 am
Forum: PHP - Code
Topic: Breaking records into pages
Replies: 5
Views: 624

Re: Breaking records into pages

Thanks for your answer too! :)
by krystof78
Fri Oct 16, 2009 7:56 am
Forum: PHP - Code
Topic: Breaking records into pages
Replies: 5
Views: 624

Re: Breaking records into pages

Thank you for your answer but I actually found what I needed on another website with this tutorial:
LINK

Thanks anyway.

Cheers.
by krystof78
Fri Oct 16, 2009 4:09 am
Forum: PHP - Code
Topic: Breaking records into pages
Replies: 5
Views: 624

Breaking records into pages

Hi guys, I am struggling with some code for a couple of days and can't figure out what to do. I have to admit that I am pretty new at php. Here is my issue. I have a table in my database recording all the news of my website. Pretty simple table with these fields: [li]id[/li] [li]menu_name[/li] [li]v...