Because it's made of sticky stuff that gets stuck in your clothes
Why can't fish drown?
Because it's made of sticky stuff that gets stuck in your clothes
Why can't fish drown?
Granted, but then it would walk right into you and attack you (meaning you will drown)
I wish I could use a Jedi mind trick
Life is like riding a bicycle: you must keep moving or you'll fall over
When we grew up, I was really good friends with a lad called Chris. Chris was always a gifted mathematician, and at 17 went to Cambridge to study maths.
He carried on to do his PhD, studying the concept of a 4th dimension, of which he was awarded a fellowship and remains in charge of a research team there.
I'll have to ask him what he thinks about all of this aha ;)
Welcome! And wow that sounds pretty cool aha
Hello there!
From Oxford hey? I haven't been back there since the day I left university aha, have you studied there by any chance?
And good luck with all that! ^^ agree with @Dani - PHP wins every single time.
Hello there!
Welcome! Good luck with learning C! ;)
goes to paying for that new football stadium
Luckily we dont get thet problem in the UK aha
I've always found that my degree was the making of me. I was catapaulted into a very nice position in financial development, all because I went to a top university.
Letters do not mean you are better, they are just recognised proof you can do something. In formal education you rarely pickup bad habits and learn from people who really know what they're doing. Employers instantly recognise you are properly trained with a degree, instead of a bedroom learner having to try to prove that he is equivilant to those with a degree.
So yes it was expensive, but a 6 figure salary within 6 months of leaving soon catered for that.
Or this will do the same thing:
<?php if(!not_null($result[0]['Heamogram_26'])){echo "disabled='disabled'";}?>
<?php if(!not_null($result[0]['Heamogram_26'])){echo "disabled";}?>
I know it's already been said, but I really think it should be mentioned again.
*id,name ,title,age,profile_picture*
{ 1,"Bob","CEO",34,"bobs pic.jpg" }
{ 2,"Bill","Developer",27,"billpic.png" }
<?php
/* Connect to DB and select employee's data */
echo "<img src='images/employees/".$row['profile_pic']."' />";
?>
Storing images in a database is a bad game you don't want to bother with. It is SOOOOOO much easier to handle and manipulate images when they are stored on the server. Also, images make big fat databases, and databases are usually given less space on a hosting account.
^ Agreed :)
BTW - a little off-topic pointer:
Because if(){}
looks to see if a statement is true, and will do an else
if not, you do not need == true
(PHP will do this automatically)
So this:
if(mysql_connect("$dbhost", "$dbusername", "$dbpassword") == true)
Will do the same as this:
if(mysql_connect("$dbhost", "$dbusername", "$dbpassword"))
Little programming trick for you ;P
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
Welcome
Welcome!
Oh the days of high school and education aha - very long time ago!
Honestly the stuff we used to get up to at uni lol....
At The Moment Im Busy With An Important IT Project,
What sort of project are you doing?
If you want it done right, do it yourself.
Probably not to be honest, but maybe.
BUT YOURS NOW LOOKS LIKE IT'S WORKING!! YAY!!
So you have a PHP-based website, and you want a link to display an e-paper?
Very confused here, your post makes no sense at all.
I think it just so happens that the Cerulean contains some sort of overwrite for the icons, that being the only reason why it worked.
BTW: the reason I say to include the origional bootstrap file is that http://bootswatch.com/cosmo/ do on their demo!
This is because you are only inluding the "Cosmo" overwrites to bootstrap.
Try including this file as well: http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css
So lines 9-11:
<!-- Bootstrap -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link href="css/cosmo.css" rel="stylesheet">
This may work, just experimenting here
Using what the guys have said about obtaining the $radio
variable:
Solution to your version
<input name="xyz" <?php if($radio == 0){echo "disabled='disabled'";} ?> />
Neater version
<?php
$input = "<input name='xyz'";
if($radio == 0)
{
$input .= " disabled='disabled'";
}
$input .= " />";
echo $input;
?>
Okay so first things first, any SQL/PHP error messages at all?
Have you checked that your databases are set up exactly the same, there are no differences in structures etc so they perform exactly the same.
If they are identical, is it because this new location doesn't support or is having troubles with the mysqli_real_escape_string()
?
To me, if you have to copies of the same code (in different locations) and one fails to work, it means the location itself is causing the error or something that has to be setup for each location (databases). These are really the only things that change between the two, so are the probable cause of error. (Assuming no other error messages)
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!! :D
You have to learn the rules of the game. And then you have to play better than anyone else.
~ Albert Einstein
Hi there! :)
phpBB 3.0.12 is (and can have mods to make it even better) pretty good at stopping spam, so maybe still worth looking at.
Other free ones could be SMF or MyBB, but really phpBB is the most established and is known to handle much larger forums.
If you're really despirate to prevent spam, pro packages like IPB are epic for both spam, updates, style and features.
Can we see the code you've made, errors you're getting?
Maybe because all of your code has spanish comments/link, or it's just me, but I don't really understand what youre trying to achive here. Please detail what your application is, and exactly what you need help with (i.e. displaying data from a database)
Help us to help you, and I hope we can sort you out,
Matt
Hi All,
Ive noticed something that maybe prompts discussion:
Large social media sites like Facebook have a notificaton settings page, where the user can select what notifications they get emails about and which ones are just displayed when you login to the site.
Instead of just unsubscribing or 'the occasional community related email', maybe a more specific list of things we get emailed about could be used?
Only another one of my useless brightspark ideas ;)
Matt
This is because the font library is being included from a remote location, easily solved by including a library hosted on your own site :)
Great, I'm so happy that I've got everyone thinking!
I really like the sound of how we can now really use this idea (and tags in general) so great work guys and girls and can't wait to see what happens next!
You mean something like TinyMCE or are you aiming for more of an advanced Wordpress style drag and drop page builder?
So I take it your redirect works alright, so all you need to do is:
<?php
$sql = "SELECT * FROM database WHERE ... "; #Query
$query = mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_assoc($query);
?>
<html>
<body onload="window.print()">
<h1>Order #<?= $row['orderID'] ?></h1> <!-- 'orderID' being the column in your DB -->
<hr />
<p>Some other content...</p>
</body>
</html>
Use a really simple HTML file to output the results, and the same idea works if you want to display a print page on your submission page. Just insert this code beneath the stuff you already have.
I'm not surprised.
Thanks people, have also posted the new tagging idea
Following our recent discussions about mandatory tags, why not force users to use tags, but also help them along..?
Say I create a discussion with the title "Sharing a variable between PHP scripts on same page"
Something like Javascript would automatically place into the textbox: sharing
variable
PHP
scripts
same
page
So all the program will do is remove spaces and common words like "a" etc, just making things so much easier for all with next-to-no effort/change to the users?
Just an idea?
I've noticed it too, not sure if they'll bother to fix something like that though..?
@diafol I actually really like that!
Well exactly people, because most people that have such questions turn away because there is no immediate place to look for such a specific forum.
Yes I agree, CSS/HTML/PS all go hand in hand, but to the average forum user DaniWeb simply does not provide for PS/Design questions. As a result, DaniWeb looses traffic to other forums :'(
But I can quite understand where you're all coming from on finding somewhere to put it all and how Daniweb is already established as a dev forum (but Google was established as a search engine - what's stopped them branching out)
So I think it's a case of 'do we want to take the chance to accomodate another area of technology (and a wider audience)'? Which is someone else's call to make.
As for tagging I agree, but I've had an idea which I'll post shortly.
Hi All,
I was just wondering about an idea that might give Daniweb against other forums, and would suit a lot of us as developers. What about another set of forums including UI/UX design, working with Photoshop, Illustrator, Flash etc
As a developer, I am hopeless at design, and maybe this is another branch Daniweb could provide for: graphics and that sort of thing?
Only a random thought - all depends if the community (administrators) would want to add this to the weath of information that is our home ;)
Welcome!