mattster 195 Practically a Master Poster Featured Poster

Have you any PHP experiance?

Try here: YouTube

I suggest downloading the source files as well :)

mattster 195 Practically a Master Poster Featured Poster

If you're using XAMPP, its easiest to "export" all databases from phpMyAdmin, and then "import" them on your new machine.

mattster 195 Practically a Master Poster Featured Poster

TEA!!!!!

Two sugars mind ;P

mattster 195 Practically a Master Poster Featured Poster

Hi all,

I am using an apache web server, and this is the raw url:

http://localhost/mysite/index.php?view=contact

how do I convert that to:

http://localhost/mysite/contact/

My current .htaccess is saved in http://localhost/.htaccess, and reads as:

RewriteEngine On
RewriteRule ^mysite/(.*)/$ /mbs/index.php?view=$1 [L]

and I get a 500 internal server error?

Thanks for the help :)

mattster 195 Practically a Master Poster Featured Poster

hello? anybody able to answer?

mattster 195 Practically a Master Poster Featured Poster

I've got the mysqlclient.lib, so stick that in my project directory? And I can't find mysqld.dll - only an mysqld.exe, or and libmysqld.dll?

I still seem to be getting the same errors :(

mattster 195 Practically a Master Poster Featured Poster

I have approximately 6 years in HTML, PHP, Python, Bash, Javascript, CSS, Java, but 8 years in C++/C and a 4 year masters in computer science where we used C++

mattster 195 Practically a Master Poster Featured Poster

No deal, too old for me and not as fast as the 0-60 in 2.9s Mclaren, my favorite car

McLaren P12

mattster 195 Practically a Master Poster Featured Poster

@<MICHAEL> the student is now finishing his masters, and has a place reserved on our DPhil course, which is exactly the same as a PhD but y'know, Oxford have to be different -.- its embarrasing really

mattster 195 Practically a Master Poster Featured Poster

When you are trying to center the .navbar ul, the header, content and footers serperatally, it is VERY hard to center them properly at all zooms. Here is probably the easyist way:

<body style="background:url(mainbg.jpg) repeat-x;">
    <div style="width: 1002px;margin:auto;">
    <!-- stick EVERYTHING in here, so its centered. -->

        <div style="background:url(header.jpg);">...</div>

        <div id="content"><!-- content --></div>
    </div>
<div id="footer">...</div>
</body>

If you sort of see what I mean (haven't explained very well), the mainbg.jpg will be the header, nav and content bg's all put together and repeated.

This is the esiest example: here

mattster 195 Practically a Master Poster Featured Poster

Hi everyone,

Heres my problem: I've installed Qt 4, and there is no qmysql.dll/.a in C:\Qt\4.8.4\plugins\sqldrivers.

I am running a MySQL database program and I get Database error: Driver not loaded.

Theres not really a lot of help anywhere on google so hopefully DaniWeb will yet again prove itself as a brilliant community!

Thanks in advance!!

mattster 195 Practically a Master Poster Featured Poster

English, German, French, and good spanish.

Get this, one of the guys at uni speaks 16 languages!!! He's a languages student though...

mattster 195 Practically a Master Poster Featured Poster

I'm professional now, and 100% of that comes from self-research. It is without doubt the best way to learn.

do research. If they still couldn't figure it out then I'd help them

Ancient Dragon sounds exactly the same as my professor at oxford!!! The best years of my life, happy times :')

mattster 195 Practically a Master Poster Featured Poster

Your code above doesn't actually include anything on your sessions? Theres just session_start()? because my guess at the minuete is that there is an error either writing into your session or echoing out of it. I need to see everything concerning the sessions to help on this.

mattster 195 Practically a Master Poster Featured Poster

Well first you need:

<select name="city"><option>...</option></select>

and the PHP:

$sql = "SELECT * FROM sellers WHERE city='".mysql_real_escape_string($_POST['city'])."'";
$res = mysql_query($sql);

echo '<table>
        <tr><td>...</td></tr>'

while($row = mysql_fetch_assoc($res)){
        echo "<tr><td>".$row['some_colmn']."</td><tr>";
}

echo "</table>";

The above will generate a table populated with every row in the database with the selected city... :)

mattster 195 Practically a Master Poster Featured Poster

welcome :)

mattster 195 Practically a Master Poster Featured Poster

hosting24 isnt bad at all!! Cheap and you get alot for your money!

here

mattster 195 Practically a Master Poster Featured Poster

Here is a decent validation script to work from:

http://www.javascript-coder.com/html-form/javascript-form-validation.phtml

mattster 195 Practically a Master Poster Featured Poster

Yes I was, and you were 100% correct, I had to move another 3 .dlls into the folder but ahh well ;)

