Jump to content

jazzman1

Staff Alumni
  • Posts

    2,713
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by jazzman1

  1. I told you, why ? You still got an error message. Your page does not have a proper html structure, something like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <htmlL> <head> <title>My first HTML document</title> </head> <body> <P>Hello world! </body> </html>
  2. You need to create this method "load" in your class
  3. When you open up your html source file do you see a properly html structure like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> CakePHP: the rapid development php framework: Messages </title> <link href="/cakephp/favicon.ico" type="image/x-icon" rel="icon" /><link href="/cakephp/favicon.ico" type="image/x-icon" rel="shortcut icon" /><link rel="stylesheet" type="text/css" href="/cakephp/css/cake.generic.css" /><script type="text/javascript" src="/cakephp/js/jquery-1.4.3.min.js"></script> <script type="text/javascript" src="/cakephp/js/form_validate.js"></script><script type="text/javascript"> //<![CDATA[ $(document).ready(function () {$("#submit-36739122").bind("click", function (event) {$.ajax({beforeSend:function (XMLHttpRequest) {$("div#sending").fadeIn();}, data:$("#submit-36739122").closest("form").serialize(), dataType:"html", success:function (data, textStatus) {$("div#sending").fadeOut();$("div#success").html(data);}, type:"post", url:"\/cakephp\/messages"}); return false;});}); //]]> </script></head> <body> <div id="container"> <div id="header"> <h1><a href="http://cakephp.org">CakePHP: the rapid development php framework</a></h1> </div> <div id="content"> <div id="success"></div> <div id="sending" style="display: none">Sending.....</div> <form action="/cakephp/messages" id="MessageIndexForm" method="post" accept-charset="utf-8"><div style="display:none;"><input type="hidden" name="_method" value="POST" /></div> <fieldset> <legend>Ajax Request Form</legend> <div class="input text required"><label for="name">Name</label><input name="data[Message][name]" type="text" id="name" maxlength="30" /></div><div class="input text required"><label for="email">Email</label><input name="data[Message][email]" type="text" id="email" maxlength="30" /></div><div class="input textarea required"><label for="message">Message</label><textarea name="data[Message][message]" id="message" cols="30" rows="6" ></textarea></div><div class="submit"><input id="submit-36739122" type="submit" value="Send request" /></div></fieldset> </form> </div> <div id="footer"> <a href="http://www.cakephp.org/" target="_blank"><img src="/cakephp/img/cake.power.gif" alt="CakePHP: the rapid development php framework" border="0" /></a> </div> </div> </body> </html>
  4. Everything is fine, I open it up, but you got a error message: Can you see the html structure ?
  5. Can you comment any css stylesheets and js files from the page, and try again ?
  6. Post the html code too.
  7. Do you have a public link to this ?
  8. I was thinking the same like you, maybe he has a empty space. Try: $UID = urlencode($b['UID']);
  9. Is it a thumbnail image ?
  10. @bugzy, go to my web server and see how does my script work is. I've used jQuery Image Cropping Plugin and php scripts to resize images. If you like it I'll give you the scripts. URL to server is: http://kaneffbrookside.ca/stdimitar/login.php user: jazzman pass: password Go to Crop New Image jQuery Image Cropping Plugin - http://deepliquid.com/content/Jcrop.html
  11. Whats the easiest way to do it? You can see what the file looks like by scrolling up, 5000 insert statements. And no, I have no binary files or anything else, just a .sql file. @Worqy, do you have any access to database with this game ? How did you download the files ?
  12. Do you want to connect your local machine to remote database, right ?
  13. Few months ago I imported the Bible to database in this way. What I'm talking about:
  14. Your js code is very sparse. Do you use any js debugger ? You've declared in js code to find html elements with ID's, but I hardly see them :'(
  15. Php is not like C++. $numrows=mysql_num_rows(restwoway);
  16. If he's limited to 30 queries a second (odd), I'd assume this is a MySQL limit and not a PHP/driver one. Not sure if the command line would bypass this. Yep, there is a MySQL limit I he/she has the binaries files, this job will be done for few seconds.
  17. Do you have any binaries files belong to the table or only sql ?
  18. Still nothing, you are afraid from something, obviously. Just for test, copy/paste my script from -> http://forums.phpfreaks.com/index.php?topic=360868.msg1706751#msg1706751 I'm sure 100% that the mail script has not problem with encodings. You can use also BCC (blind carbon copy) to send your emails. Good luck
  19. Send me email at dimitartuparov@mail.bg to check header code.
  20. Try this: mail($to,'=?UTF-8?B?'.base64_encode($subject).'?=', base64_encode($message), $headers.''); Check out my first post to this forum, I also had a problem to Bulgarian hostings: http://forums.phpfreaks.com/index.php?topic=360868.msg1706751#msg1706751
  21. Where actually you start a cron job, on a local machine or remote server ?
  22. Open up php.ini file, find the row - output_buffering, and tell us what value is set there ?
  23. Why ? Once created a stored procedure in database, she could use and run a PHP Data Objects (PDO) to execute the logic of this procedure. Something like this (of course I improvise, sorry about my EN, too ), class PDOConnection { public static $connection; public static function getConnection() { if (!isset(PDOConnection::$connection)) { PDOConnection::$connection = new PDO('mysql:host=' . HOST. ';dbname=' . DBNAME , USER, PASS); } return PDOConnection::$connection; } } $pdoconn = PDOConnection::getConnection(); $stmt = $pdoconn->prepare("call DeleteMaxID()"); $stmt->execute(); unset($stmt); // Or pass an ID to DeleteMax() method $stmt = $pdoconn->prepare("call DeleteMaxID(:var)"); $stmt->bindParam(":car",$var_in_php, PDO::PARAM_STR); $stmt->execute(); unset($stmt);
  24. With mysql procedure would be working too, but it's a little bit complicated: Run the code through mysql console: Example: DELIMITER ;; DROP PROCEDURE IF EXISTS `DeleteMaxID`;; CREATE PROCEDURE `DeleteMaxID`() BEGIN DECLARE MaxID smallint; SET MaxID = (SELECT max(`table_name`.`user_id`) from `table_name`); DELETE FROM `table_name` WHERE `table_name`.`id` = MaxID; END ;; DELIMITER ;
  25. I'm thinking that it's good idea to use - Date and Time Functions in MySQL -> http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html Your question looks like very easy, but actually is not
×
×
  • 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.