Jump to content

AJReading

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

AJReading's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Nope, its supposed to be simple and basic. Files are uploaded into a folder and the script does the rest. There is no back end. The images can be changed to be resized proportionatly to a certain size, resized and cropped to fit a certain size or stretched to fit a certain size. Well thanks for checking it out. Glad to see there is nothing much ive overlooked.
  2. Heres a image gallery script i wrote about 3 years ago, its not got any obvious bugs as its been used by many many people for years and most have been ironed out. However i plan on giving it an overhaul as I'm now more experienced with PHP and will proberbly add album functionallity. So basically your comments, suggestions and bugs are appreciated before i start developing a new version of it. I've no idea if there are any secuirty issues with it so if anyone can find them that would be nice. Source: http://www.hotscripts.com/Detailed/46557.html Example: http://ajrgal.ajrdev.com
  3. just use addslashes() for all your input before storing it in the database. Then use stripslashes() each time you display it. You shouldnt have any problems if you do that
  4. USE POST: <form action="myPage.php" method="post"> <input type="hidden" name="to" value="toUserID"> <input type="button" name="myButton" value="Send Message"> </form> This would use a hidden field to pass the toUserID (which you would have to dynamically enter) to the $_POST['to'] variable in your script Or you could use GET and do somthing like: <a href="myPage.php?uid=toUserID">Send Message</a>
  5. I would go one step further and use the following: <?php $mems = "SELECT image FROM bait WHERE name='bread'"; $mems = mysql_query($mems) or die(mysql_error()); while($row = mysql_fetch_assoc($mems)) { echo '<img border="0" src="'.$row['image'].'" alt="" /><br />'; } ?> Should work the same but i perfer to clearly split my variable in echo statments. As chigley pointed out you need them quotes around the word name='bread' in your mysql query. You should always use them unless its a number
  6. Im not 100% certain but i believe if you remove the comma as show below your problem will be solved: Try changing this code (Line 4) 'bday_year' => $this->ipsclass->input['year'], to 'bday_year' => $this->ipsclass->input['year'] simply removing the comma at the end of the line as it is the last value you have entered into your array
  7. Great, Thanks for your time guys
  8. Yea i noticed that too, i picked out some fonts purely because they differ a lot, i guess ive got to choose a few better ones. I removed "o" and "0", "B" and "8" ect to remove as much confusion as possible but a new font may be a good idea. So the execution speed seems ok?
  9. Hey guys, I just finished an image varification script http://www.ajrdev.com/ajrval/ajrval.php Ive made a basic sample test form at http://www.ajrdev.com/ajrval My internet connection is very fast so would like it if you guys could make sure the script executes nice and fast. I put a timer on the script and it comes out around 0.0060 to 0.0100 most of the time and im not sure if its accurate. The script picks out and loads 5 different random fonts so i just want to make sure its not going to be slow for people. If you could let me know if there are any speed issue that would be great. any other comments welcome too - thanks
  10. On the page you submit to, you query is as follows: [code]$query_editnews = "SELECT * FROM events ORDER BY ev_id DESC";[/code] Surely to only retrieve the row you selected with the radio button it should be somthing along the lines of: [code]$query_editnews = "SELECT * FROM events WHERE ev_id=".$_GET['ev_id']." ORDER BY ev_id DESC"; [/code]
  11. Ive made a system similar to this before. To ensure users could only login from certain computers I wrote a simple visual basic application that I installed only on the computers I wanted to allow access. This program ran in the background and was discreet. This lil visual basic application updated a mysql table every x minutes with the computers current ip address. The php script would then check that the login is coming from a certain computer by checking the ip's. Its ideal for if the ip changes often too.
×
×
  • 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.