Spraban9 Posted March 27, 2013 Share Posted March 27, 2013 hi friends I am trying to design a user profile page layout . have tried several times to give it a look like how I want it to be but I failed. in this website user can can upload many ads . every ads having suppurate table. how to create user profile and edit function , plz help me, i'm struggle to complete my finial project friends. Link to comment https://forums.phpfreaks.com/topic/276206-how-to-design-a-user-profile-page-layout-ans-edit-posed-ads-with-html/ Share on other sites More sharing options...
haku Posted March 27, 2013 Share Posted March 27, 2013 We're not going to write it for you. Show us some code, show us where you are having troubles with it, and ask a specific question. Link to comment https://forums.phpfreaks.com/topic/276206-how-to-design-a-user-profile-page-layout-ans-edit-posed-ads-with-html/#findComment-1421326 Share on other sites More sharing options...
Spraban9 Posted March 28, 2013 Author Share Posted March 28, 2013 <?php include("include/connection.php"); $profile= mysql_query("SELECT count( user )FROM (SELECT user FROM computerrepair UNION ALL SELECT user FROM computersale UNION ALL SELECT user FROM hospital UNION ALL SELECT user FROM hotel UNION ALL SELECT user FROM house UNION ALL SELECT user FROM land UNION ALL SELECT user FROM mobile UNION ALL SELECT user FROM theater UNION ALL SELECT user FROM upload UNION ALL SELECT user FROM vechicle) AS a WHERE user = '$login_session'"); $menus=mysql_fetch_array($profile); $noof=$menus['count( user )']; ?> this coding is used to count no of post of user. but it is working on localhost . but i host in online i get this error "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a8326388/public_html/profile.php on line 59" line 59 have this coding"$menus=mysql_fetch_array($profile);" Link to comment https://forums.phpfreaks.com/topic/276206-how-to-design-a-user-profile-page-layout-ans-edit-posed-ads-with-html/#findComment-1421549 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.