| | What is the standard code for PHP to add articles to your databse, for instance. |
|
|
|
CODE $query = "INSERT INTO users (first_name, last_name, email, password, registration_date) VALUES ('$fn', '$ln', '$e', SHA('$p'), NOW() )"; $result = @mysql_query ($query); // Run the query. if ($result) { // If it ran OK. // Send an email, if desired. // Print a message. } Use the MySql INSERT command. The above code Inserts a user's information for registering the User into a Login database. Adjust according to your database design. There are some good Tutorials over at the w3schools site.
The next question. I need create an abstract to database, then, when the user press the button, called read more, for instance, it leads to a full article or story. Can you write the whole process, please.
The next question. I need create an abstract to database, then, when the user press the button, called read more, for instance, it leads to a full article or story. Can you write the whole process, please. Short answer, no. How this would be done depends on whether you want the abstract automatically generated, or whether you want it entered by the user. Secondly, how are you uniquely identifying each article in the URLs you are using, and how are they uniquely identified in the database? Finally, we need to know in what sort of coding context you're using this. Are you using object-orientated code, or not? Are you using any frameworks, such as Zend?
I wanted that the admin can only enter the info for abstract
Similar Topics
Keywords : questions, php
Questions (2) Hi all I want begin a new project , my new project is Photo blog ( weblog and image album ) in one (1) I am rewriting a Javascript into PHP, but I have two questions: How can I write these functions in (7) i have 2 questions about PHP...please don't answer like "use google"...or something...because i several questions on WAP forums (9) /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> Right i want to set up a (8) Ok, here's another. After looking at many PHP codes, I will call it "PHP Shortcuts". Do you please do help me (3) First , i'm planning to use preg_match, ereg_match, etc.. I think "preg" and "ereg" uses (3) Hi, I would like to know if it is safe to change HTML files to PHP files by just changing the Looking for questions, php
|
|
![]() Questions?! - PHP |
| ADD REPLY / Got an Opinion! | Remove these ADs! | RAPID SEARCH! | Free Web Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|