431 Posted Topics

Member Avatar for Pablo149

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 …

Member Avatar for mattster
0
134
Member Avatar for Mike Askew

^^ 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?

Member Avatar for Dani
0
250
Member Avatar for RonKevinT.Manuela

Use `||` or `&&` for `if` statemets (OR/AND are for SQL) if(!empty($name) || (!empty($file) && $_FILES["file"]["type"] == "application/docx")){

Member Avatar for RonKevinT.Manuela
0
175
Member Avatar for RonKevinT.Manuela

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 …

Member Avatar for mattster
0
189
Member Avatar for gampzz

`session_start();` at the top of your page. You can't set/use `$_SESSION` variables without that function being called.

Member Avatar for mattster
0
944
Member Avatar for davy_yg

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) …

Member Avatar for mattster
0
300
Member Avatar for DistantGalaxy

Welcome! BTW: rally like your username! And it's 100% because you haven't given us reason to think anything else, yet.

Member Avatar for happygeek
1
152
Member Avatar for VShaw12

# **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 …

Member Avatar for mattster
-5
236
Member Avatar for mcdczzz

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 …

Member Avatar for mcdczzz
0
153
Member Avatar for radostin.angelov.370

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 …

Member Avatar for mattster
0
323
Member Avatar for bolfescu

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.

Member Avatar for mattster
0
803
Member Avatar for recurlyfred
Member Avatar for riyaz123

How far have you got? What have you done/tried already? At least make an effort.

Member Avatar for mattster
-1
65
Member Avatar for cgeier

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 …

Member Avatar for Reverend Jim
0
149
Member Avatar for Ahmed_53
Member Avatar for davidkilimanja
Member Avatar for aderene12

Hi there! PHP is an epic language (and my favorite), so can't wait to see you in the PHP forum!

Member Avatar for mattster
0
79
Member Avatar for xerl

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.)

Member Avatar for mattster
0
138
Member Avatar for Tycellent
Member Avatar for faultybits
Member Avatar for Mat_1
Member Avatar for HuePig
Member Avatar for mattster

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 …

Member Avatar for mattster
0
348
Member Avatar for mitchell.schols

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 …

Member Avatar for mitchell.schols
0
121
Member Avatar for Pablo149

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.

Member Avatar for AleMonteiro
0
382
Member Avatar for khurram123

> Thanks for your Feed back. *Please mark solved if @Taywin has fixed it and give him some credit*

Member Avatar for mattster
0
225
Member Avatar for chrisde100
Member Avatar for SC7639
Member Avatar for Linda Schrier
Member Avatar for sckret Benji
Member Avatar for siddiquedu

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 …

Member Avatar for siddiquedu
0
223
Member Avatar for Warrens80

> 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 …

Member Avatar for veedeoo
0
250
Member Avatar for sushmaja.arumalla.9
Member Avatar for hanspeare_1

`<?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.

Member Avatar for hanspeare_1
0
4K
Member Avatar for light_yagami

**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 = …

Member Avatar for Acurapassion
0
713
Member Avatar for Alexsmash
Member Avatar for almostbob

> I am expletive 99% of the time. I would never have guessed lol, and so glad you're not banned!!

Member Avatar for mattster
1
349
Member Avatar for accra

Why not use this: <iframe marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&amp;geocode=&q=&amp;ie=UTF8&om=1&amp;&s=AARTsJpQqM3ktaXD4q9ItwThgIRSOtr4zg&ll=50.954966,0.493012&spn=0.018615,0.021458&amp;z=9&iwloc=A&amp;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 :)

Member Avatar for accra
0
433
Member Avatar for iqra aslam
Member Avatar for mathiaslisborg.jakobsen

**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 …

Member Avatar for Mocabilly
0
360
Member Avatar for mattster

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!! …

Member Avatar for mattster
0
359
Member Avatar for nikunjgupta01

^^ 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 …

Member Avatar for diafol
0
140
Member Avatar for gbwust
Member Avatar for stokie-rich
Member Avatar for Aish_14
Member Avatar for Aish_14
0
81
Member Avatar for Web_2

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*

Member Avatar for mattster
0
179
Member Avatar for bolfescu
Member Avatar for mattster
0
154
Member Avatar for Brandon_7

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

Member Avatar for mattster
0
1K
Member Avatar for khizer03

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 …

Member Avatar for mattster
0
357
Member Avatar for RonKevinT.Manuela

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.

Member Avatar for RonKevinT.Manuela
0
135

The End.