Search found 3 matches

by Shelv
27 Sep 2011, 17:52
Forum: Web Development
Topic: Moving images in PHP
Replies: 1
Views: 2264

Moving images in PHP

Hey guys & girls I'm trying to move images in php but it's not working. <?php if (isset($_POST['submit'])) { if ((($image_type == 'image/jpg') || ($image_type == 'image/pjpeg') || ($image_type == 'image/bmp') || ($image_type == 'image/gif')) && ($image_size > 0) && ($image_size <...
by Shelv
27 Mar 2011, 16:03
Forum: Web Development
Topic: Two Submit buttons in a loop problem
Replies: 3
Views: 2958

Re: Two Submit buttons in a loop problem

I changed it a bit, added check boxes next to every entry. function delete_course() { global $connection; $manages = "SELECT * FROM course ORDER BY cid ASC"; $tables = mysql_query($manages, $connection) or die ("Database course query failed: " . mysql_error()); $num = mysql_num_r...
by Shelv
27 Mar 2011, 10:14
Forum: Web Development
Topic: Two Submit buttons in a loop problem
Replies: 3
Views: 2958

Two Submit buttons in a loop problem

Hey guys, what I've got here is a loop that creates a form with a table in, it also has a delete button and edit button for every row it displays. I got the delete button working and doing what it should do but the edit button not. I coded the edit button to redirect me to the index page and if I cl...