Search found 387 matches

Search found 387 matches Page 5 of 39
by Mark
Mon Jun 22, 2015 5:03 pm
Forum: Help & Support
Topic: line brake
Replies: 3
Views: 2855

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: 3946

where does it go in the code.

<?

$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: 3946

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: 3946

hello,

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: 3946

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: 1882

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: 2215

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: 2156

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: 2141

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: 2141

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...
Search found 387 matches Page 5 of 39
Go to advanced search