Jump to content

Username:

Members
  • Posts

    155
  • Joined

  • Last visited

    Never

Everything posted by Username:

  1. This is not PHP Change <p align="left"><img src="http://www.ebookz.ir/static/images/book/PhotoshopElements9:TheMissingManual.jpg" width="180" height="220" align="right"></p></br><b>Paperback:</b> 640 pages<br /><b>Publisher:</b> <a href="http://www.ebooks.com/tags/Pogue+Press/" >Pogue Press</a>; 1 edition (September 29, 2010)<br /><b>Language:</b> English<br /><b>ISBN-10:</b> 1449389678<br /><b>ISBN-13:</b> 978-1449389673<br /><br />Elements 9 offers much of Photoshops power without the huge price tag. Its an ideal tool for most image-editing buffs -- including scrapbookers, photographers, and aspiring graphic artists. But Elements still doesnt come with a decent manual. This bestselling book will help you get the most out of the program, from the basics to advanced tips for both Windows and Mac. <br />Quickly learn your way around. Customize Elements to suit your working style. <br />Get to work right away. Import, organize, and make quick image fixes with ease. <br />Retouch any image. Learn how to repair and restore your old and damaged photos. <br />Add some pizzazz. Give images more zip with dozens of filters, frames, and special effects. <br />Find your creative flair. Create scrapbooks, greeting cards, photo books, and more. <br />Use advanced techniques. Work with layers, blend modes, and other tools. <br />Try out your new skills. Download practice images and try new tricks as you learn.</div></div> to <p align="left"><img src="http://www.ebookz.ir/static/images/book/PhotoshopElements9:TheMissingManual.jpg" width="180" height="220" align="right"></p></br><b>Paperback:</b> 640 pages<br /><b>Publisher:</b> 1 edition (September 29, 2010)<br /><b>Language:</b> English<br /><b>ISBN-10:</b> 1449389678<br /><b>ISBN-13:</b> 978-1449389673<br /><br />Elements 9 offers much of Photoshops power without the huge price tag. Its an ideal tool for most image-editing buffs -- including scrapbookers, photographers, and aspiring graphic artists. But Elements still doesnt come with a decent manual. This bestselling book will help you get the most out of the program, from the basics to advanced tips for both Windows and Mac. <br />Quickly learn your way around. Customize Elements to suit your working style. <br />Get to work right away. Import, organize, and make quick image fixes with ease. <br />Retouch any image. Learn how to repair and restore your old and damaged photos. <br />Add some pizzazz. Give images more zip with dozens of filters, frames, and special effects. <br />Find your creative flair. Create scrapbooks, greeting cards, photo books, and more. <br />Use advanced techniques. Work with layers, blend modes, and other tools. <br />Try out your new skills. Download practice images and try new tricks as you learn.</div></div>
  2. Uuuuuuh. Sams PHP and SQL is what I've been reading. Why is this in PHP Coding help?...
  3. Uhhh, don't think this will work considering I've never tried it but.... $visitor_ip = $_SERVER['REMOTE_ADDR']; $myFile = "admintext.txt"; $fh = fopen($myFile, 'r'); $text = fread($fh, filesize($myFile)); fclose($fh); print("<input name='name' value='$text' type='text'>"); just a thought tested it. It didn't work :'(
  4. My way is alot less professional but can give a good result providing you have skill in PHP. $readfrom = mysql_real_escape_string($_GET['readfrom']); $readto = mysql_real_escape_string($_GET['readto']); $tbl = "table"; //Table in DB $result = mysql_query("SELECT * FROM $tbl LIMIT $readfrom,$readto");
  5. don't even think this is correct but it works $board = mysql_real_escape_string($_GET['board']); $thread = mysql_real_escape_string($_GET['thread']); $realresult = $thread--; $result = mysql_query("SELECT subject, name, $realresult, timestamp, body FROM $board LIMIT $thread,$thread");
  6. Okay so, I'm adding a reply feature to my text-board, and I'm wondering how I can select a single result from the DB I've tried this $board = mysql_real_escape_string($_GET['board']); $thread = mysql_real_escape_string($_GET['thread']); $result = mysql_query("SELECT subject, name, id, timestamp, body FROM $board LIMIT $thread,$thread"); while ($row = mysql_fetch_array($result, MYSQL_NUM)) { printf("<div id='html1' style='background-color:#F0E0D6;border:solid 1px #800000;font-family:arial; font-size: 12px; padding:2px; margin:2px;'><font color='#CC1105'>%s </font><font color='#117743'>%s</font> <font color='#800000'>Post # %s - %s<br />%s<br /></div>", $row[0], $row[1], $row[2], $row[3], $row[4], $row[5], $row[6]); mysql_free_result($result); } ?> Kinda works but if I pu ?thread=56 then it would show thread 57, which in this example does not exist.
  7. When you're selling or distributing it. If you sell code it's automatically open source. There's no way you can just magically compile PHP source so they can't view it.
  8. I fixed the missing quote. Sorry, typo. "Notice: Undefined variable: subject in /hosted/domains/t/e/testchan.org/public_html/create.php on line 80"
  9. Above the script to upload the img. Should I move it below the script? edit> did it, same result
  10. Code I'm using if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/pjpeg")) && ($_FILES["file"]["size"] < 20000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Successfully uploaded image!"; if (file_exists("img/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "img/" . $_FILES["file"]["name"]); echo "<a href='img/$filename'>Your File</a>; } } } else { echo "Invalid file"; } mysql_query("INSERT INTO $tbl (body, name, subject, ip, timestamp, img) VALUES ('$body', '$name', '$subject', '$ip', '$timestamp', '$imglink')"); mysql_query("INSERT INTO total (ip, subject, name, board) VALUES ('$ip','$subject','$name','$dfg')"); echo "<font color='red'><font size='15'><strong><center>Successfully posted to /$tbl/"; //print("<meta http-equiv='REFRESH' content='0;url=index.php?board=$tbl'>"); If I have the query on the top it runs, and the upload img doesn't && vice versa
  11. >It has to be in the form tags... Sorry I am retard . I get it now, thanks! EDIT: Works great! Solved
  12. print("<form name='form1' method='post' action='create-b.php' enctype='application/x-www-form-urlencoded' style='margin:0px'> <input type='hidden' name='time' value='werwRG/443gooa22a04c0c2d46c802cc7e3b262398852$glg/WE?F'> <input name='name' value='Anonymous' type='text' MAXLENGTH='15' style='position:absolute;width:650px;left:67px;top:142px;z-index:11'> <input name='subject' value='(No subject)' MAXLENGTH='15' type='text' style='position:absolute;width:650px;left:67px;top:166px;z-index:11'> <textarea name='body' MAXLENGTH='255' type='text' style='position:absolute;left:67px;top:191px;width:650px;height:98px;z-index:11'></textarea> <input name='submit' type='submit' value='Create thread' style='position:absolute;left:614px;top:291px;z-index:11'> <div id='captcha' style='position:absolute; overflow:hidden; left:10px; top:296px; z-index:10'> require_once('captc/recaptchalib.php'); $publickey = '*******************************************'; echo recaptcha_get_html($publickey); </form> </div>"); How can I make the highlighted text be read as PHP and not just text? It has to be in the form tags... before you reply saying you forgot the php tags, no i didn't. I can't use php tags inside php tags...
  13. "Showing rows 0 - 2 (3 total, Query took 0.0088 sec)"
  14. I'm writing a highscore board for a game and I can only display one value from a DB... I don't know what I could be doing wrong. I've done this kind of DB work before. <?php $name = $_GET['lvl']; if($_GET['lvl']=="Strength"){ //1/21 $skill = "strlvl"; $exp = "strexp"; } else if($_GET['lvl']=="Attack"){ //2/21 $skill = "atklvl"; $exp = "atkexp"; } else if($_GET['lvl']=="Defence"){ //3/21 $skill = "deflvl"; $exp = "defexp"; } else if($_GET['lvl']=="Hitpoints"){ //4/21 $skill = "hplvl"; $exp = "hpexp"; } else if($_GET['lvl']=="Range"){ //5/21 $skill = "rglvl"; $exp = "rgexp"; } else if($_GET['lvl']=="Magic"){ //6/21 $skill = "mglvl"; $exp = "mgexp"; } else if($_GET['lvl']=="Hitpoints"){ //7/21 $skill = "hplvl"; $exp = "hpexp"; } else if($_GET['lvl']=="Prayer"){ //8/21 $skill = "prlvl"; $exp = "prexp"; } else if($_GET['lvl']=="Runecraft"){ //9/21 $skill = "rclvl"; $exp = "rcexp"; } else if($_GET['lvl']=="Slayer"){ //10/21 $skill = "sllvl"; $exp = "slexp"; } else if($_GET['lvl']=="Thieve"){ //11/21 $skill = "thlvl"; $exp = "thexp"; } else if($_GET['lvl']=="Agility"){ //12/21 $skill = "hplvl"; $exp = "hpexp"; } else if($_GET['lvl']=="Firemaking"){ //13/21 $skill = "fmlvl"; $exp = "fmexp"; } else if($_GET['lvl']=="Woodcut"){ //14/21 $skill = "wclvl"; $exp = "wcexp"; } else if($_GET['lvl']=="Cooking"){ //15/21 $skill = "cklvl"; $exp = "ckexp"; } else if($_GET['lvl']=="Herblore"){ //16/21 $skill = "hblvl"; $exp = "hbexp"; } else if($_GET['lvl']=="Mining"){ //17/21 $skill = "mnlvl"; $exp = "mnexp"; } else if($_GET['lvl']=="Farming"){ //18/21 $skill = "frmlvl"; $exp = "frmexp"; } else if($_GET['lvl']=="Fishing"){ //19/21 $skill = "fshlvl"; $exp = "fshexp"; } else if($_GET['lvl']=="Smithing"){ //20/21 $skill = "smlvl"; $exp = "smexp"; } else if($_GET['lvl']=="Fletching"){ //21/21 $skill = "fltlvl"; $exp = "fltexp"; } else if($_GET['lvl']==""){ //0/21 echo "<center><br /><br />No skill selected!</center><br />"; } mysql_connect("mysql", "15557_test", "**************") or die("Could not connect: " . mysql_error()); mysql_select_db("15557_test"); //STARTS HERE $result = mysql_query("SELECT playerName, $skill, $exp FROM skills ORDER BY $exp ASC LIMIT 5000"); while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo"Skill: " . $name . "<br />"; printf("Player: %s - Rank: %s - EXP: %s<br />", $row[0],$row[1],$row[2]); mysql_free_result($result //ENDS HERE } ?>
  15. You could also use VirtualBox if you want a more visual look into a website on a different OS.
  16. Lol I know what a proxy does. From my experience with networking a majority of people have static.
  17. >Misc. topic >'doesn't belong anywhere' >there's a misc. forum >
  18. I wrote a script that inserts an IP to a text file called 'banlist.txt', it works. But how can I read the text-file, and for everyline of IPs, die and don't let them see the content? I've got this so far <?php $file = @fopen("banlist.txt", "r"); if ($file) { while (!feof($file)) { $buff = fgets($file, 4096); echo "" . $buff . "<br />"; } fclose($handle); } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.