alex1985
Apr 14 2008, 01:17 PM
| | What is the standard code for PHP to add articles to your databse, for instance. |
Reply
jlhaslip
Apr 14 2008, 02:07 PM
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.
Reply
alex1985
Apr 15 2008, 05:56 PM
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.
Reply
rvalkass
Apr 17 2008, 07:26 PM
QUOTE(alex1985 @ Apr 15 2008, 06:56 PM)  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?
Reply
alex1985
Apr 18 2008, 09:51 PM
I wanted that the admin can only enter the info for abstract
Reply
Similar Topics
Keywords : questions, php
- Some Of The Biggest Questions In Life.
Things that make you go hmmmm... (2)
Tax Deduction Questions...
(0) I was just looking at tax deductions because I'm buying a bunch of stuff for when I go downrange
and was planning on doing a tax write-off on that stuff. However, I'm not sure what is allowed
technically/legally, so if anyone could point me in the right direction, that would be cool.
Basically, I'm going off and buying a ton of stuff off of Ranger Joe's because we all know
that in today's Army, yesterday's Army, and the Army of yesteryear, the government has been
great in equipping the individual soldier with the best stuff to keep them alive. /....
A Couple Of Questions About Delphi
(3) 1. Is there a way to get a legal version of delphi 7 free? 2. Where are some tutorials for it? 3. Is
this is the wrong section?....
Some Questions About Qupis Hosting !
(2) Hi All, I have some more questions about Qupis hosting. 1.) Will my account get deleted suddenly
without notice ? 2.) When doing ajax on some applications. The text-ad appear on that data also.
Possible this limited to only a single whole pages ? Thanks Eric,....
Finance Section Suggested
We should have a section dedicated to financial information, questions (0) We should have a section dedicated to financial information, questions, comments and suggestions.
A possible subsection of the Finance section could be the Identity Theft section where people could
inform others of the risks the pose when divulging personal information to untrusted and unencrypted
websites, restaurants, vendors, etc. I wanted to post information on this topic but could not find
a suitable section to post in. Maybe I didn't read closely enough... if so, maybe i can post
here and the moderators can move my post, or quote me in the proper forum: ....
Document.write & Noscript Questions (javascript)
(1) I am trying to use javascript to include a stylesheet depending on the user's resolution. The
HTML CODE <head> <meta http-equiv="Content-Type" content="text/html;
<?php echo _ISO; ?>" /> <?php if ($my->id) {
initEditor(); } ?> <?php mosShowHead(); ?>
<noscript><link rel="stylesheet" type="text/css"
href="http://www.highimpactart.org/templates/_HighImpactArt_/1024/1024.css"
/></noscript> <script type="....
Flash And Javascript Interaction
swfobject js questions (1) I don't know if anyone on here is familiar with this script. You can check it out here .
Basically it's a script that is supposed to give you javascript control over a flash object. I
am using it for a flv player. My question is this. I would like to display the current file's
title in a span element on the page, but the function described to gather the information for the
current file doesn't seem to work for me. The function, as outlined on on this page looks
like this: CODE function getUpdate(typ,pr1,pr2,swf) { if(typ == ....
Php Questions?!
From: alex1985 (19) Listen, as I'm novice in PHP, I will ask certain questions in this topic hoping on your
contribution. $dbhost='.....'; //The Database Information//
$dbhost='localhost'; $dbname='alex1985_test';
$dbusername='alex1985_admin'; $dbuserpass='0505009127'; //Creating
Connection To The Database// mysql_connect ($dbhost, $dbusername, $dbuserpass);
//Select The Certain Database// mysql_select_db ($dbname) or die ('Can Not Select
Database'); //Start The Session// //Always Must....
Questions About Upgrading A Freedom Package
(0) hi there, i have been a computing host client for a small time now... i purchased the plan b when i
began making my site, then i upgraded to the budget freedom package, now i am pondering what to do
next. Well the site isn't exactly highly trafficked, but i am using drupal which quite a
resource hog, so i am thinking of making the upgrade to fulfill those needs. So i am asking for an
advice on which package should i choose next... and i have to say that i am not comfortable managing
a vps as i am not experienced. so i am thinking of upgrading from 'budget freedom....
Group Limitations
Answer some questions about charectoriation from groups in earlier edu (0) I think that groups are very restrictive at schools. You just sort of fit into a group and than
stay their for the rest of your education. At least at my school we started out as a group in about
6th grade. After that it is basically the same people every year. Then every now and then their is
a new student that comes around and all the groups try to get the new guy to join them. I have to
say that it is somewhat funny how the groups just sort of start calling each other by a certain
name. For instance in my school we have the farmer hicks, the thespians, and the pe....
What's The Problem With America's Youth?
I have the questions, I want your answers... (69) What is the problem with America's youth? Not just violence, but things like skipping school,
dropping out, failing, the insane ability to destroy the English language, and i guess violence too.
What causes students to feel compelled to skip school? Is it some kind of "Fight the Man"
mentality? Of course no one realizes that working at McDonald's for the rest of your life
isn't as bad as going to school for five* (yes, only five) hours a day. Most likely because the
people telling them this are the ones considered to be "The Man" and they must be disobeyed a....
Legal Disclaimer Questions
Anybody got some advice for my webpage's legal disclaimer? (1) Hello, I need to put a legal disclaimer in a webpage I am doing for an electronic music collective,
and well I was advised not to put anything that is not owned by us until we sort the legal things
out so that we dont get into trouble, and I was wondering if a legal disclaimer would be enough to
prevent us from getting sued or anything. I also googled up "how to make a legal disclaimer" and
"legal disclaimer tutorial" but I couldnt really find anything except everybody elses legal
disclaimer. I thought that i might copy a thing or two from some of them, but If anybody ....
Rpg Maker 2003 Questions
Relating to battle... (2) What is the difference among "Pincer Attack", "Surround attack", and "Back Attack"? How do I change
the battle type? The three battle types are "traditional", "alternative", and "guage" What do
intelligence and agility do in RPG Maker 2003?....
Some American Football Questions
(6) So i have ( for an unknown reason ) been reading and watching quite a bit of American Football
related Fiction ( Bleachers and Playing for Pizza by John Grisham and Friday Night Lights, Remember
the Titans and Varsity Blues mainly )and a few questions have popped up: 1: What does being an All
American mean? 2: When Teams win a State title, doe they then go on to a competition between the
other State title winners to find the best in the country? 3: why are the plays so scripted, can
they not make it up on the fly? 4: In "Varsity Blues" the QB gets the clock to stop b....
Webdesign Frequently Askd Questions
is it posible to design a sercheingin in your website. (11) what i wanna no is is it posible to incorporate a custom search engin into your own website. for a
while now i have bin wondering is it posible to do this as i would like to try something like this
out. but i have heard of there being a way to do this in pearl but i no nothing of pearl does
annyone have anny tips or info on this? (i use frontpage and dreamweaver)....
I Have Several Random Questions...
Why Is This???? (8) ok these have been puzzling me if mineral water has been trickling down millions of years why does
it have a expiary date on the bottle??? do blind people dream? Do They Dream? Square root of pie?
hotdogs come in packs of 8 and hotdog rolls come in packs of 10 why?....
1,000 Job Questions
(Not Literally!) (1) When did you get your first job (Or when do you plan on it)? What is or is going to be your career?
Do you expect to get paid a lot? How much? Do you think you are already set to be able to spend the
right amount of money on the right stuff? Are you sure? Did you ever think about starting your own
business? If so, how do you plan on doing so? What do you think it is or would be like to be a
high-level boss in your company? For me - I said: I will soon have my first job mowing lawns. I
think my career will be a software engineer, or something along those lines. I expect....
Questions About The Budget Freedom Plan
(3) I have been looking around for a new host and since I used to be hosted for free on T17 I remembered
you guys and have come back here!! (OT but is BuffaloHELP still around?) I have some
questions about this plan. 1. Who/where is the domain registrar that I will transfer to? How do I
make the transfer? Should I transfer now or when my contract with my current registrar is expiring?
2. Do you provide help with site migration? I have a lot of data but it's very disorganised. And
some SQL data has gone missing recently (very weird and annoying, which is why I ....
Tos Queries
Some questions about the Trap17 Terms of Service. (2) Hey! I was just wondering if these were against the TOS: -Allowing an image upload service.
Would it be possible to allow the users on my site to upload images through an upload script?
-Allowing a donations page. The PHP software I am developing will be open-source and free. Is it
possible for me to add a "Donations" page to my site, to help us to make the software development an
easier process? -Google AdSense. Is AdSense banned on Trap17, or can I add my AdSense code to the
site? -IPB hosting. Is it against the TOS to host paid forum softwares? If I purchase one a....
Freedom Advanced
Few Questions... (2) I am interested in ComputingHost's Freedom Advanced plan. 10GB of Diskspace/250GB Bandwidth for
$14.95 a month. Is the domain free even if I choose to pay monthly? Will the prices ever
change; Will they go up or down? Are the servers faster/more reliable than Trap17? (trap17 is a good
service, just wondering if quality increases with payment) Is the activation immediate? *edit.. new
question: If I go over the bandwidth limit, does my site show an error until next month, or do I get
charged with fees. And can I upgrade bandwidth/space if I need to in future? ....
Dog Questions
Ask me anything about dogs! (22) PLEASE I really need to figure out a way to keep up my hosting credits. Since I am brain dead
about computers, school, relationships, sports, games, etc, would really like to see more activity
in this pet catagory. I got my first dog when I was less than 1 year old. And since I have now
passed the 1/2 century mark, I think I may of learned a thing or 2 about dogs. So ask me anything.
Really. I probably know it. Help me out here.....
Stupid Questions With Just As Stupid Answers.
Post 'em here guys, I've started us off (9) Q. How much wood would a woodchuck chuck if a woodchuck could chuck wood? A. A woodchuck would
chuck all the wood that a woodchuck could chuck if a woodchuck could chuck wood. Q. What if there
were no more hypothetical situations? A. *Disappears* These ones kinda suck, so let's hear
yours! (I'll give you some more later too!)....
Joomla Noob Questions
(4) Hey guys, I haven't used Joomla before and was wondering how easy it is to customize. Is there
a way to re-code customizable php features into a Joomla page? I was just wondering how flexible
it is and if it is a good tool for someone who already knows how to make a webpage(php) from scratch
by text editors. Is it just software for people who want to make web pages but can't code?
Please hit me back with your thoughts, Cheers.....
Allie's Advice
hey ppl! just ask me questions and i'll give u answers and adv (5) hey ppl! i am dead serious. just ask questions and i'll give u answers. (or advice) if u
don't want to type ur question for the whole board to see, you can email me privatley. include
ur name, city and state. (if in U.S) and if u give me ur email address in the note, that would be
easier 4 me. thx! /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
alt="biggrin.gif" /> don't pm me cuz i don't ever check that, so just email me at:
actress_gurl_94@yahoo.com u can talk to me about love problems, crushes, trouble, acting careers,
sin....
Dreamweaver Mx 2004: A Q&a Topic By Sean Mallon
Post Questions on How to Use Dreamweaver MX 2004 (5) Seeing there is a lack of good sources for information these days I'll begin with a quick
introduction... Dreamweaver (v1.0 - v8.0, MX and MX 2004) was programed, developed and compiled by
Macromedia (now part of Adobe Systems Inc.). This is a very good program and I highly recomend you
spend some denero and get this program. It's a WYSIWYG editor. The acronym menas What You See
Is What You Get. Some of the features of Dreamweaver MX 2004 include: The ability to view the
contents in WYSIWYG and HTML formats. Multi-Language (ASP, XHTML, ASP.NET ect...) The....
Copyright Questions
(10) I have a wrestling news website, I am wanting to add a banner at the top of various different
wrestlers. would I be infringing on copyright laws by editing copyright images and placing them on
my website. I am kind of hoping it comes under fair use somehow...any thoughts?....
Rpg Maker 2003 Questions
Questions in general (26) While looking for help on the 2003 edition, I could NOT find any sites that covered one-time events
or displaying your character name. I'll put this into context if it helps. The hero starts in
a house, with a pile of jewels on the table. I made an event where he can 'talk' to the
jewels, and gains 5 currency. I WANT this event to happen only once, but he can keep talking to the
jewels again and again. So, is there a way to make the jewels dissapear after use? After he steps
out of his house, he heads south and meets a little girl on the coast. She asks h....
Wap Forum
several questions on WAP forums (9) /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> Right i want to set up a
wap forum for rap battling. I think i need to use php, although i might need wml not sure. so
questions: 1) WML or PHP? 2) Can i get a forum/message board script? 3) Where can i get it? Thanks
in advance Not making helpful thread topics and titles results in warnings, or in extreme cases, a
ban. Don't fall into the crack. ....
Neurotran 2000
few questions about it..... (7) what do you think about this program??? do you ever use it??? where I can find upgrade with support
for other languages??? now I have only croatian..........
Difference Between C, C++ And C#?
And some other questions. (7) What's the difference between C, C++ and C#? What is more closely related to working with
ASP.NET, C++, C#, or VB? Which comiler is best for C++ and/or C#? Are there any benefits in choosing
VB over C++ or C#? Z^ivjo HR....
Looking for questions, php
|
|
Searching Video's for questions, php
|
advertisement
|
|