mattster 195 Practically a Master Poster Featured Poster

Right everyone, here's my problem. I have just paid £45 for a book on Qt, have had a nightmere getting it sorted, and finally I can build apps to this extent...

I have an app, test.pro. I have built it using qmake test.pro -> make which works. I am using the MingW library within CodeBlocks on Windows 7x64. I have the exe all ready when... the file mingwm10.dll is missing from your computer, try re-installing and I have checked that in C:\Program Files (x86)\CodeBlocks\MinGW\bin\ there is DEFINATELY a mingwm10.dll file.

I am completely stuck, any help greatly appreciated!! :D

mattster 195 Practically a Master Poster Featured Poster

phpMyAdmin export is the best and safest way to back anything up to be honest

mattster 195 Practically a Master Poster Featured Poster

For an old project, I used this
JPowered

Which does the graph work, all you have to do is echo some information into the script, it does all of the maths, and it works really well and easily

mattster 195 Practically a Master Poster Featured Poster

Going on your link, are you looking to do the 1940s, 1950s etc, or the individual years and popups over at the bottom?

The 1940s, 1950s etc bit would be easy to set up, and so would individual dates, but placing them accross the images at an accurate distance would take a fair javascript. I cant seem to find many tutorials, but I'm more than happy to help if you want :)

mattster 195 Practically a Master Poster Featured Poster

I do like Code::Blocks for more console based apps, but is a right pain to work on anything other (ie GUIs etc).

And the python is normally done in their default IDE or gEdit, so not very sophisticated aha

mattster 195 Practically a Master Poster Featured Poster

http://jsfiddle.net/jHW9h/

See if this is more what you want...

mattster 195 Practically a Master Poster Featured Poster

Right no worries ;)

First you put <span id="timer"></span> wherever you want to display the timer

Second you put the following in the <head>

<script type="text/javascript">
var count= 2700; // will count down from 45 mins

var counter=setInterval(timer, 1000);

function timer()
{
  count=count-1;
  if (count <= 0)
  {
     clearInterval(counter);
     return;
  }

 document.getElementById("timer").innerHTML=count + " secs";
}
</script>

You can google it and expand if you want on converting seconds to mins etc

and there you have it :)

mattster 195 Practically a Master Poster Featured Poster

I've tried to look into it for you, but just to confuse you even more, I have firefox and I cannot see any differance, so I cant fix it until i know what it should be like...

It seems to be a fault occuring in both: First you need to work out a way of removing the display: none; style off the #pup div when the user hovers over the appropriate link. (thats why we cant see it) ie getElementById("pup").removeAttribute("style");

Then the x offset must be at least 200px too large.

Finally, you need a way of inserting text into your div, ie document.getElementById("pup").innerHTML= "Your text";

Sorry to be a bit grouchy on that ;)

mattster 195 Practically a Master Poster Featured Poster

The PHP date is when the server generates a date and sends it to the user for viewing. The only way to do this is by using Javascript:

  1. Get Javascript to refresh the page
  2. Get Javascript to just do the count down (click here)

Feel free to PM me if you need any more help ;)

mattster 195 Practically a Master Poster Featured Poster

maybe and <iframe> such as:

<html>
  <head>
    <script language="JavaScript" type="text/javascript">
    <!--
      function changeFrame(newPage){
        document.getElementById('myframe').src = "results.php?category=" + newPage;
      }
    //-->
    </script>
  </head>
  <body>
    <div align="center">
      <select id="menu">
        <option id="category1" onClick="changeFrame(this.id)">Home</option>
        <option id="category2" onClick="changeFrame(this.id)">About</option>
        <option id="category3" onClick="changeFrame(this.id)">Contact</option>
      </span>
      <br><br>
      <iframe src="default.html" id="myframe"></iframe>
    </div>
  </body>
</html>
mattster 195 Practically a Master Poster Featured Poster

same with dreamweaver cs5, gEdit + gcc-make, Qt IDE etc

mattster 195 Practically a Master Poster Featured Poster

AHarrisGsy has started on the HTML, but you're going to have to use Javascript jQuery to get it to show onclick I'm afraid.

mattster 195 Practically a Master Poster Featured Poster

Diafol is right, Twitter bootstrap is brilliant, I have used it on many projects and it is really very good

mattster 195 Practically a Master Poster Featured Poster

Just as a quick note I believe that your HTML locating the jQuery file should go as (Using the http:// to locate the JQuery file:

<script src"http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

Aside from that (and actually answering your question), we are still clueless to why this is happening, so I suggest testing to diagnose the error by:

  1. echo $_POST['name']
  2. mysql_query() or die(mysql_error());

1 so we can see exactly what we are trying to insert and 2 so we can see if mysql has an error message that can solve the problem.

Please reply with what the results are so I can help, sorry to be a pain ;)

