-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Everything posted by ginerjm
-
PHP 8.1 How can I stop warning messages from displaying?
ginerjm replied to SLSCoder's topic in PHP Coding Help
Taking the easy way out..... Not a typical programmer's solution to things. -
Using submit to open a new page in a new window
ginerjm replied to ginerjm's topic in PHP Coding Help
Yes I did forget. Thx. -
I know it's a piece of cake to use an anchor tag with the target attribute to open a new window for the href referenced. I want to do that using an input/submit tag instead of the anchor but can't remember/figure it out. Am I forgetting something or can it not be done. And if not, how would you accomplish this task?
-
I like the idea that it could be a school assignment but the OP did say that he was a coder previously and is now returning. Sounds more like a promise that is being more trouble than he thought. But he clearly does not make his current position/status clear. He stated that he 'just wanted to know the procedure'. Doesn't sound like a coder to me. I figure this topic will go inactive very soon.
-
"is there any web Script" ? Whatever are you trying to ask? Are you thinking of writing an app (which sounds new to you!) while under a deadline? If so - good luck with that!! You sound to me like someone who has a whole lot to learn and that doesn't happen at the drop of a hat.
-
Not following some of your English. I assume that you know HTML, CSS and JS since you didn't answer those queries. And you have a development area. But - have you designed your own proper database yet? What version of PHP are you running? Makes a difference if you haven't coded in a long time. (Suggestion - use the PDO interface for your db work. Much easier than using MySqli) My suggestion - start with the db design for your signon table. Then design the login form/script that runs it and processes the input. Then write the query to interact with the signon table and test it out. And lastly add the necessary code to make that page safe to use and not allow non-users to get thru it. I think just doing this will warm you up and get you back into coding and bringing you up to the way it's done in the 21st.
-
What about all of my other questions?
-
This forum is helpful to those who are attempting to write their app/code. Are you planning on doing that or are you looking to hire someone? If the latter, there is a different forum here for that need. And if you are planning on writing this yourself, what do you know how to do? Write HTML? CSS? JS? I assume that you know PHP since you are posting here. So do you have a full set of tools at your side? And do you know how to design a proper RDBMS and how to write the necessary queries to update it and retrieve data from it and display it? And do you have knowledge of the necessary PHP security functions to protect your data and your app?
-
Sum the column data based on the from month and to month selection
ginerjm replied to Senthilkumar's topic in PHP Coding Help
You need to do some reading up on RDBMS (google it) in order to learn that. Stop thinking about spreadsheets and think more about what your data is and how you should keep track of it. Someone here might offer some tips but I'll leave that kind of help to others. -
Sum the column data based on the from month and to month selection
ginerjm replied to Senthilkumar's topic in PHP Coding Help
He is telling you that you have CREATED a database that is more of a SPREADSHEET THAN A DATABASE. You are not doing is correctly. -
Sum the column data based on the from month and to month selection
ginerjm replied to Senthilkumar's topic in PHP Coding Help
That is a whole new post. So - what is the coding issue now? PS - you should never include a "total" amount on a record that contains all the details that comprise that total. It should always be generated by a query. -
Sum the column data based on the from month and to month selection
ginerjm replied to Senthilkumar's topic in PHP Coding Help
I don't see how your math works for your 2nd and 3rd example. 23-05 to 23-05 should sum one month only. And 23-01 to 24-02 should sum all of 23 plus the first 2 months of 24. I am also assuming that your use of the word 'two' s/b really 'to'. -
(Advice) - Storing price break points in database
ginerjm replied to Adamhumbug's topic in PHP Coding Help
I would have a table that shows the max quantity for a certain price value. Then query looking for records with their quantities > than your current order, in quantity order and limit to 1. Now you have your price value. Then have a table or function that converts your currency amount to what you need -
Since I don't understand what you are trying to show us (and ask us about), I have to ask this. Are you really trying to insert an array into a table row? Or are you trying to insert the contents of an array into individual fields of your table that exist on a single record?
-
Problem sending formdata to php using fetch
ginerjm replied to eaglehopes's topic in PHP Coding Help
That code is retrieving data from the user. Definitely not doing any php work though. -
Problem sending formdata to php using fetch
ginerjm replied to eaglehopes's topic in PHP Coding Help
And stop using $_REQUEST. Use either Post or Get. And I don't see the use of any 'fetch' let alone a query. -
Script to change website logo and landing page
ginerjm replied to Bob92404's topic in PHP Coding Help
Why is your goal to alter the style sheet and not just php to alter the html that is displaying these items? Or - your index page could do a quick decision for you and load a unique page based on that URI value which has the desired items in it. -
This could have been resolved about 10 posts ago if you were clearer to begin with. Oh, well... Enjoy
-
So all you are doing is showing a webpage and you want to print it as a pdf. If you are storing everything in a div and you use the CSS that was recommended earlier you s/b all set
-
So you are NOT using html, but PHP
-
I guess I don't know what you want to do. I"m guessing you want to PRODUCE an output. that is formatted with special pages, then content pages and THEN you want to print it to a PDF print driver as your final document. I would suggest that you go back to fpdf and practice. Much easier once you learn it. Then you can do anything you want using your html to call the FPDF functions that will generate your actual output lines. I used it quite a bit at one point. Not lately tho, but not afraid to use it if it comes up in the future
-
So you are reading a pdf document. You said that this has "some divs". Are those really divs, as in html/css div tags? Or are you trying to say that you have divided the page up into sections when you prepare it for print?
-
HTML does not print well on paper.
-
What is displaying the page? HTML? ? FPDF? If HTML then your css would handle the page breaks for you. Read up on that. If it is FPDF (or some other pdf generator) you would have to do with your php(?) code that is outputting the display