431 Posted Topics
Re: A good portfolio shows that you are a good web developer who can produce decent projects suitable for the task. It really depends on what you want in terms of business. I, personally, would have a rounded portfolio showing I can produce both corporate and creative sites etc. However some … | |
Re: ^^ Seen this alot lately, how can you guys be appearing lower than me with only 300+ posts? Did Dani make a change allowing more people to edit their user titles lateley then or something? | |
Re: Use `||` or `&&` for `if` statemets (OR/AND are for SQL) if(!empty($name) || (!empty($file) && $_FILES["file"]["type"] == "application/docx")){ | |
Re: 1. `rand()` will return a random number so your query will be: `'uploads/12324')`. You need to put a file extension after it. 2. Also, don't use this, because you might get two image with the same random number, and they'll overwrite each other. You can't have `$variable.'.$variable` etc., because it … | |
Re: `session_start();` at the top of your page. You can't set/use `$_SESSION` variables without that function being called. | |
Re: So you need a PHP file that it's going to send to, if the 'delete' submit button has been clicked, and use the checkboxes as an array: <input name="checkbox[]" type="checkbox" value="<? echo /* row id */ ?>"> <input type="submit" name="Delete"> if(isset($_POST['Delete'])) { $deleted_id = $_POST['checkbox']; $num = count($deleted_id); if (count($num) … | |
Re: Welcome! BTW: rally like your username! And it's 100% because you haven't given us reason to think anything else, yet. | |
Re: # **If I were you I'd cancel right now!** # Frameworks are huge things to learn from scratch, to the most elite of developers. For you not to have even Googled what it is, suggests you are in no way capable of this task. Even if you do manage to … | |
Re: Try using an array and adding to it, that way we can check if there's a value already matching it. <?php $result = mysql_query("SELECT category FROM inventory"); $output = array(); while($row = mysql_fetch_array($result)){ $cat_array = array($row['category']); foreach ($cat_array as $value){ if ($value<=1 && !in_array($value,$output)){ # If $value is already in … | |
Re: Ideally (for good practice PHP) `$_SESSION['$dataArray']` should be `$_SESSION['dataArray']`. No need for a `$` sign within a variable text. However I'm not sure this is your problem, saying that the variable is undefined suggests an error in defining or add a value to the variable. Are you certain that you … | |
Re: Use `\"`, so `echo "Quote: \"Hello\" ('mattster' of DaniWeb)";` will return: > Quote: "Hello" ('mattster' of DaniWeb) In context for you: echo "<input type='submit' name='submit' id='submit' class='btn btn-primary' value=Cancella onclick=\"window.location='delete_article.php?id=".$row['id']."';\" /></p>"; Still a good idea to neaten your code though. | |
![]() | |
Re: How far have you got? What have you done/tried already? At least make an effort. | |
Re: You might have a question asking for a solution with jQuery version 1.9.X, for instance. But then when someone Googles the same problem 2 years later, when v3.1.0 is out, there might be a much better solution. This guy would resurrect the post with a modern solution, so future Googlers … | |
Re: Hi there! PHP is an epic language (and my favorite), so can't wait to see you in the PHP forum! | |
Re: Hi there! Maybe start out with something like [C#](https://www.daniweb.com/software-development/csharp/61) (it's nice and easy for beginners to get going with and you can build a decent application very easily with WinForms etc.) | |
Hi There, This comes under a few forums on DaniWeb, so I've guessed and posted it here... I have two computers, both connected to the internet and running Windows 7 (Home Premium + Professional). One is my main one, the other is one I do not use. If I installed … | |
Re: Head to something like [Magento](http://www.magentocommerce.com/download). You can setup your products on here and intergrate it with PayPal etc. so that you have your own eCommerce shop. You can customise it [here](http://themeforest.net/category/ecommerce/magento). As for a widget, you can design your own little image bannar or something, and just link it through … | |
Re: w3schools go a great set of certifications, but as mentioned, by no means essential to work. Instead of Thumbstack, [envato](http://www.envato.com/sites) makes a forturne for its authors and developers. | |
Re: > Thanks for your Feed back. *Please mark solved if @Taywin has fixed it and give him some credit* | |
Re: Are you sure `$_GET['id']` is set and is the correct value, so we have a valid `$query_UA `? I think that `<a href="member_profile.php?id=' .$row_UA['id']. '">' .$row_UA['username']. '</a>` is being echoed successfully (as logout is visible), but there is no value for `$row_UA['username']` so you end up with: <a href="member_profile.php?id="></a> This … | |
![]() | Re: > here are many fine looking geek girls I found that at uni - I was very *very* happy where I was for 4 years ;p But at first I had exactly the same problem as @Diafol... My last year was the most stressful thing of my life, having been … |
Re: Example? Source code? Links/demos? Come on try a bit. | |
Re: `<?php print '<img src="uploads/'.$session_id.".".$ext'" />' ?>` A file extension would be a good idea, so assuming (as @pirateas has said) `$session_id = $student_id`, and you have an image saved in `uploads/{student_id}.{extension}`, all of that looks fine. | |
Re: **To transfer the data:** After redirect (probably using `header("Location: lala.php");`) you will need to use sessions. At the top of your code above and on `lala.php`, place `session_start()`. ## Repalce this while($row = mysql_fetch_array($result, MYSQL_ASSOC)){ echo $row['username'] . " " . $row['userrole']; echo "<br>"; } ## With this while($row = … | |
Re: > I am expletive 99% of the time. I would never have guessed lol, and so glad you're not banned!! | |
Re: Why not use this: <iframe marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&geocode=&q=&ie=UTF8&om=1&&s=AARTsJpQqM3ktaXD4q9ItwThgIRSOtr4zg&ll=50.954966,0.493012&spn=0.018615,0.021458&z=9&iwloc=A&output=embed" frameborder="no" height="500" scrolling="no" width="500"></iframe> *Taken from [here](http://google-latlong.blogspot.co.uk/2007/08/youtube-style-embeddable-maps_21.html)* Replace the `&ll=50.954966,0.493012` bit with `&ll=<?php echo $row[1].",".Row[2];?>` Then just echo out all of your other information and variables as normal :) | |
Re: **First Point:** Well what the hell am I meant to solve if I don't even know what the error message is? `echo "<option><?php echo htmlspecialchars( $Player[ 'Name' ] ); ?></option>";` isn't good enough my friend. **Second Point:** Can you provide some source code of `report.php` and give us a bit … | |
Since my childhood, I've anticipated nothing more than an addition to the StarWars saga, and episode VII is a dream come true!! https://www.youtube.com/watch?v=z7CtvaartRY https://www.youtube.com/watch?v=Snph22qSUMU What are our comments/thoughts on the new film(s)? Personally I can't wait, and hopefully with Disney's money and the latest technology this film should be incredible!! … | |
Re: ^^ As he's posting in the PHP forum hopefully its PHP he's using lol ;) <?php function YourFunctionsName ($string) { if (substr($string, -1) == ',')) { echo $string; } } ?> You can use regex, but it would look like `if (preg_match('/,$/', $string))` and this to me is a bit … ![]() | |
Re: you dont get that problem here: http://jsfiddle.net/g77s2egj/ | |
Re: Are your 'textboxes' in different rows or columns? Do you have 10 rows, each with a 'textbox' in? Please provide information to how your databse is structured, as it is key to how we write the script to solve the problem *Matt* | |
Re: Try using the JS forum mate. Will get alot more help then. | |
Re: Use a javascript/jQuery function: [Click Here](http://stackoverflow.com/questions/5259540/jquery-image-hover-with-swap-and-fade) You will just have to adjust the selectors to suit your needs | |
Re: Have a go with [Bootstrap](http://getbootstrap.com/) to get your popup. Then you need some PHP (and MySQL) to set out your database, insert and extract from it. You want a [PHP server](https://www.apachefriends.org/index.html) and a MySQL database setup to hold a column for each piece of data you want to store. So … | |
Re: If the file existed in the right place and was filled with correct content, it would display fine. Your code above is unclear, if you are *presumably* wanting to view the content of a file use `file_get_contents($url_to_file);`. You might need to expand on your objectives if you want more help. |
The End.