Jump to content

FVxSF

Members
  • Posts

    52
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

FVxSF's Achievements

Member

Member (2/5)

0

Reputation

  1. If you're slow to echo from a DB it's probably the query. What's your query code?
  2. I've been looking at IonCube protection. It is a route I'd like to take to not only protect my code, but also help prevent malicious abuse ( I figure if they can't view the source it's going to be harder to hack ). My question though, is if I Cube my Code is there a way to allow people call functions that have been protected? Thanks
  3. Did you get it working yet then?
  4. so you printed out just the mime? If so that 10 should not be there at all.
  5. Ok, well I saw the screen http://www.imgx.org/public/view/full/11321 I see 10image/jpeg I don't know where the 10 came from but it should be just image/jpeg. check your database. for that entry. If you remove the 10 I think it should work.
  6. Yeah, this is a weird problem you're having. One last thing I can think about is the mime type. What is the mime? image/jpeg image/png? can you add die( $row['MimeType'] ); After $fdata = $row['FileData']; $ftype = $row['MimeType']; $fname = $row['FileName']; And post what that says. The only, last thing I can think of then is an invalid mime type... And if you posted that link to show us what's going on we can't see it since it's on your localhost. Can you post an example on the web at all?
  7. Ahhhh I think I know what it is. Take a close look at header('Content-type: $ftype'); you're tossing a variable in a set of single quotes. change the ' to " like this header("Content-type: $ftype"); Additionally you can also do this: header('Content-type: ' . $ftype);
  8. You said the image is stored in a BLOB? What's the encoding? Can you change it to BINARY? That's what's coming to my mind right now is the encoding. I could be wrong.
  9. One thing that caught my eye was "Group" GROUP is sql syntax maybe that's causing the problem? If Maq's advice doesn't work try renaming the Group field to something else. Try giving it a prefix like gr_Group or something. I had a similar problem when I first started only I had a field named Order. ** getting beaten to posting... **
  10. I don't fully understand what you're asking. But maybe GROUP BY could help? Or are you asking to also get the quantity ordered from the table? Which would be easy just add order_qty (or what ever you named the table) after products_id: SELECT products_id, order_qty FROM
  11. After $ResultMatch = mysql_query("SELECT Group FROM SubNav WHERE Parent='$Type'"); add this: if( !$ResultMatch ) { die( mysql_error() ); } This will tell you the error.
  12. Ah ok. The way you want to do it is a little more complex because you're going to have to "jump around". I'm scratching my head on this one. You know the feeling on how you know how to solve something but it's hard to explain. I'll see if I can work up an example. And if any one else reads this, I'm thinking of a foreach loop and dumping the results to an array.
  13. Well you beat me to it. I have some code to show you. I'm not sure if you wanted the second image to be so light but here's my version. The image has 100% opacity. One thing too, is since you're using PNG files you might want to change the white background of the second image to an alpha then use the imagealphablending function: Preview -> http://astuckpixel.com/subs/dev/merge/merge.php <?php header("Content-type: image/png"); // Main Image (550x250) $dest = imagecreatefrompng("sig.png"); // OverLay Image (60x74) $src = imagecreatefrompng("1.png"); //imagealphablending($src, true); // Copy and merge imagecopymerge($dest, $src, 75, 100, 0, 0, 60, 75, 100); // Output and free free from memory imagepng($dest); imagedestroy($dest); imagedestroy($src); ?>
  14. **Not no to slapdashgrim, he beat me to the post** No, SESSIONS are used for many things. They are used to track guests, page views, you can log how long people are staying at your site, security tokens, user authentication and more. When I work on my app that users inter act with, I use the session to store their User ID, User Name, Login Time, Their Power level (then match with DB) and a few other things if needed. So if the user is not logged in, you can create a variable say UserLoggedIn and have it equal FALSE if they are not or TRUE if they are. This also adds a little more security.
  15. Take a look where you placed session_start(). This might be the cause. All way stick session_start() at the top of the file. right after <?php See if that helps. Also. When you post mysql_connect() leave out the DB username and password. Don't want peps to hack yer site
×
×
  • 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.