Jump to content

Q695

Members
  • Posts

    783
  • Joined

  • Last visited

Everything posted by Q695

  1. Does anyone know why firefox defaults to google if you type in an address that isn't "localhost/.../?", but when I put in 127.0.0.1 it worked perfectly?
  2. The only way to make sure code is working is to test it yourself.
  3. It does stay on one page, it just goes to another frame.
  4. http://php.net/manual/en/function.print-r.php
  5. I don't do homework.
  6. look for an image upload tutorial.
  7. I feel silly, I shoud've thought that
  8. the file being uploaded is passed as a $_FILE, similar to how an image is handled.
  9. You mean if empty: http://php.net/manual/en/function.empty.php
  10. can not generate result You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '../images/clear.gif' alt='terain' height='20' width='20' />
  11. How can I write the HTML, not have an sql escape error, and do the insert? <?php $img_src = ob_get_contents(); //25x25 html table of images being written by about 30 lines of PHP $sql_map_img="INSERT INTO map_image (`user`, `map_id`, `map_img`) VALUES ('$id', NULL, `$img_src`);"; //echo $sql_map_img; $result_creature = mysql_query($sql_map_img, $con) or die ("can not generate result " . mysql_error()); ?>
  12. It is possible, I would do it with flash (the loading circle was on for a moment). They're targeting a flash <a> from what I've seen (the loading circle). Copy the <div id="container"> from there, read the code, and write your own to run it.
  13. Hidden fields are for those just being used to hide data from a user, but keep it on the form. try something else, like a text, instead of hidden. the value will show up, and you can see it at the same time.
  14. That's just a joining system with a while inside a while with different value systems based upon where you want it to show up. One of the only exceptions you would use a nested while loop in. At the final level you do a check to see if the item would be checked, or not.
  15. You guys were right, I was wrong, I should do: it with switches being flipped to certain colors behind the scenes, then store the flips as a formula in a single database entry with a longtext field storing the data, and strip the <a>.
  16. It doesn't look like the quotes are correct, are they? If not, then swap single, and double quotes. if ($var1 && $var2 && $var3 && ..){ //do this }
  17. I think I found what I'm looking for, and just need to make it work with the code being written by the server: http://www.webmasterworld.com/forum88/3910.htm
  18. nesting via table/layer abbreviations (table 2 variable= table 1 variable if different, or where table byte operator = byte) to say how deep the option is, or doing a php join if the data is different.
  19. The images are like transparencies (not actually transparencies), but electronic images being put into a file. I to put the output in a file electronically, just have the user click a submit button that will make an image of the output. This is what I have: <?php $filename = 'image.jpg'; header('Content-Disposition: inline; filename="'.$filename.'"'); header("Content-Type: image/png"); // Don't forget the Content-Type as well... // Output image here /* header("Content-Type: image/png"); header('Content-Disposition: inline; filename="some.png"'); //*/ ?> <!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" /> <meta name="generator" content="Adobe GoLive" /> <title>Untitled Page</title> </head> <body> <?php $id='1'; $img_fldr='../'; if (isset($_GET['map']) && $_GET['map']!='' && isset($id) && $id!=''){ include "../connection.php";//the database connection off the main application include "../design.php";//the object I want to have a screen shot of behind the scenes } ?> </body> </html> The URL being pulled is: http://localhost/fall_axe/builder/map_render.php?map=1 error: it says there are errors, but when without the header info it works just fine.
  20. How? Is there an easy way to take it from HTML, and make it a PHP, if it's already in a table form (think of how overhead projectors used to be able to convert print on paper onto a clear film I want the clear film copies).
  21. Use these videos: http://www.youtube.com/watch?v=T0Uv3VeTMR8
  22. Exactly, but like a button press cronjob. I have a page that is written just to do the image output in HTML, but now I want to have it converted to an image.
  23. Is it solved?
  24. Why not just do an image upload, they're incredibly easy.
  25. missing a single ' $strHtmlOutput.= ' <tbody> <tr>'; $strHtmlOutput.= '<tr> <th>Date of Request</th> <td> '.$result['cdate'].' </td> </tr> '; $strHtmlOutput.= '<tr> <th>Date Last Modified</th> <td> '.$result['mdate'].' </td> </tr> '; } $strHtmlOutput.='</tbody> </table>';
×
×
  • 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.