Codemarshal08's Posts
Nairaland Forum › Codemarshal08's Profile › Codemarshal08's Posts
Oladg2:wat code have u tried ? are u a programmer . Please give details |
cyan2008:ehmm, i think You need to work on your table design. Research on KEYS and table Relationship & sql Joins |
ok bro, More Grease to ur elbow !!! takes seat ! |
braindollar:Average = sum of input divided by the count . hint: from phr3 answer, use S/10 For More: Google is ur friend |
*Crack his throat ** You are welcome to the world of programming ! ![]() ----- my advice for u * Don't involve yourself in language wars, it's a waste of time as every language has its strength and weakness * Read Less and Practice More .... always get ur hands dirty with some codes * Google is your Best Friend ! |
ivcraig:i am glad u got the idea . my mail : com(dot)gmail(at)codemarshal08 (READ FROM right to Left) |
ivcraig:Lets Assume i want to edit user with ID 603, i will create two pages Edit.php and update.php (Note: You can as well use a Page for both) in Edit.php, * store this id in a variable , like: $userID = 603; * then use this id in the WHERE clause of ur SELECT statement like: SELECT something from TABLE WHERE id = 603 * retrieve the result result using: mysql_fetch_array or stuff like that o * save ur values u got from DB QUERY in variables like $username = $row["username"]; $dept = $row["dept"]; * echo out ur form by attaching those variable u saved to the html tags like: echo"<form action='edit' method='POST'>"; echo"<input type ='text' name='username' value='$username' />"; echo"<input type ='text' name='dept' value='$dept' />"; * Attach the id to a hidden text field (so u can retrieve it in the next page) something like: <input type=''hidden' name='userID' value=$userID> * remember to add a submit button to ur form o In Update.php * retrieve form value i guess u can do this (hint: POST) * use these values to update ur DB hint: using UPDATE statement |
ivcraig:*use a SELECT statement to retrieve this info from ur db *store this info in variables *attach these variables to your form values while displaying them *Ehm, are u getting errors from ur code or u are looking for the Edit Record Logic ? |
what code have u tried ? |
please do we have any skilled technician here ? i need to fix some of my office printers and photocopiers . if there is anyone who is or know someone who is, do pm me or post in this thread. Location : Lagos |
#include <wishes bank> int main(){ cout << "I WISH U A HAPPY BIRTHDAY BRO \n " ; return 0; } |
KazukiIto:seen |
KazukiIto:cool. hope u still on da c++ matter ! any contact info ? |
hey kAz, its been a while o... nice 1 though ! |
ehm, am not a guru yet !, but i will contribute (Quickly clears himself b4 he gets a knock for replying) Op, Start by learning the basis of Programming. Do this in bits. Practice on every new concepts you learn. *Don't try to learn everything at once. You can not become an expert overnight. Becoming comfortable with programming comes with practice. *Dont try and memorize every syntax , u will know them while u keep using them. *When You have a Program to solve, what u do is to try to understand the problem at hand. then break this problem into bits . and start solving it bit by bit. |
tobyemmanuel:HEy , What he said is true. Moreover the example you sited is very different from what meakhel illustrated in his first post. NOTE: Am not an expert. I believe we are all here to learn ! |
Op Check mnairaland answer. Use a Vector of ints. You can Push_back till mummy calls ! |
BlueMagnificent:Happy Xmas bro...... |
Well, since am not there yet let me join da supporters group lol. May u never Stop Progressing ooo !!! i love ur Courage @Blue Magnificent hmm, i will love to work with u some day ![]() |
hey, Try to Update your MinGw Compiler (the one that came with ur Dev cpp might be old ) and Set the PATH in your IDE Compiler Options to the Corresponding directories ! Download the Latest Version Here http://sourceforge.net/projects/mingw/files/latest/download?source=files i dont think it's Hard to install. Hope this Helps NOTE: In Programming World, You Dont Give up |
Ok, What version of Code Blocks did u download ? some versions do not contain the MinGW compiler |
baysan:Can You snapshot the error messages and them post here ? You can also check if your compiler settings is like the one below
|
baysan:its a compiler !, did u install code blocks successfully ? does the default hello world program runs ? |
Try out Codeblocks http://www.codeblocks.org/ |
CRAZYMADMAN:nice one, am happy for You ! |
i just dey o, sharing time between work and coding ! |
GodMode: |
Eze, how is studies na ? |
samlexxy:it has been solved on this thread before. Just Check previous Pages for the codes. |
CRAZYMADMAN:Let me give u a hint . * Create two tables, one to store names and one for phone numbers *The names' table should have a primary key column *The Telephone Table should have a column that would reference the primary key column in the names' table(i.e Primary key of the names table used as a foriegn key here ) *For data types, You can use Integer for numeric fields e.g Primary Key, Telephone and VACHAR or TEXT for strings Field e.g names *For the relationship, this should be ONE to MANY (One Person can have as many Phone numbers as Possible) *Hope my tips would help. NOTE: i am not an expert , i Believe we are all here to learn .
|
ibnSalaudeen:You are Welcome. Do send your flash or call me whenever you need them ! NOTE: it's Free #noHiddenCharges lol |
ibnSalaudeen:No i want us to connect Spiritually lol ! just kidding |



lol ! just kidding