-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Everything posted by ginerjm
-
HTH if that's how you interpreted it. If not, then all is lost.
-
Why don't you just grab the input values as they want to arrive (in $_POST?) and THEM make an array out of them?
-
Yes - this is quite the code sample (improperly posted and difficult to read/comprehend.) from an admitted newcomer to PHP. That said I'll just add that since you obviously didn't write I think we can agree that you are Still a Newbie and will be until you Write Your Own Code. This code is so full of c*** that you would not have written yourself on day one. Why don't you read up on some things like a newcomer should do and then read about how to handle inputs to validate them and then write your own code. THEN ask for help so that you can learn and apply.
-
Methinks you are not doing anything to Learn how to be a programmer. Have you done any reading on the items brought up in these posts? Have you done any reading at all on becoming a programmer/develop, etc.? If not then you probably want to pass this project (?) off to someone who is trying or is capable already. Just my $.02. Signing off as well.
-
As you know you can't have double spaces in html. I suggest you use css to pad that cell.
-
Why don't you try to just answer the question I asked in simple English?
-
So my last post didn't trigger any "ah ha!' moment? I really think there is some more "code" happening here than what we are seeing.
-
Sounds like godaddy. Can't provide you with a copy of their std. ini file.
-
Transfering data over different servers.
ginerjm replied to OsirisElKeleni's topic in PHP Coding Help
The data will be lost if you close the connection, yes. But you simply need to do a fetchall to pull it into your own local array variable to retain it. (not sure but if you don't close the conn but simply open the second new conn with a new variable you might hold on to the data) -
Please post your next set of code using the proper tags defined for this forum. Basically 'code' and '/code' wrapped in [] to start and end your code. That said you could also try to re-format your code so it is more readable. Right now your few lines are taking 2-3 screens to display and they really shouldn't.
-
We (me anyway) are still not clear on what you want to alter. Do you want 'fix' a PDF output (as your title suggested) or do you want to alter some HTML output? And to continue the pdf discussion - pdfs are created thru some specialized processing. So far as I know there is no easy way to just produce an html template/screen/image and have a pdf file produced from it. You gotta do the work to layout your report and output to a pdf file. I use FPDF which is pretty simple to use, after a small learning curve.
-
Transfering data over different servers.
ginerjm replied to OsirisElKeleni's topic in PHP Coding Help
If you have the proper credentials to connect to the second domain's database then it is pretty simple I would think. First you connect to your db server (db), grab some data, close the conn and open a new conn on the other db server and insert that data. Of course I haven't done this but I'm sure that Barand will guide you thru this if this approach has some pitfall to it. -
Transfering data over different servers.
ginerjm replied to OsirisElKeleni's topic in PHP Coding Help
So - you have to have permission to access it (the domain basically) and either have permissions to reach the database or have use of their API. Otherwise you out of luck, no? -
Transfering data over different servers.
ginerjm replied to OsirisElKeleni's topic in PHP Coding Help
Isn't the real question - is the second server in the same Domain? -
Failed opening 'lang/en.php' for inclusion - Help Please
ginerjm replied to jokerfool's topic in PHP Coding Help
Your include statement is trying locate a specific file and it can't find it. That's it in a nutshell. Confirm that the name is what you want and then confirm that it is located where you think it is. -
If your current exec process does what you want then perhaps you can send that to a file. But either way, you're going to be reading a file and having to break down the lines into meaningful columns in order to do that table you mentioned.
-
You want the PDF to be altered to center some things, or your html output?
-
I'm thinking you want to write a php script to read that log file and jump to the position you provide. Then as you read each line you would use an explode() function to break the line down into parts, but looking at that one example I'm not sure how you would do that. If you can figure out how to map the row into distinct fields then creating the output <td> elements would be a breeze.
-
I just spent 20 minutes googling all the permutations of this post's problem that I could think of. Do you know that in all the results I found NOT ONE of them described this problem? It seems that nobody has ever had a problem like this. This leads me to suspect that there is something else going on here that we are not privy to. Albaserver: Looking at this 'simple script' of yours I have to ask - Where is the rest of it? The little bit of html you have posted can not possibly be your entire web page, can it? No doctype tag, no meta tags no title tag, no headings, - no nothing. It would appear that you have extracted this from somewhere and placed it here to isolate your 'problem' for our benefit, but I really think you must have some other code that is messing with this.
-
fetch mysql from database and ouput in a html table
ginerjm replied to bogdaniel's topic in PHP Coding Help
What is the problem here? You have posted this twice yet you aren't really showing us the problem. 1 - you have data retrieved from your db 2 - why is it a multi-dimension array - your query didn't do that. 3 - simply take the data, row by row using fetch, and write out the appropriate td elements arranged in rows (tr) and there's your table. 4 - What permissions? Permissions on a table cell? ?? -
Try using css instead of those repetitive inline styles you are using. How tedious and boring! Then add one that says [css] td { text-align:center;| [/css] AND - what pdf? I see no attempt here to produce a pdf file.
-
Help me resolve a wierd problem in a FORM with radio buttons
ginerjm replied to new2you's topic in PHP Coding Help
I've never seen so many labels, divs, and classes in such a small html form. Whatever are you doing? You have a lable within a label - what is that supposed to be? You have 3 divs at one point for 2 fields. Why? -
This code (your code?) creates a variable called $thumbnail. It does it by concatenating 3 things. So - follow that example and concatenate user id and whatever else you want to include in your filename. Perhaps you should be reading some introductory php manuals/books/references in order to understand basic syntax. What I am showing you is Very Basic so if you can't follow it you will find learning php vary difficult.
-
Gee, I sure hope your guess is wrong mac_gyver because the OP has not once intimated that there is "more code" that he isn't showing us. That would be a real kick in the b*****