Jump to content

niranjnn01

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

niranjnn01's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello Guys, I want to extract the attachment from an email. I searched and I found the following link below and many similar ones useful. http://garrettstjohn.com/entry/extracting-attachments-from-emails-with-php/ I am able to get the name of the attachments too.. but.. what after getting the file names? .. How do i actually access the file and move it to a location to my server?.. that part is unclear to me.. Please share me your views on this.. or point me in some direction as to how to accomplish this task. Thank you, Rakesh.
  2. hello use $_SERVER['PHP_SELF']
  3. then it wont be a problem.. website tables usually have 10,000+ records to handle... and it takes only milli seconds to get them... php too, wont get slow in processing them.
  4. friend... give more details, so that someone reading ur question will feel like answering... what are these items? there size ? 45 * 6 = 270 records ... wont slow down sql in normal case.. is my suggestion
  5. I guess you are asking for the mysql query?.. if so, then a better place to get help is the mysql forum http://dev.mysql.com/ .u will get better answers there. its a very active forum. and what every mysql query u get at the end, run it in mysql_query(); Hope this helps. Rakesh
  6. <?php $str = <<<A \$adsadad <br/> <div class="asdasdl"> <a class="link" href="example/example2/example"> Hello World </a> </div> A; echo "<pre>"; echo htmlentities($str); echo "</pre>"; ?>
  7. place a ; at the end of line $sql = "SELECT name, title, date, state, userid, textid, SUBSTR(page,0,100) AS limitpage FROM " . TABLE_PREFIX . "text WHERE title = '' AND state = 'visible' ORDER BY dateline DESC LIMIT 5"
  8. check n see what the mysql_num_rows is returning... I guess in some cases, if there are no rows in the result set, mysql_num_rows will return 0 . this means that ur if will work. rewrite it as if(mysql_num_rows ($query ) ! = 0)
  9. Hello.. This can be done with ajax.. and javascript.. and php use javascript to display the text box on the "OnClick" event, and then enter the data. ajax can be used to send this new data to ur database for updation. [u will need a php file to handle the data from ajax and update table at the other end]. now u can use javascript to specify, if the form [ie the text field, ]needs to be submitted when u click outside the text box, or with an update button. Learn more abt ajax, and javascript . u will get more ideas then Rakesh
  10. Get all the country codes to a database, use array_slice to cut off the first 3 digits , and check if they match any of the database entry.. http://in2.php.net/manual/en/function.array-slice.php Regards Rakesh
  11. allworknoplay Hello gizmola, your suggestion worked, . The second array, $aArray2, was not an array.. it was being initialized inside some conditions. array_merge is working fine now.. - Dont worry allworknoplay.. i copy pasted the print_r output as an example.. it was not an array declaration Thank you all for your inputs. Rakesh
  12. just a suggestion... output and check the value of $check2 in the following code. $check2 = mysql_num_rows($checkusex);
  13. Hello, if u r a complete newbie to coding, then i hope this will help a lill make a table called 'Login' with fields id, username password. then a table called 'Grades' made, with fields like id[set it as foreign key to the field 'id' of table 'Login'], grade1 grade2 totalgrade when a person tries to login, a php code will check if the username and password entered matches any entry of 'Login' table. if it matches, then get the corresponding 'id', and continue inside the website. otherwise, ask for correct login information again.. now, as soon as thy login, run a php code, which will run a query to see if the value of 'totalgrade' field of table 'Login', corresponding to the id you got in the last step, is above 40. if it is not, then give an alert message... this is very basic stuff..just to get u sarted. you will have to learn abt. html [for login form] mysql [for making tables, populating and retrieving data from it.] php [to make the whole thing work] and lill javascript[to give alert message.. you can do without it too.] Regards Rakesh
×
×
  • 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.