Problem in connecting Mysql with the website

12/13/2010 17:27 elmo3zeb#1
Every website i download i get error at line 29 and line 30 at config.php

but recently i noticed it's my problem not website problem

i write everything right

the problem at this

$MySQL=mysql_connect($myhost,$myuser,$mypass);
mysql_select_db($gamedb);

I have already wrote all things right above like myuser:**** and others
don't know where is the problem

Warning: mysql_connect() [function.mysql-connect]: Connecting to 3.22, 3.23 & 4.0 is not supported. Server is 4.0.17-nt in C:\AppServ\www\****\config.php on line 29

Warning: mysql_connect() [function.mysql-connect]: Connecting to 3.22, 3.23 & 4.0 servers is not supported in C:\AppServ\www\****\config.php on line 29

Warning: mysql_select_db() [function.mysql-select-db]: Connecting to 3.22, 3.23 & 4.0 is not supported. Server is 4.0.17-nt in C:\AppServ\www\****\config.php on line 30

Warning: mysql_select_db() [function.mysql-select-db]: Connecting to 3.22, 3.23 & 4.0 servers is not supported in C:\AppServ\www\****\config.php on line 30

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\AppServ\www\*****\config.php on line 30
12/13/2010 17:28 NotEnoughForYou#2
you used it on a extern webspace? is the server on a root?
12/13/2010 17:31 elmo3zeb#3
what do you mean? you mean my user is a root or not? if so yes my user is root
12/13/2010 17:33 NotEnoughForYou#4
i mean, your server is on hamachi / dyndns or root or something like that? because i dont know the game CO2 but i know this error by an metin2 p server and there if you have an hamachi server, you have to put your website on xamp ( the hoster )
12/13/2010 17:34 elmo3zeb#5
no it's not hamachi its on my computer static ip
12/13/2010 17:37 NotEnoughForYou#6
hmm i dont know , if its possible to make a register page or something like that on a extern webspace, if you donīt have an root server.. probably you can use xamp

#edit .. other player can connect to your server ?
12/13/2010 17:39 elmo3zeb#7
Thanks for your try in helping me
12/13/2010 17:40 NotEnoughForYou#8
ah i just saw.. the website is on your pc?
12/13/2010 17:41 elmo3zeb#9
yes and the server on my pc too,you can check the website from here [Only registered and activated users can see links. Click Here To Register...]
12/13/2010 17:43 NotEnoughForYou#10
so you have installed php and appache on your pc ?
12/13/2010 17:44 elmo3zeb#11
I don't have install.php for the site but i have appache on my pc
12/13/2010 17:47 NotEnoughForYou#12
you have to install php on your pc
12/13/2010 17:48 elmo3zeb#13
gimme link please
12/13/2010 17:50 NotEnoughForYou#14
you can search on googel .. but i dont know the correct version.. search php 5 this should be the right version
12/13/2010 17:51 elmo3zeb#15
maybe thats the problem i found this at appserv site

Everybody knows phpMyAdmin can export file to Excel format but phpMyAdmin just export .csv file,not real Excel file format. If you are interest in PHP programming and need to export to the real Excel format please check it out !

Example PHP export to XLS file format.

1. Create Function for XLS

function xlsBOF() {
echo pack("ssssss", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0);
return;
}

function xlsEOF() {
echo pack("ss", 0x0A, 0x00);
return;
}

function xlsWriteNumber($Row, $Col, $Value) {
echo pack("sssss", 0x203, 14, $Row, $Col, 0x0);
echo pack("d", $Value);
return;
}

function xlsWriteLabel($Row, $Col, $Value ) {
$L = strlen($Value);
echo pack("ssssss", 0x204, 8 + $L, $Row, $Col, 0x0, $L);
echo $Value;
return;
}