I just found out that, In IE when u use save picture as it saves as the type not .php and also when you save the document it saves a web page with the pic. I dint use that code from GD but another script which takes pictures from MySQL
You are unlucky, because Your code must not have <? ?> <?php ?> only php code like [code] $code="echo('Hello');"; eval($code); // Hello [/code] So you have to use echo for all html and for php use it like you would without the tags and use eval
If your index.php is this it would be better [code] <?php include ("login.php");?> <html> <head> </head> <body> </body> </html> [/code] Since sessions need nothing to be before them even HTML
Uh sorry, Another way [code] for($u=0; $u<=$num2; $u++) { $flds=''; $dat=''; for($i=0; $i<=$num; $i++) { $flds.='$fields['.$i'.],'; $dat.='$data['.$i.'],'; } $flds=substr($flds, 0, -1); $dat=substr($dat, 0, -1); $exec = '$sql = \'INSERT INTO $table['.$u.']($flds) values($dat]);'; // For debugging, you may uncomment this code // echo($exec); eval($exec); mysql_query($sql); } [/code] This should do it
Simce you said three images for profile you would also have to code much for DB and so you need normal uploading to do wonders. BTW, my question, what are the security risks if I upload images to a DB?
@Andyb - Sorry but I still dont see anywhere anybody giving a code which tells him not to use '' while putting vars in it, not is the use of . to do same here?
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.