ndeniche 402 Posting Virtuoso Featured Poster

Besides the above code, consider creating an array or a json object to store the notifications in the notify system. That way the $(document).ready() function is not called in every cycle of the while loop:

<script type="text/javascript">
    var notifications = {};
<?php
// while, if, etc
{
?>
    notifications.push({text: "the name is <?php echo $name; ?>", stay: true});
<?php
}
?>
    $(document).ready(function(){
        for(notif in notifications){
            jQuery.noticeAdd({
                text: notif.text,
                stay: notif.stay
            });
        }
    });
</script>

or something like that

ndeniche 402 Posting Virtuoso Featured Poster

Consider changing the code for your <script> tags from php echoes to html. Also, your script includes should be outside of the while statement. Else, they're being included every time the cycle iterates, like this:

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js' type='text/javascript'></script>
<script src='jquery.notice.js' type='text/javascript'></script>
<?php
// ... rest of the code goes here
while ($rows = mysql_fetch_assoc($query))
{
    if($rows['A1_Time']!=='00:00:00' || $rows['A2_Time']!=='00:00:00')
    {
              $a1=$rows['A1_Time']; // time of arrival to a designated 1ST AREA
              $a2=$rows['A2_Time']; // time of arrival to a designated 2ND AREA
              $name=$rows['Name'];
    ?>
    <script type='text/javascript'>
        var name='$name ';
        $(document).ready(function(){
            jQuery.noticeAdd({
                text: ' Name is '+ name,
                stay: true});
        });
    </script>
    <?php 
    }
}
// ... rest of code
?>

That way your code is easier to evaluate and debug.

ndeniche 402 Posting Virtuoso Featured Poster

With the constant growth of NoSQL databases, wouldn't it be convenient if Daniweb had a nosql forum? Maybe not specialized forums like MSSQL, MySQL or Oracle, but a general forum for NoSQL database systems.

ndeniche 402 Posting Virtuoso Featured Poster

There must be some way in which we can improve the endorsement system. I recall the reputation system being flawed a long time ago.

ndeniche 402 Posting Virtuoso Featured Poster

I first met these while doing some courses at codeschool. Maybe that reference helps

ndeniche 402 Posting Virtuoso Featured Poster

other than wordpress.com, yes. This allows you to change several features that you will not be able to change there.

If you have an old version of wordpress, I recommend updating it. If you're migrating your blog from one host to another, wordpress has the functionality for that.

Here's a good place to start with advanced wordpress, and the internet is full with ideas for your blog.

ndeniche 402 Posting Virtuoso Featured Poster

A niche is a specific area in a market. According to wikipedia, it may also apply to ther things.

ndeniche 402 Posting Virtuoso Featured Poster

I think the best aproach may be using a popup message asking the user to fill out a survey before leaving, and loading the survey unto the same page the user is seeing. If the user decides to stay, he'll fill in the survey, else, close the page.

ndeniche 402 Posting Virtuoso Featured Poster

Do you have it hosted on wordpress.com? If so, you should consider moving it to another server, since it will allow more flexibility

ndeniche 402 Posting Virtuoso Featured Poster

I think it's a cool initiative that other web development websites are implementing. It'd be awesome to show off how valued my opinion in certain topics is in the Daniweb community.

I don't think it's a "standard" in the web development comunity yet, but it might become some day, and Daniweb could be one of its early adopters.

ndeniche 402 Posting Virtuoso Featured Poster

Add this:

#navMenu ul li{
    float: left;
}

Since your submenu elements are not floated, they will just overflow all over the place.

ndeniche 402 Posting Virtuoso Featured Poster

First of all, you should get familiarized with mysql_fetch_array, since mysql_fetch_assoc is getting dropped in php5...

Second, check your mysql syntax for any errors. Does $row['dateCreated'] print any value?

ndeniche 402 Posting Virtuoso Featured Poster

I agree with vmanes in that you should post your questions here if you want an answer here. But since i just had some bad news, i could do without all the hassle...

Seems to me that you missed a pair of curly braces {} in the last for:

...
for(int a=0; a<n; a++)
{
    cout<<"\n\n\n"<<name[a];
    for (int i=0;i<size;i++)
    { //HERE
        cout<<"\t "<<num[i];
        cout<<setw(33)<<" = "<<sum;
    } //AND HERE
}
cout<<"\n\n";
system("PAUSE");
return 0;
...

That's why the output was a single grade, instead of the list of grades.

Double check your code, and try to indent it better, so that debugging becomes easier.

ndeniche 402 Posting Virtuoso Featured Poster

here's a simple syntax for using ajax:

