Sedang Disiapkan

MySQL / PHP Script Fix

I recently purchased a small website that uses PHP & MySQL. It worked perfectly on another hosting company, but when I installed it on my server it will not work properly.

I believe it is perhaps a MySQL issue as the previous version of MySQL was [url removed, login to view], and now I am using it on version 4.1.20.

The script is reading and writing to the DB, although it is not working correctly. I am seeing the following errors:

PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/vhosts/….

And the script is not reading and writing cookies correctly. Here is one sample section of the script that is giving errors:

<? }

} else if ($type == "my-favorites") {

$query_2 = "SELECT * FROM favorites WHERE cookie_id = $cookie_id ORDER BY rand() DESC";

$queryResource_2 = mysql_query($query_2);

while ($row_2 = mysql_fetch_array($queryResource_2, MYSQL_ASSOC)) {

$resource_id = $row_2['resource_id'];

$query = "SELECT * FROM resources WHERE resource_id = $resource_id AND category_id = $id";

$queryResource = mysql_query($query);

if ($row = mysql_fetch_array($queryResource, MYSQL_ASSOC)) {

$title = ShortenText($row['title'],45);

$url = ShortenText($row['url'],60);

$temp_div_number++;

$row_count++; ?>

I am looking for someone who understands PHP and MySQL, and can make my site work correctly. Site also uses AJAX, but I do not believe there is a problem with this.

Kemahiran: AJAX, PHP, Memasang Skrip

Lihat lebih lanjut: writing in script, writing fix website, writing fix, website errors fix, the writing fix, seeing and writing 4, script writing work, my fix it, my fix, i will fix it, valid id, type of cookies, script writing, php writing, php db, mysql query, Mysql php, hosting issue, fix mysql query, desc, warning mysql_fetch_array supplied argument valid mysql result, url fix, script warning, section script, fix query

Tentang Majikan:
( 15 ulasan ) Henderson, United States

ID Projek: #281003

Dianugerahkan kepada:

royventures

please view pmb.

$50 USD dalam sehari
(11 Ulasan)
4.9

14 freelancers are bidding on average $69 for this job

value4u

Hi, I can get it done in 1 day. Please check my PM. Thank you.

$100 USD dalam sehari
(289 Ulasan)
8.2
dboyzhang

Hi, I have experience on AJAX and customized PHP system. Please send me details then I can see whether I can help you. Regards Bo Zhang

$40 USD dalam sehari
(289 Ulasan)
7.1
Rautella

can you pls provide me your website url. Thanks

$65 USD dalam 0 hari
(203 Ulasan)
6.6
mharvinhl

Hi, Please see PMB. Thank you,

$100 USD dalam 3 hari
(100 Ulasan)
6.2
unknownsoftware

Satisfaction guaranteed. Escrow required before i start working on the project. Regards

$50 USD dalam sehari
(157 Ulasan)
6.0
ionix

Message in PM...

$150 USD dalam 8 hari
(61 Ulasan)
6.0
waterstudio

Please see PMB

$30 USD dalam 0 hari
(68 Ulasan)
5.9
www6STECHcom

We can do the fix

$50 USD dalam sehari
(41 Ulasan)
5.8
rshyethmusthafa

I can fix this

$75 USD dalam sehari
(30 Ulasan)
4.8
imedvan

Hi. I can fix it today. It seems problem in php version not mysql. No escrow required. Thanks.

$50 USD dalam sehari
(6 Ulasan)
3.8
IndoFreelancer

Please check PM, Thanks.

$30 USD dalam sehari
(8 Ulasan)
3.3
freelance218

Hi, I can fix your problem ASAP. Thank you.

$50 USD dalam 0 hari
(1 Ulasan)
3.0
zorro319

i can help you.

$125 USD dalam 3 hari
(0 Ulasan)
0.0