Jump to content

Recommended Posts

Thanks.

 

Another thing, in the PHP form -- how can I get the PHP to automatically convert carriage returns to HTML line breaks?

 

Like how would I get this:

 

hello

 

world

 

To look like this:

 

hello

 

world

 

Instead of like this:

 

hello world

 

Any ideas or something?

Link to comment
https://forums.phpfreaks.com/topic/55876-solved-php-time/#findComment-276049
Share on other sites

Thanks, everyone!

 

Now, is there a way to get some html after each result when something is listed from the database?

 

Like this:

 

$result = mysql_query("SELECT * FROM something");

while($row = mysql_fetch_array($result))
  {
  echo $row['title'];
  }

 

Shows:

 

Title1Title2Title3Title4Title5

 

I want there to be a <img src="something.png"> after something is listed like this:

 

Title1<img src="something.png">Title2<img src="something.png">Title3<img src="something.png">Title4<img src="something.png">Title5<img src="something.png">

 

How can I do this?

Link to comment
https://forums.phpfreaks.com/topic/55876-solved-php-time/#findComment-276074
Share on other sites

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.