I gang

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.

Færdigheder: AJAX, PHP, Script Installering

Se mere: 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

Om arbejdsgiveren:
( 15 bedømmelser ) Henderson, United States

Projekt-ID: #281003

Tildelt til:

royventures

please view pmb.

$50 USD på 1 dag
(11 bedømmelser)
4.9

14 freelancere byder i gennemsnit $69 for dette job

value4u

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

$100 USD på 1 dag
(289 bedømmelser)
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 på 1 dag
(289 bedømmelser)
7.1
Rautella

can you pls provide me your website url. Thanks

$65 USD in 0 dage
(203 bedømmelser)
6.6
mharvinhl

Hi, Please see PMB. Thank you,

$100 USD in 3 dage
(100 bedømmelser)
6.2
unknownsoftware

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

$50 USD på 1 dag
(157 bedømmelser)
6.0
ionix

Message in PM...

$150 USD in 8 dage
(61 bedømmelser)
6.0
waterstudio

Please see PMB

$30 USD in 0 dage
(68 bedømmelser)
5.9
www6STECHcom

We can do the fix

$50 USD på 1 dag
(41 bedømmelser)
5.8
rshyethmusthafa

I can fix this

$75 USD på 1 dag
(30 bedømmelser)
4.8
imedvan

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

$50 USD på 1 dag
(6 bedømmelser)
3.8
IndoFreelancer

Please check PM, Thanks.

$30 USD på 1 dag
(8 bedømmelser)
3.3
freelance218

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

$50 USD in 0 dage
(1 bedømmelse)
3.0
zorro319

i can help you.

$125 USD in 3 dage
(0 bedømmelser)
0.0