Page 1 of 1

link placement..

Posted: Thu Mar 17, 2005 4:24 am
by pleigh
since last week, ive been trying to figure out what's wrong with my code....i made a function so it can verify if the he owns the thread and if it his, he can edit it.....it is well functioning, thanks to the guys here....but my problem is that....when i place the function inside the formatted table, the edit link do not place where i want it to be.....say....i want to place it inside the

Code: Select all

echo "
			<tr valign=top class=tablehead align=center>
			<td width=15% class=tablehead><table><tr><td><font color=#ffffff><b/>Author</font></td></tr></table></td>
			<td width=85% class=tablehead><table><tr><td><font color=#ffffff><b/>Message</font></td></tr></table></td>
			</tr>
		
			<tr valign=top>
			<td width=15% class=tableborder align=center><table><tr><td>$row[4]</td></tr></table></td>
			<td width=85% class=tableborder><table width=100%><tr><td>
			<b>Accomplishments:</b><br>".nl2br($row[1])."<p>
			<b>Issues:</b><br>".nl2br($row[2])."<p>
			<b>Recommendations:</b><br>".nl2br($row[3])."<p>".[b]editreport()[/b]."			
			</td></tr></table>
			</td>
			</tr>
* the bold is the function i was talking about....
when i do this, the edit link was placed right before the table called....

i don't know where the problem is...can you guys spot it..

BTW, the format of the function is

Code: Select all

echo '&lt;a href=&quote;reportedit.php?eid='.$_GET&#1111;'pid'].'&quote; class=under&gt;EDIT&lt;/a&gt;';

Posted: Thu Mar 17, 2005 5:16 am
by n00b Saibot
why are you trying to format with <br> & <p> when you are outputting it in a table. use <td> and <tr>'s. that will set it right.

Posted: Thu Mar 17, 2005 5:29 am
by pleigh
i just want the link to be a plain link....without table or whatever....immediately after the last <p>

Posted: Thu Mar 17, 2005 5:35 am
by n00b Saibot
i m not getting you prob clearly. you said i dont get link in right place and now you are saying i want it to be a plain link. doesnt the link come out right. :?: or are you missing up something

Posted: Thu Mar 17, 2005 5:50 am
by pleigh
ok....i too am confused... :) ...the my function generates a link....i want to call that function(or link) inside a certain table....what the problem is....if for example, i want to place EDIT link inside message table...i'll demonstratoe the table below

-------------------------------------------------
topic table
-------------------------------------------------
some | message table
table |
-------------------------------------------------

but when i call the function inside the message table, when i view the output, the EDIT link is beside the topic table....which i don't understand why....

Posted: Thu Mar 17, 2005 6:05 am
by n00b Saibot
pleigh wrote:but when i call the function inside the message table, when i view the output, the EDIT link is beside the topic table....which i don't understand why....
Read my post above. I said that outputing it using <td> will solve this. Using <p> inside tables can mess up the output sometimes.