wwfc_barmy_army
-
Posts
320 -
Joined
-
Last visited
Never
Posts posted by wwfc_barmy_army
-
-
deleted by user
-
deleted by user
-
I can't figure out where to close it because i thought it closed here (23 lines from the bottom):
[code]</td>
</tr>
</table>
<td width="88%" align="right" valign="top" class="bodytext">[/code]
So where do i close it? I attached my stylesheet in case someone wants to have a look.
Thanks for any further advice.
-
deleted by user
-
Ahhh. Spot on. Cheers mate :)
-
It's close but i need to include the link in there too. How do i do that with the code?
Thanks a lot! :)
-
Hi Guys.
Ok, i'm going to work on the ad code every 4 Alphabet letters. I currently have this code:
[code=php:0]$result = @mysql_query("SELECT * FROM t_50 ORDER BY name ASC");
while ($row = mysql_fetch_assoc($result)) {
if($letter != substr($row['name'],0,1)) {
print "<p/><b>";
echo substr($row['name'],0,1);
print "</b>";
$letter = substr($row['name'],0,1);
$adcount= $adcount+1;
}
echo "<br/><a href=index.php?movie=".$row['id'].">".$row['name']."</a>";
if($adcount == 4) {
echo "Display ad";
$adcount = 0;
}
}[/code]
This shows the ad code every 4 alphabet letters but i can't make it so it does it at the end of all the records instead of after the first one. How can i arrange it?
Thanks. -
Hello.
Thanks for your reply! :) I can see what you have done with the ad problem but i can't quite see where the anchor links comes from, i see you put link for each letter linking to '#' but i want it so that the letters are not a link, and the links A B C D ..etc... are at the top and they are the links.
Thanks for any advice. -
Hi Guys.
I have this code:
[code=php:0]$result = @mysql_query("SELECT * FROM t_50 ORDER BY name ASC");
while ($row = mysql_fetch_assoc($result)) {
if($letter != substr($row['name'],0,1)) {
print "<p/><b>";
echo substr($row['name'],0,1);
print "</b>";
$letter = substr($row['name'],0,1);
}
echo "<br/><a href=index.php?movie=".$row['id'].">".$row['name']."</a>";
}[/code]
This returns the results and sorts them into alphabeticaly order under each alphabet header prefectly but i have a couple of questions:
1. How would i go about adding 'anchor link' to each letter? Can anyone give me any advice?
2. Would it be possible to include a piece of code (advertisement) every like 4 headers? If so how would i go about this?
I'm still reasonably new to php so i have many questions :P
Thanks! -
Hello.
I'm not sure which forum this should go in so i'll put it here.
I am looking to try and get a top network bar such as the one on the phpfreaks front page going along the top: http://www.phpfreaks.com/
Are there any tutorials around for these and do they have a special name?
Thanks. -
Ok. Got it eventually. I used your code but had to make quite a few changes for it to pass the id value properly etc. Thanks.
-
Hello. I have this code:
[code=php:0]<?php
include 'dbconnect.php';
$broken = "Y";
$id = $_GET['id'];
$update = mysql_query("UPDATE t_50 SET broken = '$broken' WHERE id = '$id'") or die(mysql_error());
?>
Thanks, we will have a look at it :) [/code]
This code just basically adds something to the 'reported' list. But it happens as soon as the page is loaded. I want something on it so that it can say "Are you sure you want to report?", Then there is a yes and no button. The yes button submits it and the no button cancels it and says "Nothing has been reported". I''m not sure how to do this though. Can anyone offer any advice/code?
Thanks.
-
Hello.
I have a table in a database (called 'link') and i need to replace the two following things in each of the links in the table:
'%3D' with '='
'%3F' with '?'
I know this is a Mysql replace query but i'm not sure how i would use to with do what i want to do.
Any suggestions or code is welcomed
Thanks :) -
Good Point, You could save it in a seperate file, and recall it using include instead of the html code.
-
Could you not just put the div code into the If statement something like:
[code=php:0]if ($log->IsLoggedIn() == true) {
}
else {
<div align="left">
<p align="center"><span class="style45"><br>
<span class="style46">Username:<br>
</span></span>
<input name="txt_Username" type="text" class="style15" id="txt_Username">
<br>
<span class="style47">Password:</span><br>
<input name="txt_Password" type="password" class="style15" id="txt_Password">
<br>
<br>
<input name="frmLogin_Submit" type="submit" class="style11" id="frmLogin_Submit" value="Login">
<br>
<span class="style47"><a href="forgot_password.php" style="color:#ffffff">Forgot your password? </a></span></p>
</div>
}
[/code] -
Thanks php_joe :)
-
Hello.
I am writing a site, but due to the content links i feel that people might just go to view source and copy it. I've seen it before but i can't remember where, but i want to 'mask' the URL, so instead of the actual link you have something like http://www.mysite.com/link.php?=5, or even just http://www.mysite.com/link.php?=http://www.google.com.
I just want to make it a bit more difficult to people to copy the content.
Anyone got any tutorials or links anywhere?
Cheers. -
Hello.
I am using this bit of CSS to position a table in a certain place on my page:
[code] position: absolute;
right: 400px;
top: 300px;[/code]
Although this is spot on using my resolution when i check what it looks like with a smaller resolution it moves and goes over text etc.
How can i get it to stay still. Can i use different CSS for it?
Thanks. -
Thanks guys ;D Had to change a few more things to get it to look right but it's spot on :)
-
Did you try restarting the apache server?
-
[quote author=Round link=topic=114121.msg464182#msg464182 date=1162899823]
The following puts link box around image (ugly) but do display alongside each other:-
[code]while( $row = mysql_fetch_array($rs) )
{
$list .="<a href=\"http://ourweb/course/category.php?id=".$row["course"]."\"><img
src=\"../images/list_course.gif\">".$row["fullname"]."</a>";
}[/code]
Any Ideas?
Many Thanks
[/quote]
To get around this one you could check out this:
http://www.boutell.com/newfaq/creating/border.html -
I'm getting this error:
Parse error: parse error, unexpected '{' in C:\public_html\dmm\index.php on line 69
Line 69 being:
[code] if($letter != substr($row['name'],0,1) {[/code] -
[quote author=ProjectFear link=topic=114075.msg464155#msg464155 date=1162892620]
your code there isnt even changing $letter. shouldn't you change it to the new one so it can check for the next letter?
[/quote]
Any ideas how i would do this too?
Thanks. -
Hello.
I am still reasonably new to PHP and I currently have this code to return artists name from a database:
[code=php:0] <?php
if ($artist == ""){
print "Please select an artist:<br/>";
$result = @mysql_query("SELECT * FROM artist ORDER BY name ASC");
while ($row = mysql_fetch_assoc($result)) {
echo "<a href=index.php?artist=".$row[artist_id].">".$row[name]."</a><br/>";
}
}
?>[/code]
I am trying to figure out if there is a way so do this; the results are returned in alphabetical order is it possible to get them sorted under each letter without doing a query for each letter, so it lists like:
[b]A[/b]
Aone
Atwo
[b]B[/b]
Bone
Btwo
... Etc etc...
Can anyone offer any advice/code/links?
Thanks guys! :)
[SOLVED] HTML Validation?
in HTML Help
Posted
[code]<td width="88%" align="right" valign="top" class="bodytext">[/code]
Needs to be within a table tag but where ever i put the table tags the page messes up, it looks perfect now and i just don't know how to get around it?
Thanks.