Jump to content

Chetan

Members
  • Posts

    162
  • Joined

  • Last visited

    Never

Everything posted by Chetan

  1. I just found out something, You can use COM functions for that, and there are many such classes at www.phpclasses.org
  2. 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
  3. You need to create a file test.txt
  4. 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
  5. 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
  6. But incase I only use the database to store my pics, not the uploads, is it safe?
  7. Well that was done before~~, fenway, thats what I hav been saying and AndyB corrected it. And did you think you had it NOT NULL as I said
  8. Ofcourse, we cant pm here, and i dont know your messenger ids. tellme and ill add you, preferably Y! but MSN would also do.
  9. 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
  10. I think thats a true, better you try some code
  11. You made it with NOT NULL remember, look at the code on the first page, it says fip is NOT NULL
  12. $post2 = wordwrap($post, 20, "<br />\n"); Directly from my copy of php manua;, btw where are you from?
  13. Delhi, India $post2 = wordwrap($post, "/n", 20);
  14. Ill register. Well the desi in your name makes me laugh it means sumthin kinda funny
  15. 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?
  16. See the $ are not considered as variables as i said it should be changed
  17. or phpinfo which gives info about what is installed and what is not. or use gd_info() which will work only if there is GD
  18. You can generate JS from PHP but they dont work together.
  19. Ohk, what I meant was youll have to make it better than atleast pokemoncrater.com so ppl play it much, it isnt even famous among my frends~~
  20. @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?
  21. PHP is though dynamic it can only give the browser a HTML code it can though be like a software but it cant control the browser.
×
×
  • 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.