Jump to content

Stavros

Members
  • Posts

    21
  • Joined

  • Last visited

About Stavros

  • Birthday 05/18/1978

Profile Information

  • Gender
    Male
  • Location
    Melbourne

Stavros's Achievements

Member

Member (2/5)

0

Reputation

  1. Hello I'm looking to hire a PHP Javascript developerI would like to hire a PHP Javascript developer to help with an existing application. Work will be task orientated. If you have the required skills please email me at steventriplow@hotmail.com. If we could speak on skype this would make things easier.
  2. Hello I'm setting up a WAMP server on one of my XP machines and I need to add imagick. Everything seem to install ok. But after installing imagick and copying down the dll and then rebooting I keep getting this error. PHP Startup: Unable to load dynamic libary c:/wamp......php5.4.3/ext/imagick.dll The specified procedure could not be found. I followed these instructions: http://www.elxsy.com/2009/07/installing-imagemagick-on-windows-and-using-with-php-imagick/ Any advise on which dll I could try or why this error is coming up would be appreciated.
  3. Hello there I think you are missing some syntax on this section "$zip', $phone, $hill, $hard, $gated, $apartment, $instructions, $where," you need to add in ' ' etc for each item as you have on the variables before the poit where the error starts. eg '$gated'
  4. Hello I need some help here as I cant see where I'm going wrong with my code??? I have say 5 rows in a table and if I delete row 3, row 3 is deleted and rows 4 & 5 are now renamed to rows 3 & 4. make sense? BUT when I try to delete row 1 I end up with two row 2's. Any help appreciated... //Find the amount of LineItems and delete $CheckItemDelete=$_GET["LineItemDelete"]; //Find quote number and show frames to edit $result = mysql_query("SELECT * FROM Table WHERE ID='1'") or die(mysql_error()); ($row = mysql_fetch_array($result)); $QuoteCheck = ($row['QuoteCheck']); mysql_query("DELETE FROM Table WHERE LineItems='$CheckItemDelete' && QuoteNum='$QuoteCheck'"); mysql_query("DELETE FROM Table WHERE LineItems='$CheckItemDelete' && QuoteNum='$QuoteCheck'"); mysql_query("DELETE FROM Table WHERE LineItems='$CheckItemDelete' && QuoteNum='$QuoteCheck'"); $result3 = mysql_query("SELECT * FROM Table WHERE QuoteNum='$QuoteCheck' ORDER BY LineItems ASC") or die(mysql_error()); ($row3 = mysql_fetch_array($result3)); while($row3 = mysql_fetch_array($result3)) { if (($row3['LineItems']) > $CheckItemDelete){ $LineItemCountAdjust = ($row3['LineItems']) - 1; $LineItemCount = ($row3['LineItems']); rename("Folder/$QuoteCheck$LineItemCount.png", "Folder/$QuoteCheck$LineItemCountAdjust.png"); echo "$LineItemCountAdjust"; echo "$LineItemCount"; $result = mysql_query("UPDATE Table SET LineItems ='$LineItemCountAdjust' WHERE LineItems='$LineItemCount' && QuoteNum='$QuoteCheck'") or die(mysql_error()); } } $MyDir = "Folder/"; $MyExt = ".png"; unlink($MyDir.$QuoteCheck.$CheckItemDelete.$MyExt);
  5. W3 schools is a good resource http://www.w3schools.com/php/php_mysql_select.asp
  6. To clarify is there and function that will allow a user to draw and drag using cursor and then save?
  7. Hello all I have a requirement to create images mostly made up of rectangles circles and squares etc I have discovered imageline but is there anything a bit more exspansive?
  8. Hello I need some general advise. I have developed a PHP application which is almost finished, there is just one more function I would like it to have. At the moment users have to right click download image edit it with gimp or some other too and then upload again. I would prefer if they could just edit it on the site? Is this possible? I have researched google and come up with donuts. I did find anydrawwiki which is what I need but not sure how to implement that into my site. Any advise appreciated.
  9. Ok this one was to do with my host they have since enabled some rule (didn't say which one) to allow script to run, problem solved. cheers
  10. Hello is there any reason why one file in my app would produce a 404 forbidden error?
  11. Ok appears I'm on the wrong track. I guess I was highlighting that I have not setup a WAMP here (not sure if that is related to the issue). I'm hitting a brick wall here, I have tried recreating the file still nothing, Is ist something in the file that is performing a task that the server is not happy with? Other PHP seems fine just this one file out of 30? Here is my code: <?php // Connects to your Database include("../connect.php"); ?> #form_container { background:#fff; margin:0 auto; text-align:left; width:1020px; } </style> </head> <body id="main_body" > > <?php // Connects to your Database include("../connect.php"); // find out how many records there are to update $size = count($_REQUEST['element_20']); // start a loop in order to update each record $i = 0; while ($i < $size) { // define each variable $element_20= $_REQUEST['element_20'][$i]; $element_21_1= $_REQUEST['element_21_1'][$i]; $element_21_2= $_REQUEST['element_21_2'][$i]; $element_21_3= $_REQUEST['element_21_3'][$i]; $element_21_4= $_REQUEST['element_21_4'][$i]; $element_8_1= $_REQUEST['element_8_1'][$i]; $element_8_1_2= $_REQUEST['element_8_1_2'][$i]; $ID = $_REQUEST['ID'][$i]; $query = "UPDATE #SET element_20='$element_20', element_21_1='$element_21_1', element_21_2='$element_21_2', element_21_3='$element_21_3', element_21_4='$element_21_4', element_8_1='$element_8_1', element_8_1_2='$element_8_1_2' WHERE `ID` = '$ID' LIMIT 1"; mysql_query($query) or die ("Error in query: $query"); print "$element_20<br /><br /><em>Updated!</em><br /><br />"; ++$i; } mysql_close(); ?> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="80"> <tr> <td align="center"><u><a href="javascript:window.close()">Close</a></u></td> </tr> </table> <div id="footer"> Created by <a href="http://www.#.com.au">###</a> </div> </div> <img id="bottom" src="bottom.png" alt=""> </body> </html> <? ?>
  12. Hello I should mention this is from a hosting service (cpanel). The error is Forbidden You don't have permission to access ** on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. **This only occurs on this page** Is there something in the page that could be causing this?
  13. Hello, couldn't get the search function going, but need some help on a php file in my application. There is one file that will not process, I have tried a few resolutions from google but nothing seems to work. I have tried changing the file permissions and recopying the entire app onto my host again. I dont understand why it is effecting just one page? Any advise appreciated. File does simple session check and checkbox update to table. Other php files update same table fine with same credentials
  14. Hi all I have been trying to sort this one out for hours now. I just need to sort my list alphabetically, any advise appreciated. This what I have so far if ($handle = opendir('./Items/')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $thelist .= '<a class ="preview" href=Items/'.$file.'>'.$file.'</a> <br>'; } } closedir($handle); } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $Pics = array ($thelist); sort($Pics); foreach ($Pics as $key => $val) {echo "Pics[" . $key . "] = " . $val . "\n";}
  15. Hello can anyone help with my code, it bombs out if I dont add in a file for attachment but i want to be able to add to the database with just comments (sometimes without a file) Any help appreciated!!! $timestamp = time(); $tbl_name="guestbook"; // Table name $email = $_REQUEST["email"]; $name = $_REQUEST["name"]; $comment = $_REQUEST["comment"]; $datetime = date("dmy"); $uploaddir = "upload/"; $filename = $timestamp.$file['file']['name']; $filename = strtolower($filename); $final_location = "$uploaddir$filename"; $pathinfo = pathinfo($_FILES['userfile1']['name']); if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/pjpeg")) && ($_FILES["file"]["size"] < 2000000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $filename . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; if (file_exists($final_location)) { echo $filename . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"], $final_location); echo "Stored in: " . $final_location . "<br>"; mysql_connect("$host", "$username", "$password")or die("cannot connect server "); mysql_select_db("$db_name")or die("cannot select DB"); $sql="INSERT INTO $tbl_name(name, email, comment, datetime, upload)VALUES('$name', '$email', '$comment', '$datetime', '$final_location')"; $result=mysql_query($sql); } } //} else { echo "Invalid file"; } if($result){ echo "Successful added update to the Board"; echo "<BR>"; echo "<a href='HomePage4.php'>View Bulletin Board</a>"; } else { echo "ERROR"; } mysql_close(); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.