Search found 8 matches

by jamie85
Wed Dec 13, 2006 11:08 am
Forum: PHP - Code
Topic: User image sort
Replies: 7
Views: 443

bokehman wrote:
jamie85 wrote:The user would check 2 boxes corresponding with the images they wish to swap, and then hit a submit button to swap them.
Swap them where? On the current page? On the client? On the server? Reorder the database? What?
Re-order the database.
by jamie85
Wed Dec 13, 2006 8:22 am
Forum: PHP - Code
Topic: User image sort
Replies: 7
Views: 443

The most intuitive would likely be drag'n'drop. However I would like to impress upon you that Ajax should not be the sole solution for this you implement. I would suggest that you build your system to be able to work without any Javascript first and foremost before prettying it up with Ajax. Indeed...
by jamie85
Wed Dec 13, 2006 8:02 am
Forum: PHP - Code
Topic: User image sort
Replies: 7
Views: 443

feyd wrote:What do you qualify as "the best way to accomplish this?"
The easiest way for the user to swap images.
by jamie85
Wed Dec 13, 2006 6:45 am
Forum: PHP - Code
Topic: User image sort
Replies: 7
Views: 443

User image sort

I currently have a site which displays a long row of images. I want to be able to add and delete images. The deletion is simply. Addition would be simply, however i want to be able to add images at a certain point, and also swap images if necessary. The images are stored in a folder, and the informa...
by jamie85
Thu Apr 15, 2004 1:47 pm
Forum: PHP - Code
Topic: background for php file
Replies: 9
Views: 886

:oops: hehe

ok i've done that and now its returning
Parse error: parse error, unexpected T_STRING in /home/httpd/vhosts/rokettes.co.uk/httpdocs/count.php on line 18
by jamie85
Thu Apr 15, 2004 1:25 pm
Forum: PHP - Code
Topic: background for php file
Replies: 9
Views: 886

thanks for that but the output is still as before :(
by jamie85
Thu Apr 15, 2004 1:07 pm
Forum: PHP - Code
Topic: background for php file
Replies: 9
Views: 886

heh i tried this> #!/usr/bin/perl -wT <html> <head> <title>COunter </title> </head> <body bgcolor = "#000099"> print "Content-type:text/html\n\n"; $log = "counter.log"; open GETCOUNT, "<$log" or die("Error in $0: $log - $!n"); $hits = <GETCOUNT>; clo...
by jamie85
Thu Apr 15, 2004 11:59 am
Forum: PHP - Code
Topic: background for php file
Replies: 9
Views: 886

background for php file

I am new to .php and i have obtained a file which can count hits on a website(shown below). I was wondering can i change the background colour? print "Content-type:text/html\n\n"; $log = "counter.log"; open GETCOUNT, "<$log" or die("Error in $0: $log - $!n"); ...