Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. If you want someone to write all the code for you then see the freelance section,
  2. use $cuffx = strtolower($line['cuff']);
  3. Erm.. you lost me do you mean echo $_GET['Test'];?
  4. maybe posting your real code will reveal real problems just another one from the same line as the one above <?php $query = "INSERT INTO user (host, user, password, select_priv, insert_priv, update_priv, delete_priv, create_priv, drop_priv, index_priv, alter_priv, references_priv) VALUES ('localhost', 'MyAdminUserForCpanel', 'PASSWORD(MyPassword!')', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'"; ?> missing the close bracket ")"
  5. i don't know how to help you sorry..
  6. echo "<p><strong>".($i+1).". Title: "; echo stripslashes($row["title"]); echo "</strong><br>Author: "; echo stripslashes($row["author"]); echo "<br>ISBN: "; echo stripslashes($row["isbn"]); echo "<br>Price: "; echo stripslashes($row["price"]); echo "</p>"; produces this from $query = "select * from books"; Well thats amazing erm.. try the echo "<p><strong>".($i+1).". Title: "; echo stripslashes($row["title"]); echo "</strong><br>Author: "; echo stripslashes($row["author"]); echo "<br>ISBN: "; echo stripslashes($row["isbn"]); echo "<br>Price: "; echo stripslashes($row["price"]); echo "</p>"; to echo "<p><strong>".($i+1).". Name: "; echo stripslashes($row["Name"]); echo "</strong><br>Age: "; echo stripslashes($row["Age"]); echo "<br>State: "; echo stripslashes($row["State"]); echo "<br>Sponsor: "; echo stripslashes($row["Sponsor"]); echo "</p>"; and Good Luck
  7. Well from what i see you have alot of diffent "typ'os" until they are cleared, i'm not sure what to point out
  8. no, no, he wants do to it the book way.. other options were offered..
  9. use echo $_cookie['username'];
  10. Please use the code tags, also how are they loggin in ? need more info
  11. post all the code
  12. either get a better book are go back over thr chapters you skipped
  13. well you better check it in the $query = "INSERT INTO user (host, user, password, select_priv, insert_priv, update_priv, delete_priv, create_priv, drop_priv, index_priv, alter_priv, references_priv) VALUES ('localhost', 'MyAdminUserForCpanel', 'PASSWORD(MyPassword!')', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'";
  14. 'PASSWORD(MyPassword!')' is that correct ?
  15. thats one option but fontgen.php should be more like <?php header("Content-type: image/png"); $im = imagecreate(600, 40); $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagettftext($im, 30, 0, 11, 31, $grey, $_GET['font'], $_GET['text']); imagettftext($im, 30, 0, 10, 30, $black, $_GET['font'], $_GET['text']); imagepng($im); imagedestroy($im); ?>
  16. OK FINE!! What does $query = "select * from books"; show ? // I am able to post a few records by using $query = "select * from books"; // but not by using $query = "select * from books where ".$searchtype." like '%".$searchterm."%'";
  17. i am saying you are using a routine that by design is for creating a single png, so you need to either just create that 1 file per font, or only use the imagettftext in the loop
  18. Just use the setcookie on all the actions, thus it will always get set back to 30 minutes,
  19. setcookie("TestCookie", $value, time()+1800); /* expire in 30 minutes */
  20. the script won't work on a loop as you are creating then destroying each png, you need to create only 1 png and send the header only once or save the file each time.
  21. i think its more of a HTML problem change Enter the Employee Number : <input type = text name = empno> Enter the Employee Name : <input type = text name = empname> to Enter the Employee Number : <input type="text" name="empno" /> Enter the Employee Name : <input type="text" name="empname" />
  22. Oh yes kenrbnsn, checked for that (done it too many times) Humm i am using firefox i'll play with IE see what happens
  23. can you post a few records from the database
×
×
  • 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.