-
Posts
1,033 -
Joined
-
Last visited
-
Days Won
17
Everything posted by gw1500se
-
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.
-
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.
-
Warning: DOMXPath::evaluate(): Invalid expression
gw1500se replied to oach's topic in PHP Coding Help
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. -
Warning: DOMXPath::evaluate(): Invalid expression
gw1500se replied to oach's topic in PHP Coding Help
What is the actual warning? -
How to loop or iterate variable in every click of button?
gw1500se replied to angelesguerra's topic in PHP Coding Help
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. -
How to loop or iterate variable in every click of button?
gw1500se replied to angelesguerra's topic in PHP Coding Help
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. -
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.
-
Wordpress + Mysql Config + PHP file -> not working
gw1500se replied to Siegfried's topic in PHP Coding Help
Not the code we need. What requinix is looking for is the database query code. -
Error session variable not displaying message in another php file
gw1500se replied to Alexa's topic in PHP Coding Help
Yes. Session start must be called on each page on which you want to share data. -
Wordpress + Mysql Config + PHP file -> not working
gw1500se replied to Siegfried's topic in PHP Coding Help
Could be. Perhaps if you posted your code and any error messages you are getting might help. My clairvoyance is not working today. -
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.
-
Wordpress + Mysql Config + PHP file -> not working
gw1500se replied to Siegfried's topic in PHP Coding Help
By correcting the erroneous code. -
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.
-
Error session variable not displaying message in another php file
gw1500se replied to Alexa's topic in PHP Coding Help
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? -
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?
-
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?
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
Embedded Audio File always plays on load - even with autoplay off
gw1500se replied to Jimmy12's topic in PHP Coding Help
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. -
I haven't tried it myself but I believe Imagemagick can read and parse tiff files.