function funcName()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","ajaxFile.txt",true); //can be any file that returns a value: php, xml, etc.
xmlhttp.send();
}

You might wanna take a look at jquery. It has a shorter implementation for ajax, easier to use, and it might come in handy for other uses in your scripting.

ndeniche 402 Posting Virtuoso Featured Poster

I think the answer is here:

Please fill out the form below to contact Monotype Imaging regarding our various font license extensions for multiple workstations, servers or enterprise-wide applications. We will respond promptly to all inquiries. Thank you.

ndeniche 402 Posting Virtuoso Featured Poster

A quick google search might be helpful

ndeniche 402 Posting Virtuoso Featured Poster

For future reference, Alt + 7 (or Alt + Shift + 3 on a Mac)

ndeniche 402 Posting Virtuoso Featured Poster

Yes, but I meant on a more global way. Certain number of endorsements on a topic might give you a badge to show off to the whole internet.

ndeniche 402 Posting Virtuoso Featured Poster

Assuming your a.project content is inside your #shownews, you should use $('a.project').on('click', function(e){...}); instead of the click function, since it will only work for the content you load the first time, and is not binded to dynamically created objects.

ndeniche 402 Posting Virtuoso Featured Poster

TextBox1.PasswordChar = "*"

More like = "•", but yeah xD

ndeniche 402 Posting Virtuoso Featured Poster

You could extend the submenu width to make it fit... Oooor, you could wrap the text in the submenu item so it won't overflow from the box by assigning a width to the <li> element

ndeniche 402 Posting Virtuoso Featured Poster

No problem. What i mean is: try to trace every error to its possible origin: check if strings are constructed correctly, check that validations do what you want them to do, etc.

For instance:

Warning: curl_init() [function.curl-init]: Could not initialize a new cURL handle in /home/anonymuw/public_html/form/bootgold.php on line 258

  • warning #1 tells you that curl-init could not be called correctly. It is possible that the $url parameter being passed is not a correctly formatted string. Try printing its contents using echo somewhere in the page.

Warning: curl_setopt() expects parameter 1 to be resource, boolean given in /home/anonymuw/public_html/form/bootgold.php on line 259

  • warning #2 is a consequence of warning #1, since the function that could not be executed returned a false argument, which is the boolean being mentioned.

And so on...

ndeniche 402 Posting Virtuoso Featured Poster

Do a step by step verification. Try printing the output for the variables involved in the error, for instance $url, $shell_loc or $get_url. It is easier to iterate through each warning in order to try to identify any errors. Maybe that helps.

ndeniche 402 Posting Virtuoso Featured Poster

Add a separate file upload to your form, and process it apart from the other one.

Extra 1: you may wanna consider changing some coding habits, like giving your variables names that represent better what they do, so $tmp is $tmp_img and $tmp1is $tmp_event, same for $filename1 and $newwidth1.

Extra 2: explicitly telling your file input in the form that calls this php which file types you allow for upload may save you some code lines in the file type validation.

ndeniche 402 Posting Virtuoso Featured Poster

can you be more specific "Writing any test in any screen" do you mean on the console.. or?

I think he means "Writing any text in any window"

I agree with gusano79. May be an oversensitive touchpad. Try lowering the default settings for the touchpad sensitivity or placing your hands so that they don't brush the touchpad

ndeniche 402 Posting Virtuoso Featured Poster

Welcome to Daniweb. I hope you find what you're looking for and more!

ndeniche 402 Posting Virtuoso Featured Poster

I just recently discovered OpenBadges, which help recognize and verivy learning and skills, so that go me thinking...

What if Daniweb gave out badges to posters based on their expertise on the topics here discussed?

ndeniche 402 Posting Virtuoso Featured Poster

Did you try scrolling to the bottom of the page?

ndeniche 402 Posting Virtuoso Featured Poster

your tabs-inner class has a 15px padding that causes the navbar to slide to the left when the browser winow is resized. The class is set in this file, which I assume you are importing into your project.

ndeniche 402 Posting Virtuoso Featured Poster

You mean, like this?

ndeniche 402 Posting Virtuoso Featured Poster

I guess it's purpose is more for retail or product websites, which are focused more on looking good than being solid and functional

ndeniche 402 Posting Virtuoso Featured Poster

I thought I was coming late to the parallax party, but by the looks of it, not many developers use it.

ndeniche 402 Posting Virtuoso Featured Poster

never even noticed it was there... Thanks!

ndeniche 402 Posting Virtuoso Featured Poster

Well... uhh... silly me!

I had been away such a long time, i didn't ever notice when that option was added. Thanks!

ndeniche 402 Posting Virtuoso Featured Poster

Hello guys,

