Josh Connerty 20 Unverified User

I would suggest looking over w3schools tutorials. The reason being that if you use a work computer or a friends computer you are going to find it very complex. It is okay to use an editor likes this as I use something similar , but I would suggest learning on a simple text editor as then you can understand the code even without the colouring and explanations etc.

Try using just notepad, this will not indent lines for you or give you any suggestions or colour guides. It's better for the long run trust me.

Josh Connerty 20 Unverified User

Hmmm, I don't tend to look at the error codes at first. Try going to Control Panel > Administrative Tools > Event Viewer and then post all information regarding your error.

Most BSOD are due to power defficiencies, try going into your BIOS and then the hardware monitor or something along those lines and then take a look at your voltages, I know on ASUS motherboards if something is out of the ordinary it will highlight it in red.

kaninelupus commented: really poor advice. BSOD's are NOT most commonly "due to power defficiencies" at all! Misinformation serve only to confuse the OP! +0
Josh Connerty 20 Unverified User

Forgot or forgets? I should imagine it has an easy fix in the registry, have you tried contacting microsoft about registry entries for live?

I presume you have reinstalled messenger?

Josh Connerty 20 Unverified User

Yes it seems that the new Xampp is taking tomcat as part of it as to an add-on which I can only figure is causing the issues.

Josh Connerty 20 Unverified User

If that is the case then you need a bog standard upload script, accept from in the success block of code you will need to run some queries that will store the name of the file in the database along with any other information about the file you may need.

As for retrieving the file you just need to use a get to pass the ID of the file and then run a query using the GET variable and the n display all information about the file and passably a download link.

Josh Connerty 20 Unverified User

When a user registers you must provide a link to the verification page with two get variables U & AID (activation ID), you must also store these details in the table.

When it verifies a user then remove all values from the AID field thus leaving it blank.

Then when it comes to logging them in then you only need to check if the field value is true, if it is then they haven't vrified there account if it isn't then they have and you can create the cookie.

Josh Connerty 20 Unverified User

Yep deffinetly sounds like a gammy PSU, what pin does your motherboard have and what pin is the PSU?

You should be able to pull the big cable out with about 15-20 wires in it.

Then you can count the socket to see if there is 20 or 24 pins. I'm pretty sure an atx-2 will do the job but I wouldn't try it until you check it out a little bit.

As long as you can detach the extra 4 pins and the settings on the back are right for the power outlet (110v UK, 240v US I think) if you are from the UK, check out the Novatech website.

They sell very cheap PSU's infact I think mine was 12-15 pound. It had the same 12v issue as you seem to be having at first but I rang up Novatech customer services and because it's a PSU they will dispatch a new one.

http://novatech.co.uk/novatech/

Josh Connerty 20 Unverified User

Okay here is a little tutorial on the workings of what you are trying to do:

1. Add an onChange event to the pervious select field, this is so that when the user changes this it will trigger the next select box to run the query.

2. In your JavaScript file (I prefer jQuery so bare with me) you need to use ajax to call on a seperate PHP document that will be the middle man between the JavaScript and the MySql server. You can do this using the jQuery.ajax function.

// Get the data from the field
var src = $("select#previous").val();

jQuery.ajax{(
url: "location of the document, can be a url",
type: "POST/GET",
timeout: "number of [b]milliseconds[/b] untill JavaScript must give up trying to cantact the document and wait for a response.",
error: function(){
alert("We are experiencing issues with our system, we will now refresh the page for you.");
history.go(0);
},
beforeSend: function() {
$("#loading-bar").css("display","block");
},
data: "src="+src,
success: function(success) {
$("div#container").html(success);
$("#loading-bar").css("display","none");
}
)}

Something allong those lines etc. (I dunno)

3. You need the PHP document to run the queries (the really overcomplicated ones) and then return a full set of results I.E:

<select name="something or other" id="something or other else">
<?php

$query = mysql_query("SELECT * FROM `other_table` WHERE `old_table_id` = '".$_POST['src']."'");

while( $row = mysql_fetch_array( $query ) ) {
echo '<option value="'.$row['id'].'">'.$row['Product Name etc.'].'</option>';
}

?>
</select>

You should get the drift, it is easier to do it yourself then if …

Josh Connerty 20 Unverified User

So you get no input in the sense of the screen?

If not then I need you to remove all sticks of RAM present and then start the machine. If it continues too beep then it seems the motherboard is in check else it may be more difficult then expected.

Josh Connerty 20 Unverified User

Are you connected throuhg a router or server of some sort?

If so try pinging the IP of the machine and see what happens.

Josh Connerty 20 Unverified User

Okay, I may be mistaken in how this is all set up...

Please explain in detail your whole setup. I know Godaddy hosts your MySql server but who hosts the actually machine?

Josh Connerty 20 Unverified User

Depends were your from, parts aren't really shipable. I'm from the UK so I doubt I will be much help.

Josh Connerty 20 Unverified User

I know thus there may be a driver issue, as in the monitor requires it to have a specific driver and infact Windows belevies it to be a simple PnP monitor.

Josh Connerty 20 Unverified User

