-
Posts
630 -
Joined
-
Last visited
Never
Everything posted by BillyBoB
-
<FORM METHOD=POST ACTION="login.php"> Your username: <INPUT NAME="user" TYPE=TEXT MAXLENGTH=20 SIZE=20> <BR> Your password: <INPUT NAME="pass" TYPE=PASSWORD MAXLENGTH=10 SIZE=10> <BR> <INPUT TYPE=SUBMIT VALUE="Login"> </FORM> should be [code] <FORM METHOD="POST" ACTION="login.php"> Your username: <INPUT NAME="user" TYPE="TEXT" MAXLENGTH="20" SIZE="20"> <BR> Your password: <INPUT NAME="pass" TYPE="PASSWORD" MAXLENGTH="10" SIZE="10"> <BR> <INPUT TYPE="SUBMIT" VALUE="Login"> </FORM>[/code] just try this sorry for telling u it was only 49 i was counting them up cuz my explorer was messing up i hate it like XP well really its my comp
-
r u giving all source the error says its on 59 and theres only 49 there if i am correct
-
Unexpected ';' error - cant find the problem
BillyBoB replied to techiefreak05's topic in PHP Coding Help
[code] <?php $query = mysql_query("SELECT * FROM outbox WHERE `from` = '$_SESSION[username]'"); while ($array = mysql_fetch_array($query)){ echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#CCFFFF><td height=50><b>To:</b> <a href=" . $array['to'] . ".html>" . $array['to'] "</a ><br><b>Read:</b>".$array['status']. "<br><b>Date:</b>" .$array['date']. "<br><b>Subject:</b>" .$array['subject']; echo "</td></tr></table>"; echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#FFFFCC><td height=150><b>Message:</b>" .$array['message']; echo "</td></tr></table><br>"; } ?> [/code] and [code] <?php $query = mysql_query("SELECT * FROM messages WHERE `to` = '$_SESSION[username]'"); while ($array = mysql_fetch_array($query)){ echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#CCFFFF><td height=50><b>From: <a href=" . $array['from'] . ".html>" . $array['from'] "</a ><br>Read:".$array['status']. "<br>Date:" .$array['date']; echo "</b></td></tr></table>"; echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#FFFFCC><td height=35><a href=\"showMessage.php?id=".$array['id']."\">Subject: ".$array['subject']."</a>"; echo "</td></tr></table><br>"; } ?> [/code] -
u will need to code um i suggest tring to find tutorials on this because its a big subject to tackle and this is a forums mostly for quick fixes and stuff google.com will do this job
-
well i would prob do somin like change the php ? code or watever to a text file . display it in a editor then save changes then change back to php ? code or watever i dont know exactly how to do this but if i can find out i will help :)
-
um i would put an iframe and put all your body info in a seperate page :)
-
sorry for not posting all of the above i figured it out and here is the finished code incase u want to ever do it: [code] <?php if($_GET['pic']) { $pic = $_GET['pic']; echo(" <a href=\"viewpic.php?pic=$pic&full=y\" border = \"0\"><img src=\"halopics/$pic.jpg\" height=\"300\" width=\"490\" border = \"0\" /></a><br /><center>Click the Pic to Enlarge.</center><br />"); echo("<center><form method=\"POST\"><input type=\"submit\" name=\"back\" value=\"Back\" />\____/<input type=\"submit\" name=\"next\" value=\"Next\" /></form></center><br />"); $dir = './halopics/'; $handle = opendir($dir); while (($file = readdir($handle)) !== false) { if ( !in_array($file, array('.', '..') ) ) { $file_list[] = basename($file, '.jpg'); } } closedir($handle); asort($file_list); if($_POST['next']) { $currentfile = current($file_list); while($currentfile!=$pic) { $currentfile=next($file_list); } if(current($file_list)==$pic) { $nextfile = next($file_list); $pic = $nextfile; if(!$nextfile) { $pic = end($file_list); } } echo("<meta http-equiv=\"Refresh\" content=\"0; URL=http://dreamshowstudios.net/viewpic.php?pic=$pic\" />"); } if($_POST['back']) { $currentfile = current($file_list); while($currentfile!=$pic) { $currentfile=next($file_list); } if(current($file_list)==$pic) { $nextfile = prev($file_list); $pic = $nextfile; if(!$nextfile) { $pic = reset($file_list); } } echo("<meta http-equiv=\"Refresh\" content=\"0; URL=http://dreamshowstudios.net/viewpic.php?pic=$pic\" />"); } echo (" <center><form method=\"POST\">Select:<select name=\"pic\"> "); foreach($file_list as $key => $value){ echo (" <option>$value</option> "); } echo(" </select> <input type=\"submit\" name=\"submit\" value=\"View Pic\" /> </form></center> "); if($_POST['submit']) { $pic = $_POST['pic']; echo("<meta http-equiv=\"Refresh\" content=\"0; URL=http://dreamshowstudios.net/viewpic.php?pic=$pic\"/>"); } }else{ $dir = './halopics/'; $handle = opendir($dir); while (($file = readdir($handle)) !== false) { if ( !in_array($file, array('.', '..') ) ) { $file_list[] = basename($file, '.jpg'); } } closedir($handle); asort($file_list); echo (" <center><form method=\"POST\">Select:<select name=\"pic\"> "); foreach($file_list as $key => $value){ echo (" <option>$value</option> "); } echo(" </select> <input type=\"submit\" name=\"submit\" value=\"View Pic\" /> </form></center> "); if($_POST['submit']) { $pic = $_POST['pic']; echo("<meta http-equiv=\"Refresh\" content=\"0; URL=http://dreamshowstudios.net/viewpic.php?pic=$pic\"/>"); } } ?> [/code] this code is copyrighted but you can use the basic design of it :) ;)
-
sorry i dont get the problem still
-
can u show me the rest of your code including the css page
-
this is true
-
How do I make an authentication not case sensitive?
BillyBoB replied to Infected-Waffle's topic in PHP Coding Help
this would require some work but couldnt u just change all the letters to lower case b4 goin into db and then just change all letters to lower case when tring to match? -
all my names have the same amount of letters it goes a-pic-(0-9) and b-pic-(0-9) (without the () ) and so on is there a way to start reading a array from a certain point then skip this many letters then save this many and ignore the rest ?
-
Focus of text field changes when field is full?
BillyBoB replied to Roble's topic in PHP Coding Help
well this time i found it for u create a function on top of page and it would be like [code] <FORM NAME="cc"> <INPUT TYPE="text" name="num1" size="5" onKeyUp="check()"><BR> <INPUT TYPE="text" name="num2" size="5" onKeyUp="check2()"><BR> <INPUT TYPE="text" name="num3" size="5" onKeyUp="check3()"><BR> <INPUT TYPE="submit" VALUE="Click to Send" NAME="go"> </FORM> <?php function check() { var letters = document.cc.num1.value.length +1; if (letters <= 5) {document.cc.num1.focus()} else {document.cc.num2.focus()} } function check2() { var letters = document.cc.num2.value.length +1; if (letters <= 5) {document.cc.num2.focus()} else {document.cc.num3.focus()} } function check3() { var letters = document.cc.num3.value.length +1; if (letters <= 5) {document.cc.num3.focus()} else {document.cc.go.focus()} } ?> [/code] sorry jeremy i proved u wrong (i hate doing that) -
did u chmod to 777?
-
Focus of text field changes when field is full?
BillyBoB replied to Roble's topic in PHP Coding Help
u could create a script so when text is entered then check if 5 numbers or watever has been entered then focusing on the next box right ? i dont exactly know but u can google it im sure -
thats not exactly wat im looking for im looking for a script to make it where when next is hit then it takes the position of the pic and then changes the name to the next pic in the array
-
[quote author=BillyBoB link=topic=104559.msg417135#msg417135 date=1155774890] Can u help me ? (there happy) [/quote] whats that i can see one how bout u
-
well sorry i couldnt help but Jeremysr got it im just not that good with code thats not my own
-
i have this code : [code] <?php if($_GET['pic']) { $pic = $_GET['pic']; echo(" <a href=\"viewpic.php?pic=$pic&full=y\" border = \"0\"><img src=\"halopics/$pic.jpg\" height=\"300\" width=\"490\" border = \"0\" /></a><br /><center>Click the Pic to Enlarge.</center><br />"); echo("<center><form method=\"POST\"><input type=\"submit\" name=\"back\" value=\"Back\" />\____/<input type=\"submit\" name=\"next\" value=\"Next\" /></form></center><br />"); $dir = './halopics/'; $handle = opendir($dir); while (($file = readdir($handle)) !== false) { if ( !in_array($file, array('.', '..') ) ) { $file_list[] = basename($file, '.jpg'); } } closedir($handle); asort($file_list); if($_POST['next']) { } if($_POST['back']) { } echo (" <center><form method=\"POST\">Select:<select name=\"pic\"> "); foreach($file_list as $key => $value){ echo (" <option>$value</option> "); } echo(" </select> <input type=\"submit\" name=\"submit\" value=\"View Pic\" /> </form></center> "); if($_POST['submit']) { $pic = $_POST['pic']; echo("<meta http-equiv=\"Refresh\" content=\"0; URL=http://dreamshowstudios.net/viewpic.php?pic=$pic\"/>"); } }else{ $dir = './halopics/'; $handle = opendir($dir); while (($file = readdir($handle)) !== false) { if ( !in_array($file, array('.', '..') ) ) { $file_list[] = basename($file, '.jpg'); } } closedir($handle); asort($file_list); echo (" <center><form method=\"POST\">Select:<select name=\"pic\"> "); foreach($file_list as $key => $value){ echo (" <option>$value</option> "); } echo(" </select> <input type=\"submit\" name=\"submit\" value=\"View Pic\" /> </form></center> "); if($_POST['submit']) { $pic = $_POST['pic']; echo("<meta http-equiv=\"Refresh\" content=\"0; URL=http://dreamshowstudios.net/viewpic.php?pic=$pic\"/>"); } } ?> [/code] heres the link to see it in action [url=http://dreamshowstudios.net/viewpic.php]http://dreamshowstudios.net/viewpic.php[/url] i need the next and back buttons to scroll through the pics is there a way to do this with the above array?
-
i think it is u have no method to go by like change ur code to ... : [code] <form name="category" method="post"> <div align="center"> <select name="site" size=1 onChange="javascript:categoryHandler()"> <option value=" ">Filter By Category</option> <option value="opt1">Option 1</option> <option value="opt2">Option 2</option> <option value="opt3">Option 3</option> <option value="opt4">Option 4</option> <option value="opt5">Option 5</option> <option value="opt6">Option 6</option> </select> <input type="submit" name="submit" value="Submit" /> </div> </form> <?php if($_POST['submit']) { if($category == 'opt1') { $query = "SELECT * FROM `links` WHERE `opt1` = 'Y' and `approved` = 'Y' ORDER BY `title`"; $result = mysql_query($query,$dbh) or die(mysql_error()); } elseif($category == 'opt2') { $query = "SELECT * FROM `links` WHERE `opt2` = 'Y' and `approved` = 'Y' ORDER BY `title`"; $result = mysql_query($query,$dbh) or die(mysql_error()); } elseif($category == 'opt3') { $query = "SELECT * FROM `links` WHERE `opt3` = 'Y' and `approved` = 'Y' ORDER BY `title`"; $result = mysql_query($query,$dbh) or die(mysql_error()); } elseif($category == 'opt4') { $query = "SELECT * FROM `links` WHERE `opt4` = 'Y' and `approved` = 'Y' ORDER BY `title`"; $result = mysql_query($query,$dbh) or die(mysql_error()); } elseif($category == 'opt5') { $query = "SELECT * FROM `links` WHERE `opt5` = 'Y' and `approved` = 'Y' ORDER BY `title`"; $result = mysql_query($query,$dbh) or die(mysql_error()); } elseif($category == 'opt6') { $query = "SELECT * FROM `links` WHERE `opt6` = 'Y' and `approved` = 'Y' ORDER BY `title`"; $result = mysql_query($query,$dbh) or die(mysql_error()); } } [/code]
-
nope that wont work ... it will not work because what if the timein is jan. (01) and the current time is nov. (11) that would give me -10
-
dude stop being an ass just anwser my question
-
i have a timestamp in a db called timein i want to have it show the how long its been since the last login. i want it to take time out of db and compare it with the date() function of php and display the dtime between them. Can u help me ? (there happy)