There's always been this queston on my mind: Why doesn't the website auto add the threads you reply to as watched articles? Is this functionality meant for any other purpose? In my opinion, the reply action in a thread should work like facebook (i know... i know...): replying automatically subscribes you to the thread, until the user selects the "unsubscribe" ("stop watching this article", "remove me from the subsribe list", etc.) option.

ndeniche 402 Posting Virtuoso Featured Poster

Hey guys. I would like to know, which js library do you prefer when designing websites that implement the parallax effect and why. Which one suits you better and why?

I'm new to this effect (it took me quite i while, I know), and I'd like to know your oppinions on the libraries available.

I, for one, have found parrallax-js very useful and easy to implement.

ndeniche 402 Posting Virtuoso Featured Poster

Assuming from your previous posts, you are a novice programmer just starting to learn. If that's the case, let me welcome you to the programming world; I can guarantee you will have a lot of fun.

Adressing your issue about the project, I'd recommend a simple sales project,where you can register customers and their purchases at a store. You can store the products into the database, assign a price, register customers and print invoices.

Is this what you needed?

ndeniche 402 Posting Virtuoso Featured Poster

What you wanna do is learn any server side scripting, like PHP or ASP. These languages can be integrated with HTML and connect to your databases to load data into your webpage.

Here's a good place to start: http://www.w3schools.com/php/default.asp You'll find tutorials, tips, etc.

Did I answer your question?

ndeniche 402 Posting Virtuoso Featured Poster

My favorite part is the

x
xx
xxx
xxxx
xxxxx
xxxxxx
xxxxxxx
xxxxxxxx
xxxxxxxxx
xxxxxxxxxx

Thank you OP

ndeniche 402 Posting Virtuoso Featured Poster

i think it is not possible

Well, actually it is. It's called url rewrite. Maybe this link can help you understand how it works in an Apache webserver.

ndeniche 402 Posting Virtuoso Featured Poster

Well, if you deleted your music files from your computer, your best shot is with a file recovery software, or a file "undeleter". Google might come in handy in this type of cases: you should try typing your literal question into the search bar and it should give you the answer.

ndeniche 402 Posting Virtuoso Featured Poster

Asuming the information filling the comboboxes exists in the record from which you are searching the text in the textbox, you can do a query returning 3 vaues (one for each combobox) and assign it to each combobox.

If the comboboxes will be filled with the records thrown by the query from the text inserted in the textbox, I'd recommend filling them individually, first execute the query (and do the subsequent while loop) to fill the first combobox, then the second and then the third.

ndeniche 402 Posting Virtuoso Featured Poster

Well, you could create a function in MYSQL that would return the next number in the database. That way, when you open a new citation, it will load the next number. If you look back to an old citation,once you close it and open a new one, just call the function and the next number should show up.

ndeniche 402 Posting Virtuoso Featured Poster

Before you write any code you should have

Apache server
PHP
MySQL

I recommend downloading WampServer (or Lamp if using linux)... It has everything you need to start working on php webpages out of the box.

ndeniche 402 Posting Virtuoso Featured Poster

I actually find it better to work every code by myself. Why? Because that way, if something goes wrong I'll surely know where it went wrong. Most GUI IDEs will fill your applications with code from the elements you might insert into your project, so if one of them fails, you will have to learn how the code works and infer where to correct it.

Anyway, I use UltraEdit to work on my HTML, PHP, ASP, Javascript, and all web projects. It's an advanced text editor with the option for code indentation and formatting. It's really awesome.

ndeniche 402 Posting Virtuoso Featured Poster

Welcome to DaniWeb, Anand!! Hope you enjoy participating in this community!!

ndeniche 402 Posting Virtuoso Featured Poster

As pritaeas said, I'd recommend adding a table idetifier column, since that is the only way of identifying which table is every row from.

ndeniche 402 Posting Virtuoso Featured Poster

I have just come back as well, and I did too make some friends here. Some of them are now banned, some of them passed away (actually, one each), and some I still smile when I see their screen name.

Thanks everybody for these awesome years. Thanks to everyone that replied to my posts, either to make a joke, or to scold me for my comments, but most of all thanks everybody for making this such a nice place.

And thanks to our queen, the cscgal for building this treehouse where we can all be our geekest selves.

ndeniche 402 Posting Virtuoso Featured Poster

Well, you can be sure, as soon as I lay my hands in my forthcoming check, part of it will be donating again to this awesome community.

ndeniche 402 Posting Virtuoso Featured Poster

I can't anymore either... Perhaps it was only right after the changes you made... Still, it'd be useful if anyone checked their contact info/edited their profile to see if this is happenning... Still, pretty weird