Everything posted by abeer
-
data not displaying from database
Hi there i am trying to display data to a webpage from mysql. for so i did make a table by phpmyadmin. table field number is two . one field name is "id" and one field name is "dlt" i upload some data using the file data.html a text area which acess the datadb.php <HTML> <BODY> <form method="post" action="datadb.php"> dtl:<input type="Text" name="dtl"><br> <input type="Submit" name="submit" value="Enter info"> </form> </HTML> <?php $host="localhost"; // Host name $username="dhaka"; // Mysql username $password="dhaka"; // Mysql password $db_name="dhaka"; // Database name $tbl_name="page"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // Get values from form $dtl=$_POST['dtl']; // Insert data into mysql $sql="INSERT INTO $tbl_name(dtl)VALUES('$dtl')"; $result=mysql_query($sql); // if successfully insert data into database, displays message "Successful". if($result){ echo "Successful"; echo "<BR>"; echo "<a href='insert.php'>Back to main page</a>"; } else { echo "ERROR"; } // close connection mysql_close(); ?> and to display the data i use the below code <?php mysql_connect("localhost", "dhaka", "dhaka") or die("Connection Failed"); mysql_select_db("dhaka")or die("Connection Failed"); $query = "SELECT * FROM dhaka"; $result = mysql_query($query); But the page showd blank
-
need some basic help
Yes. can you recomeded a cms ( except joomla drupal and wordpress). is there any cms which template is easy to edit and in backend user can edit the predefined pages and update it?
-
need some basic help
oh really usefull for me. is there any tutorial for this? i cansearch it on google? but i dont know the search term for it
-
need some basic help
yes i understand... and i checked your tutorial link. bythis tutorial i learn how to create add elelte and mange database. after learning it i can insertdata show data and manage data. You said that after clicking on the button php automatically retrive data associated with the id ..suppose for the page "dog".. if user click the dog button the page retrive the dog story form the database dog id. when they click to the "snake" button the database will show the snake stroy on the same page. and here is my question how to make this system when user click a button automatic retrive data from that relvant db field? what is the menu system??how to configure the menu that after clicking the menu the page content automatic change?
-
need some basic help
thanks mate. i have few several questions.. then i have to create 25 page like "dog: "snake" monkey" "cat"..... and then display the field id on it? then for 1000 page site i have to create manually 1000 page and then isert manually the field id 1000 times on the 1000 page. but nowadays in templating system they create only one page just content changes when user clic kthe button/pages/menu/navigation items how to do this?
-
need some basic help
suppose i want to make a site which have 25 page. then what i have to do? i created a table named PAGE and set 25 field. suppose my pages are... 'dog' 'cat' "snake'......... every page against everyfield. suppose for the "dog" page filed id=1 ,for the "cat" page field id is=2 for the snake page the field id=25. am i correct? then i have to display each field for each page?
-
need some basic help
Hi there, Please visit the site the site look there are total 30+ pages to make this site i did... 1. i use php include 2. 30 times i copy the page and include a html file on each php page 3.so if i click the a page it come with pagewith the included html and my link type is www.mysite.com/dog.php or www.mysite.com/cat.php www.mysite.com/monkey.php .... for these dog.php,cat.php and moneky.php i creat 3 html file like dog.html, monkey.html and cat.html then i include it to the php pages using include php like.. in dog .php i include the file dog.html and i give a edit panel to the user to edit the dog.html file so the user/website owner can easily edit the .html file and update the page But now i think that its a wrong way and i need help, beacuse i need a database driven site in which i dont have to make individul page and copy huge file or create manually all htm files. Now i ma facing problem to undertanding the database driving site or page. 1. menu in my previous technique user click the button dog and they gose to the link or other pagewwww.mysite.com/dog.php. but in database driven website there is a template system and the template remain static but only the content changes. but idont know how to do this what will the dog button url. will i have to set it manually? like wwww.mysitecom/pageid=1 my concept is not clear please help me
-
wordpress sie bar is not fully visible
hi there please check the below link. My link look the sidebar(left) is not fully visible coz an article below it.. i want to keep the sidebar row(left) only for sidebar. not for article. but how? can anyone help?
-
Web design qualifications
+1
-
Humans txt
i mean what is the purpose of this humans txt. anybody practically use this one? is it only for html5?
-
My website
like it. but please review the typorahy and the footer part
-
Humans txt
Anybody use this on site? http://humanstxt.org/
-
membership script not working
Dear i have little knowledge in php. can you tell me how can i solve it?
-
membership script not working
I downloaded a membership script from http://www.awesomephp.com/?Membership-2 i installed it. but everything is not working fine look here plz http://www.rintlbd.com/membership/admin/index.php usrname: admin password admin2008 in the bottom of this page the profile option is not working http://www.rintlbd.com/membership/register.php after clicking the registrstion page its also not working anybody use this script? or can anybody suggest me where is the problem of this script? or suggest me smiliar free script to download? advance thanks from me
-
Please help me
But problem is its stopped all padding in my layout.. i put anotther div in the slider div with paddin 100px top. but not working
-
Please help me
Dear ZED i salute you : i use this and its working fine html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; }
-
Please help me
Sorry for my ignorence.. where from i get this reset.css code?
-
Please help me
the menu bar problem is aolved but the layout is broken its o in IE but not on if ff.in ff the layout divided in 3 part
-
Please help me
Yes the problem solved, but another problem rising look in in ff My link But its ok in ie
-
Please help me
pROBLEM FIXED,IF THE BELOW DIV EXPNAD BY CONTENT THEN PROBLEM NOT SHOWING.. but i am facing aother problem,my layout is breaking in ff
- Please help me
-
Please help me
look this site isalso using this menu but they are not facing any problem http://www.robocup2004.pt/
-
Please help me
Ya its working in firefox but not working in ie. in ie submneu box goes upward
-
Please help me
Hi there.. i need help,please help me Please go to the below link 1st My link Look the dropdow buttons are going to the up not below the main button bar the same button i have used to this link My link Its working here perfectly but not working there. can any one please help me on this issue?plz
-
hoover not showing
I have another question if you dont mind . this menu transparent in ie7/8 but why not in mozila/ff?