Jump to content

gw1500se

Members
  • Posts

    1,033
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. Log in to MySQL from the command line using the same credentials as your PHP script (usually 'apache' in Linux). Then enter the following commands: USE DATABASE <your database name>; SHOW PRIVILEGES; As Barand says, you need to see the FILE privilege. If it is not there, you will need to log in as root (or have your sys admin do it) and GRANT that privilege for that database and user.
  2. You have to move_uploaded_file to get it to the desired folder. However, unless I don't understand what you want to do, there is no need to move it at all. Process the file into the database as you are.
  3. It is the line # I am looking for which you didn't post. And post that line with the code around it. Also post any code that produces variables used. I suspect the first warning may have produced the 2nd.
  4. What is the actual warning?
  5. The link points to the documentation which has examples. You can also search for hundreds of examples. Just make sure you understand the documentation first.
  6. PHP is stateless which means it does not remember what happened previously. To do what you want you will need to keep track of the variables using sessions. It would not be a loop at all. You would need to check and increment a $_SESSION variable on each call.
  7. First design the layout of how you want those panels to look and what they are to do. At that point you should have a good idea of the data you want to keep in your database and be able to create the schema. Then create the partial HTML to fulfill that design indicating the dynamic values to be generated by PHP and input by the user. Only then will you be ready to begin the PHP programming aspect and finalize the HTML pages.
  8. Not the code we need. What requinix is looking for is the database query code.
  9. Yes. Session start must be called on each page on which you want to share data.
  10. Could be. Perhaps if you posted your code and any error messages you are getting might help. My clairvoyance is not working today.
  11. What you posted is not any error known to PHP. If you are posting a link to errors, don't. Post the errors themselves and indicate to what line numbers the errors refer.
  12. By correcting the erroneous code.
  13. Try this: <?php echo "<iframe width=\"420\" height=\"315\" src=\"$address\">"; echo "</iframe>"; ?> I am assuming you have echo'ed $address to make sure it is what you expect.
  14. I see the session start but I don't see where you set any $_SESSION variables. Where is the code that outputs the error you say is not showing up?
  15. It is not clear what you are trying to set. You are using '$row...' as the index for '$result'? What do you expect '$result' to look like?
  16. Perhaps we have a terminology problem here. PHP does not "release" output. If you are saying the echo does not work then that is different. Looking at your OP there is no closing quote on the echo. We'd have to see all your PHP code to understand what is going on. What you have posted does not need to be done with a PHP echo. I can simply be output outside a PHP wrapper. Have you looked at the resulting source in your browser to see if something is there but not being displayed?
  17. Now that I can see it, it makes no sense. There is no PHP code other than the unnecessary echo. This looks like a javascript question. The page should just be: <!DOCTYPE html> <html> <head> <TITLE></TITLE> <script> var ld=(document.all); var ns4=document.layers; var ns6=document.getElementById && !document.all; var ie4=document.all; if (ns4){ ld=document.loading; }else if (ns6){ ld=document.getElementById("loading").style; }else if (ie4){ ld=document.all.loading.style; } function init(){ if(ns4){ ld.visibility="hidden"; }else if (ns6 || ie4){ ld.display="none"; } } </script> </head> <body style="background-color: rgb(0, 0, 0);" onLoad="init()"> <div align="center" id="loading"><img src="images/Animeringar/Loading_200x200.gif" width="150" height="150" border="0"></div> </body> </html> Note removal of the unnecessary escapes (\). No PHP is involved.
  18. Please don't post images of code. My eyes are not that good. Post the code itself and use the code icon (<>) selecting PHP. The built-in formatter also makes your code easier to read.
  19. You will get better help if you show your actual code. Pseudo code does not help us help you. Also be sure to use the code icon (<>) and specify PHP.
  20. Then do what I suggested. Build a query that inserts multiple rows up to your limit then issue that query. However, 100 may be too small a number to achieve maximum efficiency. That article also explains out to decide how many rows can be practically handled.
  21. Use foreach. Not sure why you want groups of 100. What do you plan to do between groups? You can add a counter to the loop and do whatever every 100 within the loop.
  22. Where did you add that line? It probably need to be before they other headers. However, you are much better off using PHPMailer. It is easier to use and provides better control.
  23. It is playing because you are telling it to in the echo/script. If you want the user to start the play, create a button instead and have the onClick attribute execute the PlaySound script.
  24. I haven't tried it myself but I believe Imagemagick can read and parse tiff files.
×
×
  • 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.