Latest Shouts In The Shoutbox -- View The Shoutbox · Rules
Jcink -- mmm.
Dan -- ehh not that great
card123 -- g2g ttyal =]
card123 -- Check out my latest mod, its amazing!! its in the addon section
card123 -- i dont have a problem with members logging in, i have a problem getting them to post lol
Skullmonkey -- im lucky if someone even logs in on mine tongue.gif
Corey.B -- I had a really active board that got up to about 40 active members a day. Then I kinda messed it up lol

[ Smilies | BBCodes ]

Profile
Personal Photo

No Photo

Options
Custom Title
EGYCODE doesn't have a custom title currently.
Personal Info
Location: No Information
Born: No Information
Website: No Information
Interests
No Information
Other Information
Age:: 25
Gender:: Male
Skype:: No Information
Statistics
Joined: September 16, 2009
Status: (Offline)
Last Seen: November 10, 2009 04:36 pm
Local Time: Nov 22 2009, 12:21 AM
4 posts (0.1 per day)
( 0.00% of total forum posts )
Contact Information
AIM No Information
Yahoo No Information
ICQ No Information
MSN No Information
SKYPE No Information
New Posts Message: Click here
New Posts Email: Click Here
Signature
View Signature

EGYCODE

Member

Topics
Posts
Comments
Friends
Video
Music
My Content
September 30, 2009 04:59 pm
Hello,

I found this bug when I call a non existing page,limit or show variables which will cause MySQL error and php error like this,

Arcade.php?cat=&limit=666666666&show=666666666&page=6666666&arcade=6666666

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /**********/Arcade.php

Error occurs here,

CODE
while($g=mysql_fetch_array($catquer)){


I think this is a bug as it showing directory and MySQL error.

Any help will be appreciated.                                                                                                                                                                                                                                                                                                                                                                                               
September 16, 2009 07:09 pm
Hello,

I tried to add an option to edit and replace category name which already present in the database but nothing happened huh.gif

Please review my code below:

CODE
<?php
$editcatname=htmlspecialchars($_POST['editcatname'], ENT_QUOTES);

if($_GET['do']=="edit") {
vsess();
run_query("UPDATE `phpqa_cats` SET `cat` = '$editcatname' WHERE id = '$_POST[gamecat]'");
}

$catquery=run_query("SELECT cat FROM phpqa_cats");
while ($catlist= mysql_fetch_array($catquery)) {

echo '<form action="?cparea=cats&do=edit" method="POST">';
echo "<input type='hidden' name='akey' value='$key'>";
echo  "<input name='gamecat' value='$catlist[0]'>";
echo 'New Category Nmae: <input type="text" name="editcatname">';
echo '<br><input type="submit" name="edit" value="Edit"></form>';
}
?>


I don't have experience in PHP, but I always try smile.gif                                                                                                                                                                                                                                                                                                                                                                                               
Last Visitors


September 16, 2009 10:47 pm



Comments
No comments posted.
Add Comment



[ Script Execution time: 0.1514 ]   [ 23 queries used ]   [ GZIP Disabled ]   [ Server Load: 0.90 ]