Jump to content

How to design a user profile page layout ans edit posed ads with HTML


Recommended Posts

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.

Edited by Spraban9
<?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);"

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.