Everything posted by smithmr8
-
a Cleaner/Quicker way
You could actually simplify what I've done even more.. but I'm way too tired to do it. Should help you out with the right idea.
-
a Cleaner/Quicker way
Something like this should work better. Might have to tinker with a few bits to get it to work.. //This should be changed to work out the number of links $num_links = 3; # Get users links for ($i = 0, $i < $num_links, $i++){ $links[$i] = $row['link'.$i] } # Types of links $findfacebook = 'facebook'; $findtwitter = 'twitter'; $findyoutube = 'youtube'; #Work out type of link for ($i = 0, $i < $num_links, $i++){ $facebook[$i] = stripos($links[$i], $findfacebook); $twitter[$i] = stripos($links[$i], $findtwitter); $youtube[$i] = stripos($links[$i], $findyoutube); } #Select the link image for ($i = 0, $i < $num_links, $i++){ echo '<a href="'.$links[$i].'" >'; if ($facebook[$i] !== false){ echo '<img src="images/facebook.png"/>'; } elseif ($twitter[$i] !== false) { echo '<img src="images/twitter.png" />'; } elseif ($youtube[$i] !== false){ echo '<img src="images/youtube.png" />'; } else { echo '<img src="images/website.png" />'; } echo '</a>'; }
-
Fontacity.com
Fact, most things have already been done. The point is doing something, but doing it better. Yeah, dafont is the absolute **** for font finding. But alot of the fonts on there are pure crap. A site which takes the best the free font world has to offer and showcasing it is not a bad idea. Look at the internet, everything's been done. It's just re-invention / re-imagination of the same things.. over and over.
-
Fontacity.com
To be honest, I think calling it fontacity (as in audacity) would sound / look better. ;-). Much more of a ring to it
-
Will you be buying an iPad?
I like them, but would never waste my money on one. They're more of a gimmick than a realistic product. Not as useful as a laptop, but twice as much. Hmm.. Then again, if I were rich.. would get one and mount it in the bathroom so you could watch TV whilst on the loo. .
-
How much PHP>?
Correction, it stands for "Structured Query Language". .
-
Swapping server and charging?
As you're the one pulling the strings, so to speak.. then you can't really expect them to pay for it. It's just the price of providing hosting .
-
snappad
Yeah, I think I know a couple of ways I can get round that. Just need to get it looking decent. Always the hardest part.
-
snappad
Username: test@test.com Password: test
-
snappad
Working on an enhanced version, here. Want it too look as simple as possible, which is the reason for the basic menu. Thinking that in the white space underneath "snappad", might stick a 'random release'. Then the page content will be in the area it used to be. In the process of adding the functionality of a login page to it.
-
snappad
I'd already validated it, so you could enter anything higher than 1, just forgot to do the same for the other way round . Probably won't keep it like that, but for now it'll do. Try break it now . No worries, hehe. Now... to get on with my list of changes.
-
snappad
Yeah, it will be a lost more advanced when it's finished. . It's just a shell atm really.
-
Need help with SQL Query to find product review
Glad it worked
-
How much PHP>?
Not really, tbh. There are basic/simple steps you can take, e.g. Escaping characters ect.. Normally it isn't too bad. It's simple if you work and work on it . You won't pick it up straight away, but if you keep on at it.. you'll soon know your way around the basics. .
-
Review quickly please...
Looks very good . But would have to agree, think you're name should be a touch bigger.
-
Need help with SQL Query to find product review
if (mysql_num_rows(mysql_query($reviews_query_raw)) == "0"){ echo "Be the first to review this product!"; } else { //List out reviews... }
-
How much PHP>?
Uhm. You'd need to know (roughly): How to connect to a MySQL database - ie. config files ect.. How to manipulate database content (add / remove / edit content) mysql_query("INSERT INTO.. mysql_query("UPDATE `.. mysql_query("DELETE... How to search/query a database and return results. mysql_query("SELECT... mysql_fetch_array(... while($variable = mysql_fetch_array($query)){ ... mysql_num_rows mysql_query("SELECT * FROM `property` WHERE `location` LIKE %$loc% ORDER BY `road_name` ASC"); Once you know how to do the above, and possibly a touch more, you could build a pretty decent PHP&MySQL driven site.
-
snappad
I think that' done it. Don't have that version of FF installed, but had the same problem in Safari. It works in safari now, so is it working in 3.6.6 ?
-
snappad
Brilliant!! Hehe. Will take a look :-)
-
snappad
Have added a submit button. Doesn't look half bad. Also added "Highest Rated Release" to homepage.
-
snappad
It's on my to-do list . Just wanted to get it setup and working for now. .
-
snappad
Yeah, but then that spoils the asthetics of the site. . Might add one and see what it looks like.
-
snappad
snappad As some of you may know, I'm undergoing a new personal project. It's now working, with a basic functionality in place. Lots more to come, and need to work on the style a touch. Thoughts ? .
-
PHP Quote database
<?php $db = mysql_connect("localhost", "root", "*") or die ("Unable to connect to database."); mysql_select_db("quote") or die ("Unable to select database."); $sql = "SELECT * from quote"; $result=mysql_query($sql) or die(mysql_error()); $quote = htmlentities(mysql_result($result,$i,"quote")); echo "<blockquote>".$quote; mysql_close($db); ?> </body> </html> Try that.
-
onFocusOut problem.
Thanks, will take a look at it