Search found 387 matches
- by Mark
- Mon Jun 22, 2015 5:03 pm
- Forum: Help & Support
- Topic: line brake
- Replies: 3
- Views: 2930
Hello I have a text box on my form and when I press return it shows up how do I display the return on my display page. Code: while($output = mysql_fetch_assoc($query)) { echo '<font color="red"><h3>' .$output['subject'].'</h3></font>'; echo 'Published By: ' .$output['postedby']. '<br/><br ...
- by Mark
- Sat Jun 13, 2015 10:30 pm
- Forum: Help & Support
- Topic: displaying image in php mysql
- Replies: 7
- Views: 4023
where does it go in the code.
<?
$path = "news_pics/$post_image";
echo "<img src=\"".((file_exists($path)) ? $path : "") . "\" />";
?>
<?
$path = "news_pics/$post_image";
echo "<img src=\"".((file_exists($path)) ? $path : "") . "\" />";
?>
- by Mark
- Sat Jun 13, 2015 4:02 pm
- Forum: Help & Support
- Topic: displaying image in php mysql
- Replies: 7
- Views: 4023
how would i set the size of the image?.
- by Mark
- Sat Jun 13, 2015 10:40 am
- Forum: Help & Support
- Topic: displaying image in php mysql
- Replies: 7
- Views: 4023
hello,
i tried this but it only shows the name of the image that should be there and not the image.
i tried this but it only shows the name of the image that should be there and not the image.
Code: Select all
<?
$path = "../news_pics/$post_image";
echo "<img src=\"".(file_exists($path)) ? $path : "" . "\" />";
?>
- by Mark
- Fri Jun 12, 2015 10:01 pm
- Forum: Help & Support
- Topic: displaying image in php mysql
- Replies: 7
- Views: 4023
hello, can anyone help me please i want to check to make sure that the image exists if it dosent dont display an image if it does exist then display the image this is the line of code. <img src="../news_pics/<?php echo $post_image; ?>" width="100" height="100"> Full Pag...
- by Mark
- Sat May 30, 2015 11:52 pm
- Forum: Help & Support
- Topic: footer help please
- Replies: 0
- Views: 1949
hello, this is my code for some reason the footer has ended up at the top of the Add Reply Button and below the nav bar can anyone help me fix this please? I have attached a screenshot for you to look at. <?php include('styles/top.php'); ?> <div id="full"> <?php // Check to see if the pers...
- by Mark
- Wed May 20, 2015 4:22 pm
- Forum: Help & Support
- Topic: table design
- Replies: 2
- Views: 2280
can anyone help me with the design of a table for my categories for my images? I tried this code but still dosent seem to want to work. all it does is put them under each other? <table> <tr> <td> <a href="image.php"><?php echo $row['name'] ?></a><br /></td> </tr> </table>
- by Mark
- Fri May 15, 2015 8:24 am
- Forum: Help & Support
- Topic: php error
- Replies: 1
- Views: 2223
Hello, Can anyone help me please i just got this error 1 Warning: Cannot modify header information - headers already sent by (output started at /customers/2/e/7/yansumkune.com/httpd.www/cart.php:20) in /customers/2/e/7/yansumkune.com/httpd.www/cart.php on line 22 This is the code for this cart.php ...
- by Mark
- Thu May 14, 2015 1:21 pm
- Forum: Help & Support
- Topic: table help
- Replies: 2
- Views: 2202
hi, I'm trying to use this code on my site. The html keeps given me an error for some reason how can this be sorted? <?php include('styles/top.php'); ?> <div id="full"> <?php if ($username){ <center><h1>In memory of John Guild Rodger</h1></center> <center><img src="./images/john.jpg&q...
- by Mark
- Mon May 11, 2015 9:30 pm
- Forum: Help & Support
- Topic: table help
- Replies: 2
- Views: 2202
Hello, How do i put my echo "<a href='#'>$user</a>"; in to a table so it shows my usernames along the way 5 on each line can anyone help please?. <?php include('styles/top.php'); ?> <div id="left"> <p> <?php require("scripts/connect.php"); $query = mysql_query("SEL...
Copyright Information
Copyright © Codenstuff.com 2020 - 2023