|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
PLEASE, MYSPACE SCRIPTs
i have a problem here http://eznom.net/s3/urbanmedia/urbanspace
i get the erors Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/eznom34/public_html/s3/urbanmedia/urbanspace/functions.php on line 42 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/eznom34/public_html/s3/urbanmedia/urbanspace/functions.php on line 50 Warning: Cannot modify header information - headers already sent by (output started at /home/eznom34/public_html/s3/urbanmedia/urbanspace/functions.php:42) in /home/eznom34/public_html/s3/urbanmedia/urbanspace/index.php on line 73 I dont know what they mean. do you know how to fix it? |
|
#2
|
||||
|
||||
|
supplied argument is not a valid MySQL result resource
This is usually an indication that there's something wrong with your SQL query. the common problem is when your query contains variables that are empty. headers already sent Make sure you have no print statements or HTML code before a header() line. This includes white space (a line break) at the beginning of your file.
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#3
|
|||
|
|||
|
?
this is the code for the header and theres no white space in the top
<? $m_id=cookie_get("mem_id"); $m_acc=cookie_get("mem_acc"); $mem_list=cookie_get("mem_list"); $mem_grop=cookie_get("mem_grop"); $mem_eve=cookie_get("mem_eve"); $mem_blog=cookie_get("mem_blog"); $mem_chat=cookie_get("mem_chat"); $mem_forum=cookie_get("mem_forum"); $mem_forum=cookie_get("mem_forum"); ?> <style type="text/css"> <!-- .style1 { font-family: "Bauhaus 93"; color: #FFFFFF; font-size: 36px; } --> </style> <table cellpadding=0 cellspacing=0 width=100% bgcolor="Navy" class="lined"> <tr> <td height=70><span class="style1">WELCOME TO URBAN SPACE </span></td> <td height=70 colspan="9" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <?=h_banners();?> </td> </tr> </table> </td> </tr> <tr align="right"> <td colspan="10"><b>History:</b>      <? $m_id=cookie_get("mem_id"); if($m_id!=''){ $sql_query="select history from members where mem_id='$m_id'"; $hist=sql_execute($sql_query,'get'); $items=split("\|",$hist->history); $items=if_empty($items); if($items!=''){ for($i=0;$i<count($items);$i++){ $k=$i+1; echo "<a href='$items[$i]'>$items[$k]</a> >"; $i++; }//for }//if }//if ?> </td> </tr> <tr> <td colspan="9"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <? if($m_id==''){ ?> <tr> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=login&act=home"><font color="#FFFFFF"><font size="2">Home</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><font size="2"><a href="index.php?mode=user&act=inv"><font color="#FFFFFF">Invite</font></a></font><u><font color="#FFFFFF"><font size="2">s</font></font></u></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=messages&act=inbox"><font color="#FFFFFF"><font size="2">Messages</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=login&act=menu_err"><font color="#FFFFFF"><font size="2">Search</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=login&act=menu_err"><font color="#FFFFFF"><font size="2">Blog</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=login&act=menu_err"><font color="#FFFFFF"><font size="2">Classifieds</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=login&act=menu_err"><font color="#FFFFFF"><font size="2">Forums</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=login&act=menu_err"><font color="#FFFFFF"><font size="2">Events</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=login&act=menu_err"><font color="#FFFFFF"><font size="2">Groups</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=login&act=menu_err"><font color="#FFFFFF"><font size="2">Chat</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font size="2" color="#FFFFFF">My</font></u><a href="index.php?mode=login&act=menu_err"><font size="2" color="#FFFFFF">Calendar</font></a></b></td> </tr> <?php } else { ?> <tr> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=login&act=home"><font color="#FFFFFF"><font size="2">Home</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=user&act=inv"><font color="#FFFFFF"><font size="2">Invite</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="index.php?mode=messages&act=inbox"><font color="#FFFFFF"><font size="2">Messages</font></font></a></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <font size="2"><u><?php if($m_acc==0) { ?></u><a href="index.php?mode=login&act=menu_up"><?php } else { ?><a href="index.php?mode=search"><font color="#FFFFFF"><?php } ?></font></a></font><font color="#FFFFFF"><u><font size="2">My</font></u><a href="index.php?mode=search"><font color="#FFFFFF"><font size="2">Search</font></font></a></font></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <font size="2"><u><?php if($mem_blog=="Y") { ?></u><a href="index.php?mode=blogs"><?php } else { ?><a href="index.php?mode=login&act=menu_up"><font color="#FFFFFF"><?php } ?></font></a></font><font color="#FFFFFF"><u><font size="2">My</font></u><a href="index.php?mode=login&act=menu_up"><font size="2" color="#FFFFFF">Blog</font></a></font></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <font size="2"><u><?php if($mem_list=="Y") { ?></u><a href="index.php?mode=listing&act=all"><?php } else { ?><a href="index.php?mode=login&act=menu_up"><font color="#FFFFFF"><?php } ?></font></a></font><font color="#FFFFFF"><u><font size="2">My</font></u><a href="index.php?mode=login&act=menu_up"><font size="2" color="#FFFFFF">Classifieds</font></a></font></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <font size="2"><u><?php if($mem_forum=="Y") { ?></u><a href="index.php?mode=forums"><?php } else { ?><a href="index.php?mode=login&act=menu_up"><font color="#FFFFFF"><?php } ?></font></a></font><font color="#FFFFFF"><u><font size="2">My</font></u><a href="index.php?mode=login&act=menu_up"><font size="2" color="#FFFFFF">Forums</font></a></font></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <font size="2"><u><?php if($mem_eve=="Y") { ?></u><a href="index.php?mode=events"><?php } else { ?><a href="index.php?mode=login&act=menu_up"><font color="#FFFFFF"><?php } ?></font></a></font><font color="#FFFFFF"><u><font size="2">My</font></u><a href="index.php?mode=login&act=menu_up"><font size="2" color="#FFFFFF">Events</font></a></font></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <font size="2"><u><?php if($mem_grop=="Y") { ?></u><a href="index.php?mode=tribe"><?php } else { ?><a href="index.php?mode=login&act=menu_up"><font color="#FFFFFF"><?php } ?></font></a></font><font color="#FFFFFF"><u><font size="2">My</font></u><a href="index.php?mode=login&act=menu_up"><font size="2" color="#FFFFFF">Groups</font></a></font></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <font size="2"><u><?php if($mem_chat=="Y") { ?></u><a href="chat"><?php } else { ?><a href="index.php?mode=login&act=menu_up"><font color="#FFFFFF"><?php } ?></font></a></font><font color="#FFFFFF"><u><font size="2">My</font></u><a href="index.php?mode=login&act=menu_up"><font size="2" color="#FFFFFF">Chat</font></a></font></b></td> <td align="center" bgcolor="#0099FF" class="button-system bodygray"><b> <u><font color="#FFFFFF"><font size="2">My</font></font></u><a href="calendar"><font color="#FFFFFF"><font size="2">Calendar</font></font></a></b></td> </tr> <?php } ?> </table></td> </tr> <tr align="right"> <td colspan="9" class="maingray"><b><a href="index.php?mode=user&act=profile&pro=edit&type=account"> <font color="#FFFFFF">Account</font></a>  <font color="#FFFFFF"> </font>   <? $m_id=cookie_get("mem_id"); if($m_id==''){ ?> <a href="index.php?mode=login&act=form"><font color="#FFFFFF">Login</font></a>  </b> <? } else { ?> <a href="index.php?mode=login&act=logout"><font color="#FFFFFF">Logout</font></a> </b> <? } ?> </td> </tr> </table> |
|
#4
|
|||
|
|||
|
this is my index
<?/* */ require('data.php'); require('functions.php'); sql_connect(); $visit=cookie_get("visit"); $now=time(); $sql_query="select updated from stats"; $stats=sql_execute($sql_query,'get'); $num=sql_execute($sql_query,'num'); $day_of_week=date("w"); $month_start=mktime(0,0,0,date("m"),1,date("Y")); $week_start=mktime(0,0,0,date("m"),date("d")-$day_of_week,date("Y")); $day_start=mktime(0,0,0,date("m"),date("d"),date("Y")); if($num==0) { $sql_query="insert into stats (day_sgnin,week_sgnin,month_sgnin,day_vis,week_vis ,month_vis,vis,updated) values ('$num','$num','$num',1,1,1,concat(vis,'|$now'),$n ow)"; sql_execute($sql_query,''); } if($stats->updated<=$month_start){ $sql_query="update stats set month_sgnin='0', month_vis='0', updated='$now'"; sql_execute($sql_query,''); } if($stats->updated<=$week_start){ $sql_query="update stats set week_sgnin='0', week_vis='0', updated='$now'"; sql_execute($sql_query,''); } if($stats->updated<=$day_start){ $sql_query="update stats set day_sgnin='0', day_vis='0', vis='', updated='$now'"; sql_execute($sql_query,''); } $day=24*3600; if($now-$visit>=$day){ $sql_query="update stats set day_vis=day_vis+1,week_vis=week_vis+1,month_vis=mo nth_vis+1, vis=concat(vis,'|$now')"; sql_execute($sql_query,''); SetCookie("visit",$now,time()+60*60*24,"/",$cookie_url); }//if check($mode); ?> |
|
#5
|
|||
|
|||
|
this is the functions.php file which seem to be causing some problem since all the problems have this file name in them
http://www.eznom.net/s3/urbanmedia/...e/functions.php |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > PLEASE, MYSPACE SCRIPTs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|