- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 163
- Posts with Upvotes
- 112
- Upvoting Members
- 41
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 2
107 Posted Topics
Re: Welsh saying: *"Benthyg dros amser byr yw popeth a geir yn y byd hwn"* TR: Everything you have in this world is just borrowed for a short time Attrib: https://www.walesonline.co.uk/lifestyle/fun-stuff/24-beautiful-welsh-proverbs-sayings-9299776 | |
Re: Just checked-in out of interest after a long time away. Glad to see a lot of old friends still active here. Then I came across this post. It upset me a bit. Daniweb was the sun in my very dark days. I think a lot of us gained so much … | |
![]() | Re: [https://www.daniweb.com/programming/web-development/tutorials/499320/common-issues-with-mysql-and-php#post2183865](https://www.daniweb.com/programming/web-development/tutorials/499320/common-issues-with-mysql-and-php#post2183865) Item #6 'Twas an old post of mine, possibly still useful. |
Re: Sorry, bit late with reply. Laravel used to be really lightweight, easy to set up and go. It's still a great product but as it's continued to develop, so the learning curve has increased. If you're looking to develop an MVC, then it has some great positives with regard to … | |
Re: This exemplifies why Trump rose to power. Justify nothing, point to a failed alternative. His supporters understand this They do it to justify supporting him. You will never win an argument with this flavour of wing nut. Well you will every time but they fail or pretend to fail to … | |
Re: With gm here. Use a background image on a div. Example: **HTML:** <div class="pagewrap" style="background-image: url(http://www.example.com/example.jpg); "> <header> <h1><span>The Title of the Website</span></h1> <p><span>The tagline in its full glory</span></p> </header> </div> *The style image could be placed in the css, but I had it in the markup for convenience when … | |
Re: Oh my. Tangled concatenation and escaping. I suggest using a prepared statement. This won't necessarily solve your problem but it will tidy up your markup and code and possibly make it easier to track down the issues. See my old tutorial: https://www.daniweb.com/programming/web-development/tutorials/499320/common-issues-with-mysql-and-php | |
Re: Things still inordinately slow wrt threads. Anything wrong? | |
Re: Hi P! Wondering if you'd pop over again :) Nice to hear things going well for you. I pop in maybe once a month these days, Cheers diafol (I deleted my account - he was an a***hole!) | |
Re: Have a look at the competition: http://wowslider.com/demos.html | |
Re: Why do you need to avoid aggregate functions? What data are you trying to pivot? No info supplied so it's v difficult to help you. | |
Re: The server will store "session cookies" and check against that. It doesn't matter if you do from accessible to limited access pages. Every page should have a session_start(); usually at the top of the page before any other output. Then if it's a limited access page... session_start(); if(!isset($_SESSION['login'])){ header("http://www.example.com/home"); exit; … | |
Re: The mind boggles a bit. You can build forums and blogs but can't build a simple website? You think people will want to buy your admittedly not very good scripts? Bit confused here. You can't use theme forest etc due to strict moderation? You can self host i suppose. Use … | |
Re: Depends how you are storing the data. If a person has to log in then you search for the users id in the table. If it doesn't exist, add the record, if it exists, edit the record. There are queries that will do this in one go. If you do … | |
Re: This is like a menu submenu system... https://www.daniweb.com/programming/web-development/tutorials/499320/common-issues-with-mysql-and-php#post2183865 Item #10 | |
Re: I set up my own webdev business - full stack LAMP development. Never took a paid course. You build things up incrementally over years, learning the limitations and foibles of each technology and language, while trying to keep abreast of new developments and ensuring backwards-compatibilty. CSS and HTML are pretty … | |
Re: Like previous iterations, too many hidden features. How to do this or that should be obvious eg esc for full page editor. Not that intuitive. Hate trying to get to a post from the forum listing. Every time I end up on the last poster's profile. Grrr | |
Re: Over here we have a history of deliberately spoiling ballot papers as a means of protest. Would the machine not allow this? Or would there be an option, something like "none of the above arseholes" . | |
Re: We can't copy and paste screenshots in order to test your code. Please paste your code | |
Re: Probably best to start your own thread. A 12 year old well dead thread ain't going to attract much attention. Seeing as you also posted this to stackoverflow: https://stackoverflow.com/questions/56817045/using-crystal-report-with-php Let us know if you have not got a solution in case we waste our time trying to help you and … | |
Re: You are duplicating HTML fields instead of setting them up as an array: <td><input type="text" value="<?php echo $row['student_id']; ?>" name="student_id" ></td> <td><input type="text" value="<?php echo $row['fname']; ?>" name="fname" > Try this: <td><input type="text" value="<?php echo $row['student_id']; ?>" name="student_id[]" ></td> <td><input type="text" value="<?php echo $row['fname']; ?>" name="fname[]" > But then unfortunately, … | |
Re: OK for this you need to have a new table. Let's call it game_images for now. You will need a minimum of three fields: id (pk) , game_id (fk), filename. To keep it as simple as possible we'll assume that all your game images are stored in the same folder … | |
Re: <?php session_start(); if (!isset($_SESSION["username"])) { header("userLogin/?notloggedin=true"); //may need to use absolute or different relative address exit; }elseif($_SESSION["user_group"] !== 'admin') { header("whateverPage/?notadmin=true"); //may need to use absolute or different relative address exit; } //carry on with showing the page if logged in and admin ?> | |
Just wondering how DW is doing re posts. I pass by from time to time and peruse the webdev forum. Apart from code snippets from Dani, I see very little new stuff. Am I missing something? Is it just that forum that's showing old posts? Even when I turn off … | |
Re: Is that it? No code? Show your relevant code and on which does this happen. | |
Re: Making your home pc visible to the outside world can be a worry. See this guy for some great discussion https://www.quora.com/Can-I-host-my-own-website-with-my-own-computer-How-would-I-go-about-doing-that | |
Re: I'm assuming mysqli query is returning false, hence the boolean msg. | |
Re: What type are your users? Causual browsers or registered users? Both? This can direct your solution. If you have registered users, then DB storage would be the preferred method, as users can then pick up their preferences from any device as long as they're logged in. If you have causual … | |
Re: As webmachine states send the form to one file and then send data onwards from there once everything has been validated and cleaned. If you need the data to perform a few procedures, you can do this via includes. For example... //do validation on POST vars if(!$validate) header('file0.php?err=1'); include 'file1.php'; … | |
Re: Tun712. This whole project sounds like a nightmare. One you should decline, in my opinion. A three month job for a highly experienced one man band is very ambitious. Also for this type of work with a custom built interactive shop, I would expect a fee in excess of £15k. … | |
Re: How about you repost your code as a proper code block? | |
Re: HG has summed it up succinctly. The bit I agree with most is... "I've given up caring". It seems very little has happened in terms of domestic policies since Breakshit was announced. Either things have been slipped in during big Breakshit news so that they fly under the radar, or … | |
Re: I'd worry more about the sql injection that you've opened yourself up to. Either sanitize or use a prepared statement. Sorry can't examine your code further at the mo other than you must validate all your user input data. The services data seems to be the wrong data type. Are … | |
Re: JOINS in SAP HANA, from what I've read, are pretty much standard SQL affairs... SELECT [alias1.field1, alias1.field2, alias2.fieldA...] FROM [table1] AS [alias1] INNER JOIN [table2] AS [alias2] ON [alias1.joinfield] = [alias2.joinfield] BTW - don't put in the square brackets - they're just there to denote placeholders / examples! | |
Re: I am surprised at this thread. We were here around 4 to 5 years ago. SEO /search results was the issue then and it's the issue now. I remember reformatting 1000s of posts to make it more Google-attractive. Don't think it worked. The forum format may be dead in the … | |
Re: Retaining values across 'pages' requires storage. The usual method is session data usually stored in variables... $_SESSION['somename']. | |
Re: You can skin this particular cat in many ways. here are 2 examples, neither of which I've given much thought to - so there's probably a few better ways out there. Anyway... <?php $inputArray = [ [ 'SupSKU', 'MfrSKU', 'Cost' ], [ 'A', '11742-4', 47.25 ], [ 'B', '11742-4', 283.5 … | |
Re: The reason you did [not] have a response could be that you did not give any useful information. Can you show any code? Screenshots? Anything? What other plugin do you have installed? | |
Re: Looks a bit complicated to me, so I'd do something like this... $raw_string = "´´´´Hello´´´´ !!!!Really??!!!! ´´´´nice´´´´"; //string to parse $tokens = [ ["/´´´´/", "\n<pre>\n\t<code>\n","\n\t</code>\n</pre>\n"], ["/!!!!/","<b>","</b>"] ]; //[replacement text, open tags, close tags] $the_string = $raw_string; //could do something to it here foreach( $tokens as $tk ){ $the_string = preg_replace_callback( … | |
Re: Quite HG. A good place to start: google "array functions php". | |
Re: Great some free code! Er, was there a question? | |
Re: What's the point of the balance AND the wallet? Why not pass any compo straight to the wallet? Could you do away with the balance? The way I see it, you just need a transactions table with something like ... [ user_id | amount | transaction_type | trans_datetime ... ] … | |
Re: This is way above my understanding. Would you be able to host java and php servers e. G. tomcat and apache together? As in port 8080 and 80? Or am I missing the whole point? | |
Re: Mentioned this issue about ie and Edge here https://www.daniweb.com/community-center/daniweb-community-feedback/threads/518370/android-issues-with-hamburger-menu-and-buttons | |
Re: Ok sounds like your tables may not be normalized properly - apologies if this is not your case. For example, your teams should be given a unique identifier or `id` (Primary Key) in their own table. Any reference to teams outside your teams table, must not be on the `id` … | |
![]() | Re: What have you tried? You seem to have a set of related tables. How about writing out a plain language sentence or two on how you want your query to manipulate the various bits of data. I often find this helps to get my head around things. |
On my android device I get no dropdown menu at all from the hamburger. Chat and profile image on the titlebar work fine as does the main dw logo. Also while creating this post. The continue button on the first screen (deciding forum and thread type) was unresponsive. As does … | |
Re: You need to understand the various parts involved with the card number. Type of industry / industry ID / issuer ID / personal account + checksum or if it doesn't need to be "real", use a random number generator (12-19 digit). I'm assuming you just need a javascript implementation of … | |
Re: Few ways to do this. You can hide the questions and then show them with a button click. You can get questions from the server via Ajax and insert them. If it's just bog standard questions a hide and show may be best. | |
Re: ui.item.drecord.name.fname `drecord` from your json is an array ([...]) - so you need an index - and I don't see `fname` as a property under `name` - so I changeed it to `surname` - perhaps this would work... ui.item.drecord[0].name.surname From your example... { "drecord": [ { "name": { "surname": "Aaliyah" … |
The End.