Jump to content

[SOLVED] PHP4 issues?


darkfreaks

Recommended Posts

ok so i am running on PHP4 and MYSQL 5

 

 

everything seems to work right when i changed the fields the guy who coded this told me it would work on my site if i changed all the appropriate fields so now i get "mysql_num_rows not a valid function" .

 

num_rows lines:

<?php

if(mysql_num_rows($get1)<1){echo"You can only give me items you own! (<a href=wizelscove.php>Back</a>)";}
if(mysql_num_rows($get2)<1){echo"You can only give me items you own! (<a href=wizelscove.php>Back</a>)";}
if(mysql_num_rows($find)<1){echo"<b>$get1[item_id]</b> and a <b>$get2[item_id]</b>? I've never heard of such a combination.
..Best not to dabble in what we're not experienced with, don't you agree? (<a href=wizelscove.php>Back</a>)";}?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/106326-solved-php4-issues/
Share on other sites

somehow i might think it is a coe problem

 

you might be wrong. the error "mysql_num_rows not a valid function" says what it means: the function mysql_num_rows is not in your installation. but that makes me wonder why you don't get the same error using the mysql_query function. maybe try this to see if mysql_query is running okay.:

 

<?php
$query = mysql_query("SELECT id FROM useritems2") or die(mysql_error());
echo "query: $query"; // see what you get here.
$row = mysql_num_rows($query); //problem line
if ($row>1) {
?>

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/106326-solved-php4-issues/#findComment-544977
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.