Okay because we have a wide range of possibilaties we need to narrow it down. First I would suggest that, the next time it happens to unplug your router or modem for around 10 seconds then plug it back in.

If you have a Dynamic IP then your IP will change when your router next connects to the ISP's network. Then try this again and if it works fine then we know we have an issue with the IP address or host.

Josh Connerty 20 Unverified User

Not but although this sounds bizare your system installs its own drivers for monitors.

Josh Connerty 20 Unverified User

Hmmm, okay then lets think more on the hardware side. When your computer starts up hit either one of the F buttons or the delete key. This will take you too the BIOS settings. There should be some area for you to monitor your hardware.

What we are looking for is low voltages from the PSU, a drop at any time by as little as 0.4v on the 12v will cause your system to shut down.

Josh Connerty 20 Unverified User

Did you disasemble your case to correct the faulty button? Allot of the hardware in the system are verry touch sensative. Maybe you have knocked one of the wires out that leader from the button to the Motherboard?

Josh Connerty 20 Unverified User

Have you tried using another browser as it seems you have no malware?

It may be that the settings held in your current browser are incorrect, do you have MSN or something along those lines? If so try signing in and if that fails you can use the microsfts connectivity checker whatsy majig.

Josh Connerty 20 Unverified User

Simon and you are both right, I agree the manual is the best place to find your answer and saves us allot of, well, typing. Nevertheless this is supposed to be a friendly community. Just some constructive criticism, don't take it personally.

@DealthRune, the manual, as Kkeith29 stated, has the answer to your question. If you ever need help with an ilfunctioning script your welcome to ask us for help and we will be happy to help, but first use google to find out if there is another issue like yours and most importantly check the manual.

If at the end of this 5 minute check there is nothing or you can't understand what the solution is then we will be happy to help.

Josh Connerty 20 Unverified User

It's bizare wordpress would just turn around with this error. Have you changed anything at all in the code?

Josh Connerty 20 Unverified User

Okay.

Josh Connerty 20 Unverified User

Valid point from Rik...

Josh Connerty 20 Unverified User

Try accessing the BIOS and finding out exactly what your CMOS is posting.

I think clearing the CMOS might make a significant difference. Basicly take the top (where the keyboard is) off your laptop, then you should see a little three quarter inch battery (sometimes encased in a yellow plastic) that is usually attached to a wire.

Detach (do not brake) the wire from the battery, leave this fro around 2 minutes. After this put it back in then put the case back together. Start it up and see if the BIOS recognises the Hard Drive.

Josh Connerty 20 Unverified User

Yes Xan is right, there is deffinetly object oriented coding in their. $this does seem to be a class of some sort.

Does $this really need to be changed? Else you are looking to rename the class. But first you need to find it.

Will Gresham commented: Love your sig :D +2
Josh Connerty 20 Unverified User

Actually this sounds very much like a RAM issue. Either that or a malware problem.

My suggestion would be to download malwarebytes and some RAM diagnostics tool. I understand this may be a little difficult as you can't easily use the Laptop in question but try creating a new user account again.

The later suggestion, Malware, will mean that it is a System virus and the chances are it's not going to be easy to remove.

Josh Connerty 20 Unverified User

The issue with the IP is that every time your router or modem connects to the internet it will get a new IP as most ISP use dynamic IPs.

I would suggest combining these methods, for instance store their IP for a max of 48 hours as the chances are someone else on their ISP's network will end up with their old IP. I would also use hosts and cookies.

This way you can check for any of the following and if they do have anyu of them then they will not be able to vote. As for the cookie issue I would suggest also giving them a session wich will remember them until they close their browser.

Josh Connerty 20 Unverified User

Then no $this should not change the script, the issue you are probably having is that the varibale is being called later on in the script. You may need to "Find" $this using your text editor and change it to $result.

Please post your current document in tags.[code=php] tags.

Josh Connerty 20 Unverified User

There is a few things that apear a little fishy, one of wich being O4 - HKLM\..\Run: [PHIME2002ASync] C:\WINDOWS\system32\IME\TINTLGNT\TINTSETP.EXE /SYNC and another being C:\Program Files\DIMES\Agent\Classes\Base\bin\wrapper.exe I would take a look into getting Malware Bytes onto the system you are having an issue with (via a disk or a usb memory stick). Then run this, this usually tells you what it see's. Most of the time if you are hit by bad malware then it may mean a reinstall of your OS, or formating your HDD in other words.

Josh Connerty 20 Unverified User

You may need to reset the bios, as far as I know this should be fine on a dell. This should change the settings back to default and should recognise the hard drive as it did from factory.

If this fails you may need to persuade a friend to lend you their laptop to test the hard drive on their laptop.

Josh Connerty 20 Unverified User

Okay, have you tried plugging in the old minitor again?

Josh Connerty 20 Unverified User

Okay, so try boot in safe mode and make another account and see if that boots?

It seems that there is an issue with the drivers for the hardware you have installed, my advice would be is to remove the less important hardware peice by peice.

Josh Connerty 20 Unverified User

Glad you got it solved ;)

