Jump to content

squiblo

Members
  • Posts

    483
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by squiblo

  1. like this? //get data $state = ucwords($runrows['state']); $url = $runrows['url']; $username = ucwords($runrows['username']); $imagelocation = ['imagelocation']; echo " <b>$username</b><br> $state<br> <a href='$url'>View Profile</a><br><br> header("Content-type:image/jpeg"); <img src =$imagelocation width='100' height='100' border='0'> "; echo "<hr width='300' align='left'>"; i still get an error
  2. sorry i do not know the error, i just get a blank page how do i find out?
  3. i tried this but resulted in another error... //get data $state = ucwords($runrows['state']); $url = $runrows['url']; $username = ucwords($runrows['username']); $imagelocation = ['imagelocation']; echo " <b>$username</b><br> $state<br> <a href='$url'>View Profile</a><br><br> <img src =$imagelocation width='100' height='100' border='0'> "; echo "<hr width='300' align='left'>";
  4. in imagelocation, there are image paths, like "./profilepictures/nameofpicture.format"
  5. ok i have just got rid of the font tags, how can i echo $imagelocation properly?
  6. i do not get an error in the code because i have taken the errors out, i am trying to echo $imagelocation here... //get data $state = ucwords($runrows['state']); $url = $runrows['url']; $username = ucwords($runrows['username']); $imagelocation = $runrows['imagelocation']; echo " <b>$username</b><br> $state<br> <a href='$url'>View Profile</a><br><br> // <------------echo $imagelocation here ";
  7. i cannot complete echoing $imagelocation without getting an error i have tried everything, i would also like the image to be 100px be 100px <font face="Arial"> <?php //get data $button = $_GET['submit']; $search = $_GET['search']; if (!$button) header("location:unititled.php"); else { if (strlen($search)<3) header("location:unititled.php"); else { echo "You searched for <b>$search</b><hr size='1'>"; //connect to our database mysql_connect("localhost","",""); mysql_select_db(""); //explode our search term $search_exploded = explode(" ",$search); foreach($search_exploded as $search_each) { //construct query $x++; if ($x==1) $construct .= "username LIKE '%$search_each%'"; else $construct .= " OR username LIKE '%$search_each%'"; } //echo out construct $construct = "SELECT * FROM members WHERE $construct"; $run = mysql_query($construct); $foundnum = mysql_num_rows($run); if ($foundnum==0) echo "No results found."; else { echo "$foundnum result(s) found!<p>"; while ($runrows = mysql_fetch_assoc($run)) { //get data $state = ucwords($runrows['state']); $url = $runrows['url']; $username = ucwords($runrows['username']); $imagelocation = $runrows['imagelocation']; echo " <b>$username</b><br> $state<br> <a href='$url'>View Profile</a><br><br> "; echo "<hr width='300' align='left'>"; } } } } ?> </font>
  8. how can i edit this code so that i can have my own image as the submit button? <form action='search.php' method='GET' <font face='sans-serif' size='5'> <center> <input type='text' size='50' name='search'> <input type='submit' name='submit' value='Search'> </center> </font> </form>
  9. //get data $state = $runrows['state']; $url = $runrows['url']; $username = $runrows['username']; echo " <b>$username</b><br> $state<br> <a href='$url'>View Profile</a><br> "; when i try it just echoes the whole thing out instead of just the username using "ucwords(strtolower"
  10. how can i start this with a capital letter when echoed? echo "$username";
  11. whats is the simplest way to do this?
  12. how can i edit this code... <div id="wb_Text7" style="position:absolute;left:610px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="http://google.com" style="text-decoration:none"><font color="#FFFFFF">Search</a></font></font></div> so that when my mouse moves over it, it show this... http://www.squiblo.com/123abc.htm and when my mouse moves off it dissapears
  13. i already have a picture that i wont shown on mouseover link
  14. is this possible with php or is more than one language needed?
  15. i think designing my own would be a better decision, ok now... how can i edit this <div id="wb_Text7" style="position:absolute;left:610px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="http://google.com" style="text-decoration:none"><font color="#FFFFFF">Search</a></font></font></div> so on hover it displays a picture which is hiden <div id="menubar" style="position:absolute;left:54px;top:168px;width:200px;height:30px;z-index:13" align="center"> <img src="/Images/header_img.jpg" id="menubar" align="top" alt="" title="" border="0" width="200" height="30">
  16. or another why that maybe easyier for me, is to hide an item, and on hover over a button, show the item, in this case it would be a search form and a picture underneath to resemble a drop down menu
  17. two questions really, how can i design my own drop down menu and also how can i put a search engine into my drop down menu
  18. sorry, what do you mean by a "3rd party app"
  19. ok sorry let me explain more, the website i am trying to create is a social networking site for my local area. i have a profile page: <?php session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Squiblo - About Us!</title> <style type="text/css"> div#container { width: 900px; position: relative; margin-top: 0px; margin-left: auto; margin-right: auto; text-align: left; } body { text-align: center; margin: 0; } </style> </head> <body bgcolor="#E6E6E6" text="#FFFFFF"> <div id="container"> <div id="wb_Shape1" style="position:absolute;left:55px;top:41px;width:792px;height:125px;z-index:2" align="center"> <img src="/Images/header_img.jpg" id="Shape1" align="top" alt="" title="" border="0" width="792" height="125"></div> <div id="wb_Text1" style="position:absolute;left:60px;top:85px;width:325px;height:72px;z-index:3" align="left"> <font style="font-size:70px" color="#FFFFFF" face="impact"><a href="/index.php" style="text-decoration:none"> <font color="#FFFFFF">SQUIBLO</a></font></font></div> <div id="apps" style="position:absolute;left:754px;top:169px;z-index:14" align="center"> <?php include 'accmenu.php'; ?> </div> <div id="wb_Shape2" style="position:absolute;left:54px;top:200px;width:793px;height:1200px;z-index:10; align="center"> <img src="/Images/body_img.jpg" id="Shape2" align="top" alt="" title="" border="0" width="793" height="1200"></div> <div id="menubar" style="position:absolute;left:54px;top:168px;width:793px;height:30px;z-index:13" align="center"> <img src="/Images/header_img.jpg" id="menubar" align="top" alt="" title="" border="0" width="793" height="30"></div> <?php if($_SESSION['myusername']){ ?> <div id="wb_Text1" style="position:absolute;left:684px;top:55px;width:151px;height:14px;z-index:7" align="right"> <font style="font-size:13px" color="#FFFFFF" face="Arial">You are logged in as:</font><br> <font style="font-size:15px" color="#FF0000" face="Arial"> <?php echo ucwords(strtolower($_SESSION['myusername'])); ?> </font></div> <div id="logout" style="position:absolute;left:775px;top:130px;width:64px;height:23px;z-index:12" align="center"><a href="/logout.php"> <?php echo '<img src="/Images/logout.png" id="logout" align="top" alt="logout" title="" border="0" width="64" height="23">'; ?> </a></div> <div id="wb_Text3" style="position:absolute;left:60px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="/index.php" style="text-decoration:none"><font color="#FFFFFF">Profile</a></font></font></div> <div id="wb_Text4" style="position:absolute;left:123px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="http://google.com" style="text-decoration:none"><font color="#FFFFFF">Friends</a></font></font></div> <div id="wb_Text5" style="position:absolute;left:195px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="http://google.com" style="text-decoration:none"><font color="#FFFFFF">Photos</a></font></font></div> <div id="wb_Text6" style="position:absolute;left:262px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="http://google.com" style="text-decoration:none"><font color="#FFFFFF">Mail</a></font></font></div> <div id="wb_Text7" style="position:absolute;left:610px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="http://google.com" style="text-decoration:none"><font color="#FFFFFF">Search</a></font></font></div> <div id="wb_Text8" style="position:absolute;left:680px;top:173px;width:100px;height:30px;z-index:14" align="left"> <font style="font-size:17px" color="#FFFFFF" face="Arial"><a href="http://google.com" style="text-decoration:none"><font color="#FFFFFF">Settings</a></font></font></div> <?php } else { ?> <form name="form1" method="post" action="checklogin.php"> <input type="text" id="myusername" style="position:absolute;left:651px;top:59px;width:174px;font-family:Arial;font-size:13px;z-index:4" size="29" name="myusername" value="" title="username"> <input type="password" id="mypassword" style="position:absolute;left:651px;top:86px;width:174px;font-family:Arial;font-size:13px;z-index:5" size="29" name="mypassword" value="" tabindex="password" title="password"> <input type="checkbox" id="Checkbox1" name="Checkbox1" value="on" style="position:absolute;left:648px;top:113px;font-family:Arial;font-size:13px;z-index:6"> <input type="submit" id="Button1" name="Login" value="Login" style="position:absolute;left:778px;top:117px;width:50px;height:43px;font-family:Arial;font-size:13px;z-index:8" title="Login"> </form> <div id="wb_Text7" style="position:absolute;left:584px;top:63px;width:47px;height:16px;z-index:22" align="left"> <font style="font-size:13px" color="#FFFFFF" face="Arial">Username:</font></div> <div id="wb_Text8" style="position:absolute;left:586px;top:88px;width:65px;height:16px;z-index:23" align="left"> <font style="font-size:13px" color="#FFFFFF" face="Arial">Password:</font></div> <div id="wb_Text2" style="position:absolute;left:669px;top:113px;width:111px;height:14px;z-index:7" align="left"> <font style="font-size:11px" color="#FFFFFF" face="Arial">Remember Me</font></div> <div id="wb_Text3" style="position:absolute;left:651px;top:131px;width:122px;height:14px;z-index:9" align="left"> <font style="font-size:11px" color="#FFFFFF" face="Arial">Forgot your password?</font></div> <?php } ?> <div id="wb_Shape5" style="position:absolute;left:84px;top:240px;width:225px;height:275px;z-index:11" align="center"><a href="/upload.php"> <?php session_start(); include("checklogin.php"); $username = $_SESSION['myusername']; $query = mysql_query("SELECT * FROM members WHERE username='$username'"); if (mysql_num_rows($query)==0){ die("User not found!"); }else{ $row = mysql_fetch_assoc($query); $location = $row['imagelocation']; if($location == ""){ echo "<img src ='/profileimages/box.png' width='225' height='275' border='0'></a>"; }else{ echo "<img src ='$location' width='225' height='275' border='0'>"; } } ?> </a></div> </div> </body> </html> any more questions please ask
  20. OK, I have not posted this in the freelancing section because I am not looking to pay anyone. So lets get started, what I need help with is, viewing other peoples profiles and people are only able to change their own profile, such as profile picture etc, I am not sure but I would only expect this to take a couple of hours. If you are interested please message me, and I am greatfull to all those who help, thank you.
  21. that worked perfect thankyou, i have linked the images, but it puts a purple border on, how can i stop this? <div id="wb_Shape5" style="position:absolute;left:84px;top:240px;width:225px;height:275px;z-index:11" align="center"><a href="/upload.php"> <?php session_start(); include("checklogin.php"); $username = $_SESSION['myusername']; $query = mysql_query("SELECT * FROM members WHERE username='$username'"); if (mysql_num_rows($query)==0){ die("User not found!"); }else{ $row = mysql_fetch_assoc($query); $location = $row['imagelocation']; if($location == ""){ echo "<img src ='/profileimages/box.png' width='225' height='275'></a>"; }else{ echo "<img src ='$location' width='225' height='275'>"; } } ?> </a></div>
  22. ok my aim here is to view the profile image if they have uploaded one, but if they have not uploaded one i want to view another image, i have started already but got stuck trying to view another image if they havent uploaded one... <?php session_start(); include("checklogin.php"); $username = $_SESSION['myusername']; $query = mysql_query("SELECT * FROM members WHERE username='$username'"); if (mysql_num_rows($query)==0) die("User not found!"); else { $row = mysql_fetch_assoc($query); $location = $row['imagelocation']; echo "<img src ='$location' width='225' height='275'>"; } ?> the path to the image if they havent uploaded one is... /profileimages/box.png
  23. i changed i to this but it still doesnt works: <div id="wb_Shape5" style="position:absolute;left:84px;top:240px;width:225px;height:275px;z-index:10" align="center"><a href="/upload.php"> <?php echo "<img src='/profileimages/clickheretoupload.jpeg' id='clickupload' align='top' alt='' title='' border='0' width='225' height='275'>"; ?> </a></div>
×
×
  • 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.