
Jamesking56
-
Content Count
150 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Posts posted by Jamesking56
-
-
Nevermind, I found a better way:$extension = pathinfo($file, PATHINFO_EXTENSION);using pathinfo(); with only PATHINFO_EXTENSION
-
I am using Glob to get all Files & Folders, then I am checking whether they are Files or Folders and Echoing them out separatly...But, I want to now get the Filetype of the Files.How do I do that??
-
Oh!!Thanks!!
-
How can I do that??How can I detect what page(s) a user is currently visiting??
-
Yes it works!!Thank you very much!
-
Yeah! Now the Textbox gets the Info from the TXT FileBut..I have another problem, The Button doesn't work, it is supposed to redirect you to the Forum Link but it doesn't do anything!Help me once more??
-
I'm making a Forum Page so that it displays the Forum Rules (in a .txt file) then you have to Click "I Accept" to enter the ForumBut, I have used PHP to Compensate for Errors.I use Variables to Change Forum Link and the Forum Rules TXT File,But now, it won't open my Forum Rules TXT fileCan anyone help?Here is the Code:
<?php include( 'inc/header.inc.php' ); include( 'inc/sidebar.inc.php' ); $forumrulestxt = "rules.txt"; $forumlink = "/forum";?> <!-- Begin Right Column --> <div id="rightcolumn"> <h2>Forum!</h2> <?php if ( !$forumlink | $forumlink="" | $forumlink="http://" ) { echo "<h4>Sorry, We currently Don't have a Forum Yet!</h4>"; } elseif ( !$forumrulestxt | !$forumrulestxt="" | $forumrulestxt="http://" ) { echo "<h4>Click the Link Below to Enter the Forum:<br /><br /><a href=\"" . $forumlink . "\" title=\"James's Forum\">Enter Forum</a></h4>"; } else { $forumrulestxt_open = fopen($forumrulestxt, "r"); if ( !$forumrulestxt_open ) { echo "An Error Occured..."; } $forumrulestxt_read = fread($forumrulestxt_open, "100000"); echo "<h4>Please Agree to the Forum Rules Below to Enter the Forum<br /><br /><textarea name=\"forumrules\">" . $forumrulestxt_read . "</textarea><br /><br /><input type=\"button\" name=\"agree\" value=\"I Agree\" OnClick=\"window.location($forumlink)\"/></h4>"; $forumrulestxt_close = fclose($forumrulestxt_open); } ?> </div> <!-- End Right Column --> <?php include( 'inc/footer.inc.php' ); ?> </div> <!-- End Wrapper --> </body></html>
-
I mean this:
<html><head></head><body>FRAME CODE</body></html>
See the Top one is WRONGBottom one is right:
<html><head>FRAME CODE</head><body></body></html>
see?
-
Nevermind, My Frame HTML was wrongI put it in <body>FRAME CODE</body> when it should be in <head>
-
Because I am including files and making it generate stuff whether users are logged in or not,But, I echo out the Frame Coding and it doesn't display?Why doesn't it Display?Why not just do it without PHP? How are you trying to generate it with PHP? -
Isn't Dark Blue meant to save energy on LCDs?or am I wrong??
-
I made a simple HTML Frames thing to have a sidebar then links that open in a "Main" area,But, when I echo it in PHP it doesn't display?Do I need a certain extension on or something? for some reason I get a blank page??HELP??
-
How can I populate a form Drop Down Box using PHP and a MySQL Database??I have tried before:
<form><select name="select"><?php$sql = "SELECT * FROM country";$query = mysql_query($sql); $data = mysql_fetch_array($query);foreach( $data as $row ){ echo "<option value=" . $row['value'] . ">" . $row['country'] . "</option>";} ?></select></form>
but for some reason it doesn;t display the values right, anyone help?
-
Try $_SERVER['REQUEST_URI'] instead of $_SERVER['HTTP_HOST']
-
-
-
You need to add CSS into your Javascript, here is a small HTML file I tried it out on, copy this code into a new HTML file:
<html><head><title></title><head><body><a href="page.html" OnMouseOver="this.style.backgroundColor='blue'" OnMouseOut="this.style.backgroundColor='yellow'">Page</a></body></html>
-
is that really it? they dont really explain that in the tutorials......If you're using SQL Server you do this:SELECT TOP 10 * FROM ... -
How do I only display the top TEN records, like if i had a table with 16 records, how do I only display the top ten in a certain order?
-
Why don't you just use CTRL+F when viewing a webpage?
-
The text is still black.......
-
I tried that but it didn't workhere is now how my code looks:
<html><head><style type="text/css">.mainTable td {color: #FFFFFF;}</style><?phpinclude("config.php");?><title>BLANKED!</title></head><body bgcolor="#000000"><font color="white"><center><img src="IMAGE BLANKED"><br>Welcome to the BLANKED Downloads Area! BLANKED Database!<br><br>BLANKED!<br>Files:<br><?php$result = mysql_query("SELECT * FROM downloads WHERE file_type='theme'");echo "<table border='1' class='mainTable'><tr><th>File Name</th><th>Uploaded By</th></tr>";while($row = mysql_fetch_array($result)){echo "<tr>";echo "<td style=\"color: #FFFFFF;\"><a href=" . $row['link'] . ">" . $row['file_name'] . "</a></td>";echo "<td style=\"color: #FFFFFF;\">" . $row['uploaded_by'] . "</td>";echo "</tr>";}echo "</table>";echo "<br>";?></font></center></body></html>
-
i will try that now,i did put that CSS in the Head of my documentWell that doesn't make sense, did you put the CSS code into the <head> of the HTML document? You could add inline CSS to every table cell, but it would be a waste of space.echo "<td style=\"color: #FFFFFF;\">" . $row['file_name'] . "</td>"; -
I just tried that and it didn't work, the text stayed black.....The easiest way would be to put a CSS class on the table and then set up some rules:echo "<table border='1' class='mainTable'>Then up in the head you can add this:<style type="text/css">.mainTable td { color: #FFFFFF;}</style>
GreyBox Problem
in PHP
Posted
I'm having a Problem with GreyBox...I have installed it correctly in an Included Header file which is included on every pageBut, I click on an image that I have setup to use GreyBox, GreyBox opensBUT, it just says "loading..." and sticks like that....Why isn't it loading my image?