mattster 195 Practically a Master Poster Featured Poster

So let me get this, you've written a HTML page with PHP inserting some content into it, and when you refresh the page it won't display?

Would love to help but I cannot quite see where you are coming from...

mattster 195 Practically a Master Poster Featured Poster

drjohn has nicely just proved how long ago i started haha, thankfully I now use Dreamweaver CS5, but thats far too expensive for begineers and alot of pro's

mattster 195 Practically a Master Poster Featured Poster

When I started out, I used NVU. Its a good suite but a pain for coders.

You really need the HTML and CSS first. You can do this with a text editor to really practice this the hard way if you want (but I would recomend and IDE). Try downloading a free HTML template and editing it (I personally find altering someone elses work helps me learn best).

Following that, get in there with GIMP and PHP/MySQL. For PHP/MySQL I cannot reccomend XAMPP more!

As i say, if you edit a pre-built template (add bits and change stuff) and just google any problems as normally there is a solution, w3-schools are really good as well, but feel free to PM me if you need help ;)

mattster 195 Practically a Master Poster Featured Poster

LastMitch is correct on both the css hover and the links.
The reason they are not working as there is no <a href=""> link, but as you are using a div, I would reccomend trying <div style="" onclick="window.location='mypage.html'"> - otherwise you might have a nightmere with inserting an <a>

mattster 195 Practically a Master Poster Featured Poster

no worries at all - glad to have been a help :)

mattster 195 Practically a Master Poster Featured Poster

I've had a go at fixing it, and Ive found the solution! try this css:

#nav a {
    display: block;
    color: #474747;
    text-transform: none;
    font-size: 13px;
    text-decoration: none;
    background: none;
    padding-top: 15px;
    height: 20px;
    padding-bottom: 0px;
    padding-right: 15px;
    padding-left: 15px;
}
#nav {
    list-style: none;
    text-decoration: bold;
    margin-top: 30px;
    padding-right: 20px;
    letter-spacing: .5px;
    font-family: Geneva, Sans-Serif;
    font-size: 13px;
    background: none;
    float: right;
}

Hope it works!!

LastMitch commented: Nice Work! +9
mattster 195 Practically a Master Poster Featured Poster

<MICHAEL> is right: are you looking for a WYSIWUG or to actually code a site?

mattster 195 Practically a Master Poster Featured Poster

Hi all,

We have just upgraded our btinternet router, and they gave me the old one to experiment with. The router is identical to this one. A friend thinks a script would have to be written in C++.

The router has all of its config stuff on a web interface, so I wondered if it were possible to have files stored on the server, accessible via the web interface, possibly building up to doing it with a wireless connection. I am guessing something like an ftp server?

What do you think guys? Possible? Any hints to get started?

Cheers

mattster 195 Practically a Master Poster Featured Poster

Hi, I think the title is fairly self explanetary, what is the endorse system and how does it work

Sorry for dumb question- newbie here

mattster 195 Practically a Master Poster Featured Poster

Welcome to you both

mattster 195 Practically a Master Poster Featured Poster

Are you sure you can't use an IDE for this: as something vaguely like cnn.com provides a lot of problems for something like office. Word is by no means designed nor capable of working with html pages. Maybe try something like NVU which is a simple IDE that works nicely for non html users like yourself...

I would highly suggest using this route if you want to build a half decent project

mattster 195 Practically a Master Poster Featured Poster

I agree with the others: its easier learning when you work it into an existing site...

Personally, I learnt PHP through tampering with opensource projects. You definately need HTML, CSS and maybe JavaScript but jalpesh has named all the languages to make the best sites. I use XAMPP and its a great suite!!! Perfect for learners!

mattster 195 Practically a Master Poster Featured Poster

I really like the purple, as its very iconic to daniweb, and nice one to dani for choosing it!!!

Because it is just so iconic, I don't think any other colour would fit to be honest!

mattster 195 Practically a Master Poster Featured Poster

Welcome ;) I'm fairly new as well

mattster 195 Practically a Master Poster Featured Poster

Thanks Ancient Dragon, worked like a breeze!!
Now to deal with the next set of errors lol ;)

mattster 195 Practically a Master Poster Featured Poster

I think you've got a problem with the div's, as they are set to a width of 1300px, which extends off the page.. try using 1000px instead and then move the div's around abit (ie facts should be set to apprpx. top: 240px, right:600px; etc.

mattster

mattster 195 Practically a Master Poster Featured Poster

yes, it is named english.rc, do I need to do something seperately then as I was under the impression Code::blocks did it automatically?

Thanks Ancient Dragon