Jump to content

error msg please help


jvrothjr

Recommended Posts

We will try this in this forum.

 

I have a database named [grouplog] with 2 tables {role & group}

I can query the role and get data back and printed to the screen

but can not get data back from group. Here is the simple code I am using

if any one can help please?

 

<table border=2 align=center><TD>Role</TD>

<?php

mysql_select_db (\"grouplog\");

$result = mysql_query (\"select role from role\");

while ($row=mysql_fetch_array($result)) {

Print (\"<tr>\");print (\"<td>\");print $row[role];print (\"</td>\");print (\"</tr>\");

}?>

</table>

 

<table border=2 align=center><TD>Group</TD>

<?php

mysql_select_db (\"grouplog\");

$result = mysql_query (\"select group from group\");

while ($row=mysql_fetch_array($result)) {

Print (\"<tr>\");print (\"<td>\");print $row[group];print (\"</td>\");print (\"</tr>\");

}?>

</table>

 

Here is the error msg I get

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:Program FilesAbyss Web Serverhtdocstestingtestgrp.php

Link to comment
Share on other sites

Thanks that was it. Was driving me crazy..........

changed it step 1 pasted now others thanks...

pasted another topic for the other one.

 

join multi tables from multi databases but all on one machine....

 

That is my next hump to get over .............

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.