Jump to content

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


Spraban9

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.