php forum
php mysql forum
php mysql smarty
 
Topic Options
#224736 - 09/17/02 04:52 AM CREATE TABLE error
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California

   CREATE TABLE error to Del.icio.us Add to del.icio.us
  Digg CREATE TABLE error Digg it
I am in the final steps of testing a new hack for ubbt to let moderators add users to selected groups, but I am getting some errors while creating a new table with the SQL Command box in the admin menu. The table is created correctly, and is usable, but gives the following error:<br /><br />Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\www.newoutriders.org\ubbthreads\mysql.inc.php on line 155<br /><br />Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\www.newoutriders.org\ubbthreads\mysql.inc.php on line 121<br /> <br />Anyone have any ideas? I am using this SQL command, which is copied from Max's Calendar 3.0 hack (which gives the same error btw)<br /><br /><pre><font class="small">code:</font><hr><br />CREATE TABLE w3t_groupmods (<br /> GM_Username varchar(30) NOT NULL,<br /> GM_AddGroup tinyint(3) DEFAULT '3' NOT NULL,<br /> GM_RemoveGroup varchar(1) NOT NULL,<br /> KEY GM_Username (GM_Username)<br />);<br /></pre><hr>

Top
#224737 - 09/17/02 07:27 AM Re: CREATE TABLE error [Re: neuron]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I got the same warnings when I tried that query with 6.1b2. The warnings do not occur if I do the query with phpMyAdmin or with the mysql command on the server. <br /> <br />I think the problem is that the script is attempting to display the query results, but the CREATE query does not produce any results. "CREATE" probably needs to be added to the list of commands for which results are not displayed. <br /> <br />In admin/dbdocommand.php: <br /> <br />if (!preg_match("/DELETE|INSERT|UPDATE|REPLACE|ALTER/i",$command)) { <br /> <br />Reported as bug.


Edited by Dave_L (09/17/02 09:09 AM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#224738 - 09/17/02 01:10 PM Re: CREATE TABLE error [Re: joeuser]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
OK, well I guess my syntax is correct, so I'll keep this code and advise people to expect and then ignore the error in the hack directions.<br /><br />Thanks Dave_L! <img src="/forum/images/icons/smile.gif" alt="" />

Top


Top Posters Last 30 Days
AllenAyres 18
Gizmo 12
sirdude 6
GEN 3
tackaberry 2
Philipp 2
willing 2
Who's Online
1 Registered (zahqan), 47 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by Gizmo
Yesterday at 11:45 PM
Multiple Identity Detector
by MattUK
Yesterday at 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks