Reply
Old 05-06-2004, 05:30 PM Direct Web Input
Novice Talker

Posts: 5
Trades: 0
Hi, i know this may sound stupid or a dumb obvoius question, but please help, i am using the following code:
<?php
$link = mysql_connect("divineright.org" , "NotForYouToKnow" , "NotForYouToKnow") or die("could not connect\n");
echo "Connected Successfully<p>\n\r";
$db = $_GET['db'];
$db = preg_replace("/^[a-zA-Z_&]/i","",$db);
mysql_select_db($db);
$table = $_GET['jabaglyf'];
$table = preg_replace("/^[a-zA-Z_&]/i","",$table);
$query = "SELECT * FROM " . $table;
$result = mysql_query($query) or die("query failed: " . mysql_error());
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)){
echo "\t<tr>\n";
foreach ($line as $col_value) {
echo "\t\t<td>$col_value</td>\n";
}
echo "\t</tr><div>\n";
}
echo "</table>\n";
mysql_close($link);
?>
When i try to use just one of the Direct Inputs, it works fine, but when i added in the second one, it fails. Can you tell me what i'm doing wrong??

Last edited by Tinutarm; 05-06-2004 at 05:34 PM..
Tinutarm is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 04-25-2008, 12:38 PM Re: Direct Web Input
Experienced Talker

Posts: 46
Trades: 0
What do you mean by direct input? What second one?

What error do you get?
__________________
Squirrel bombing -> Home of the crasher squirrel
jeff_oneil is offline
Reply With Quote
View Public Profile Visit jeff_oneil's homepage!
 
Reply     « Reply to Direct Web Input
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.21739 seconds with 13 queries