Josh Connerty 20 Unverified User

I would first suggest taking the motherboard out of the case and connect JUST the PSU, this should make the MOBO light turn on, if it doesn't then this is a faulty motherboard. The mother board should keep beeping because there is no RAM in place.

And as far as I know the MOBO wont run the BIOS if there is no RAM present.

Josh Connerty 20 Unverified User

Okay, I will let you down gently, I think it's a bit farfetched to explain this through a forum. It is virtually imposible for me to tell you how to do this.

The two tables are vastly different.

It would take a week maybe more for a professional to do this.

Unfortunately this is too difficult to do through a forum. I am really sorry.

Josh Connerty 20 Unverified User

The issue you have is that you are using the IMG HTML tag, this requires you to have the image saved in order for the IMG tag to retreive the image and display it.

The knowledge I have of PHP's image functions is that they will generate images and save them to directories or generate them in the current document (so you can use image.php as an image).

Currently what you are doing is making an image and then giving it a name then adding it to an email using the IMG tag. In this proccess you aren't actually saving the image to a directory for the email to reference.

What you are trying to do is possable. You will need to attach the image to the email then reference it in the body of the message.

Josh Connerty 20 Unverified User

Yes thats right, either attach them to a post or open them up and copy and paste the contents into tags. ;)[code=sql] tags. ;)

Josh Connerty 20 Unverified User

Basicly, just use your orignal document. Make a submit button that will go to another document.

In this document you will need to handle the posted data. You will need to make queries dependant on the value passed. For instance if it is UK then you need to select the stuff from other tables that relate to the UK.

Josh Connerty 20 Unverified User

Right first of all you need to export the tables from wich you think the members are held.

You need to do this for both, after doing so you can post them in tags.[code=sql] tags.

Josh Connerty 20 Unverified User

I would suggest also making a dedicated table for the user preferences. However I would suggest making a column for each preference. Eg. user_id, gardening, pet, food.

As for the pets, gardening and food tables, it is a good idea to make as many tables in your database as possable, this means you wont overstress a single table.

So in a sense, when the user sellects pet and food you will check the table for the users ID if there is already and ID then edit that row else make a new one. The idea is add a 1 into the column the chose, in the instance it is pet and food,

This will make the row look like this:

ID --- Pet --- Gardening --- Food
----------------------------------------
984 1 0 1
======================

So if they have a 1 in any of the topics then you will retreive the rows from the specified tables.

This is the most ligical way to my knowledge.

darkagn commented: Helpful comments +5
Josh Connerty 20 Unverified User

Okay well I first need to ask how dedicated you are to this?

This is a complex proccess!

Basicly to start with you will need to compare the two database systems. In order for them to work together they need to use just the one.

Another issue is they probably require two seperate cookies. So you will also need to edit the source in order to use just one cookie.

Josh Connerty 20 Unverified User

You would have to use JavaScript I beleive I don't think the textarea allows the maxlength attribute.

Josh Connerty 20 Unverified User

Can you copy and paste the contents of the file into a code wrapper as follows:
[code=sql]

Josh Connerty 20 Unverified User

You need to import the database first, in order to do this you must use the PHPmyadmin import system or the SQL system, personally I prefer the import system.

In order to do this you must open the file and copy all of the contents into the SQL input box of PHPmyadmin. This will import all of the settings for your database.

Josh Connerty 20 Unverified User

Try downloading malware bytes, this is basicly a virus detection and deletion program as apose to an anti virus.

Can you give some more details on your system and anti-virus etc?

Josh Connerty 20 Unverified User

I have to say, if you have cpanel then look for it on your cPanel, most of the Linux cPanel providers will provide this service.

Josh Connerty 20 Unverified User

Make a new file called php.ini in the directory where this script runs from and inside it put:

allow_url_fopen = "1"

;)

Josh Connerty 20 Unverified User

Click start and on the right hand side you should see My Computer, right click then go to properties and this should tell you.

Josh Connerty 20 Unverified User

Well, I think they would probably use different engines for the specific job needed. But I will say now, they most likely use a WHOLE server just for a MySql server and nothing else. If you are planing on making a database heavy application then you really must have the MySql server on a dedicated machine.

Josh Connerty 20 Unverified User

Nope CRON was designed for running scripts (non-web related) on Linux based systems. This was then adapted to run web scripts every specified hour or hours.

So no there isn't really any alternative unless you manually run the script at 10am everyday.

Josh Connerty 20 Unverified User

;-) lol.. its alright.. its nice that u find time for responding to forums in between busy work.
and Yeh you got a point there...
If you wish to address visitors who have disabled cookies in their browser, Session will be unavoidable...
this link has some examples for using php session if you need
http://in3.php.net/manual/en/ref.session.php


Regards,
Rineez Ahmed N

My turn to embarris people :P, PHP Sessions still use cookies so if cookies aren't enabled then sessions will not work.

Can't remember where I read it but supposivly so.

In wich case you would need to save the current mins seconds etc into a MySql database and retreive it each time.

BUT I think more people have JavaScript disabled than cookies so is it really an issue?