/    Sign up×
Community /Pin to ProfileBookmark

auto insert row

hi,when i add data i want that it auto generates a new row when i insert data in row.can any one help me this one?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogSep 18.2014 — I think we'll need more information, as it is not clear to me what you want to do: have some/all of the columns in an insert be set to default/dynamic values, or to you want the insertion of a row into one table trigger the insertion of a row into a different table? Or do you mean something else altogether?
Copy linkTweet thisAlerts:
@prretauthorSep 18.2014 — i made a only one table.and it contains 5 columns, now what i want is when i add data in that,it should add a new row containing all columns by itself,means it should auto generte that new row by it self in that same table
Copy linkTweet thisAlerts:
@NogDogSep 18.2014 — So that sounds like a basic SQL insert statement. The specifics of how to do that in PHP will depend on which database extension you are using. Assuming it's a MySQL database, that would most likely be either the MySQLi extension or the PDO extension (I prefer PDO, using prepared statments).
×

Success!

Help @prret spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...