Jump to content

Question on PHP Array.


ezan

Recommended Posts

Thanks for the php videos...just started learning php; could someone please help with this: I'm using php array on my site like this:

 

<?php $navlinks=array("C511","C711","C811","Gzone","Zone"); ?> (These are navigational links on the sidebar).

 

When it prints, it looks like this:

 

C511

C711

C811

Gzone

Zone

 

How do I get it to print with a 'tabbed space' like this:

 

C511

C711

 

C811

Gzone

Zone

 

or this:

 

C511

C711

C811

 

Gzone

Zone

 

Thank you so much for your help, :)

 

Andy

Link to comment
Share on other sites

What is your code for the printing of the array?

 

Hi, I'm not using a print code; I tried inserting "

" and nl2br("\n") at the spot(s) I wanted the line breaks(I used them seperately), both worked but the codes created an invisible link. When I hover my cursor over the line break, it displays a link that ends with

.html and .html respectively.

 

ezan

Edited by ezan
Link to comment
Share on other sites

What is your code for the printing of the array?

 

Hi' date=' I'm not using a print code; I tried inserting "

" and nl2br("\n") at the spot(s) I wanted the line breaks(I used them seperately), both worked but the codes created an invisible link. When I hover my cursor over the line break, it displays a link that ends with

.html and .html respectively.

 

ezan[/quote']

 

I got this resolved; the script I'm using had to be modified. I don't think one can create a line break inside a php array coded to print out hyperlinks on a page.

 

ezan

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...