Jump to content

pranshu82202

Members
  • Posts

    125
  • Joined

  • Last visited

    Never

Everything posted by pranshu82202

  1. I am hosting the php's on a webserver (dont know whether in my timezone or not )..... Can i have the now() function according to me.... Can i add or subtract something from it ???
  2. Thanxx man... Date is working fine but the time it enters is wrong.... My system's clock is showing correct time... Value which the function gives is : 2011-07-13 10:55:20 :confused: :confused: :confused: :confused:
  3. guyzz i created a column in my mysql database with datatype datetime... Deafult: 0000-00-00 00:00:00 I want to get the time when user logged in his account... But i am not getting the proper php function which i shuld use here.. Can you tell me which php function i shuld use....
  4. By procedure (of course not the code )... i mean .... what steps shuld i take to add a comment box.. Either i store all the comments in my databse... Or their is something in html itself.....
  5. I want to know the procedure of the comment box.. Weather i need to upload all the comments to my database using php... Or i need to do something else... Plzz Tell ...
  6. Can you guyzz give me some link of tutorials in which html is coded inside php. Well give mo a example how to echo ("Hello World"); in a particular font face and size......
  7. I have created a website. In which their is registration form. i want that, when a user fill the form an automatic mail will send to the user. (user already entered his email id in the form) well i want to send the mail from my gmail account. assume my username - aaa assume my password - bbb Can you guyzz tell me what will be the php script.
  8. I am creating a registration page in php. In which the action of the registration form is insert.php I want that insert.php shuld only be accessed when a user goes from registration.php.... Please tell me how to do that....
  9. Sir its all done ... And thats all because of you.... Thanx a lot
  10. i m using internet from my mobile phone which is not 3G A real slow speed internet.. Ok just tell me i made everyone.php in which i created a from to insert some value and set action to everyoneinsert.php now just tell me what shuld be the code of evryone.php and where shuld i put $id = $_GET['id']; And then how to get this id in my everyoneinsert.php
  11. Sir one more help plzz... On the Everyone.php page, use this: Code: [select] $id = $_GET['id']; $get_user = mysql_query("SELECT * FROM `users` WHERE `id`='".$id."'"); $user_info = mysql_fetch_assoc($get_user); adapt that also. ----------------------------------------- When they send the 'value' Use the query like: Code: [select] $user = $user_info['username']; $value = $_POST['value']; $send = mysql_query("INSERT INTO `tbl_name` VALUES ('', '$user', '$value')"); Can you plzz little bit explain these codes.....
  12. Sir i solved it ... Now its working..... Sir it was great having a conversation with you... Thanxx a lot.... If i'llbe having any problem i will contact you... Hope you wont mind it..... Thanx a lot again
  13. i tried this also but gives same error
  14. Thank you so much sir but when i run my verify.php {your first provided code} it says error that mysql_fetch_assoc(): supplied argument is not a valid MySQL result what shuld i do... ????
  15. Thats so kind of you.... Thanks for your such great help... Plzz tell me in everyone.php from where it will get the id....
  16. Exactly... Well i m on gtalk pranshu.a.11@gmail.com You can add me if you are also on gmail Well can you tell me the code of the verification page (login verification page) and the code of everyone.php page and the code of php which inserts the data into the database..... It would be damn good if you provide me these... PLZZ HELP
  17. first of all users register to my site. After which i allot them a username, password, id (an auto increment column and a primary key ) This is the id ... When the registered user log in We redirect them to the members page which looks somewhat like this -------------------------------------------------------------------------------------------------- Welcome, Your personal url is http://abc.com/everyone.php?id= 8 (You can give this url to anyone) here is the data which others enter with your url xyz abc ... .. . -------------------------------------------------------------------------- Did you get what i am trying to say.....
  18. if you are on the page http://abc.com/everyone.php?id=8 and you enter the value "helllo" then it will store 8 in the id column and hello in the value column of my database.... plzz refer http://dumbo.im and you will get to know what i am saying... Plzzzz
  19. Let me elaborate i have a page everone.php in which their is a text field. and their is a link http://abc.com/everyone.php?id= which displays same page everyone.php but when someone enters an any value in the textfield it get stored in my database with the id of the user with which it belongs... Plzz Help me i want to create something exactly like www.crushbits.com. You plzz access this site and you'll get to know what i want to create... You guyzz are great ... Plzz Help Me
  20. is id the column name of the table in mysql database ?? Or its just the variable... If its just a variable then what is the sense of http://abc.com/everyone.php?id=8 Please elaborate this.... I want it very badly....
  21. Also tell me waht is the significance of the word id in the url. (http://abc.com/everyone.php?id=
  22. the php page in which i verify the login, $username = $_GET['usname']; $userpass = $_GET['uspass']; $username = stripslashes($username); $userpass = stripslashes($userpass); $username = mysql_real_escape_string($username); $userpass = mysql_real_escape_string($userpass); $sql = "select * from logintable where us_name='$username' and us_pass='$userpass'"; $result=mysql_query($sql); $count=mysql_num_rows($result); if($count==1){ session_register("usname"); session_register("uspass"); $userPrimaryKey1 = "select id from logintable where us_name='$username'"; $userPrimaryKey=mysql_query($userPrimaryKey1); // Now from here the problem starts // I want to redirect user to a member page (only accessible to mebers) // In which i will provide him a url (Corresponding to his id) (and accessible to anyone) // When someone enters the url and insert some value in the url i want to store those in my database with a id field (id of the user to which this url belong) echo "Your generalized url is " echo 'http://abc.com/everyone.php?id='.$userPrimaryKey.''; // please tell me weather i write it correct or not. else { echo "<br>"; echo '<center>'."Wrong Username or Password".'</center>'; }
  23. I am a student and learning php. Actually i have my code ready. I have created the registration page. A php script to send registration details to database. I have created a login page. A php script to verify the login I have created a general page for all user which have some text fields. Url of the page be like (http://abc.com/everyone.php?id= ( Here ID is the id of the registered user) (Anyone can access this page) in which any (even non registered or logged in ). When user enter data the data automatically inserts into my sql database with the id of the registered user. I have successfully inserts all the data except the id of the owner of the page. And also tell me how shuld i create such a url ... And what shuld be the name of the general page (everyone.php) I am pissed off ....
×
×
  • 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.