fwbbetsy Posted October 9, 2006 Share Posted October 9, 2006 I am trying to set up a new site but keep getting errors on it ... Here is one of the errors I am getting:Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/cr4tpuu9/public_html/signup.php on line 16If anyone can help me I would appriciate it.Thanksbetsy Link to comment https://forums.phpfreaks.com/topic/23440-need-help-setting-up-a-new-site/ Share on other sites More sharing options...
Gruzin Posted October 9, 2006 Share Posted October 9, 2006 Can we see the code of signup.php? Link to comment https://forums.phpfreaks.com/topic/23440-need-help-setting-up-a-new-site/#findComment-106311 Share on other sites More sharing options...
fwbbetsy Posted October 9, 2006 Author Share Posted October 9, 2006 yes but it won't let me ... must be to big can I send it to your email?Betsy Link to comment https://forums.phpfreaks.com/topic/23440-need-help-setting-up-a-new-site/#findComment-106314 Share on other sites More sharing options...
AliasXNeo Posted October 9, 2006 Share Posted October 9, 2006 Open up signup.php and copy and paste line 1-16 here. Link to comment https://forums.phpfreaks.com/topic/23440-need-help-setting-up-a-new-site/#findComment-106317 Share on other sites More sharing options...
fwbbetsy Posted October 9, 2006 Author Share Posted October 9, 2006 <?phpinclude($DOCUMENT_ROOT . '/vars.php');include($DOCUMENT_ROOT . '/headfoot.php');mysql_connect($db_host, $db_user, $db_pwd);mysql_select_db($db_name);if ($QUERY_STRING == 'terms') { uheader(); echo("<div align=center class=\"big\">Terms and Conditions</div>\n"); $res = mysql_query("select content from html where type='terms'"); $terms = mysql_result($res, 0, "content"); echo($terms); ufooter();} else { $langs = array("English" => "English", "Arabic" => "Arabic", "Chinese" => "Chinese", "Czech" => "Czech", "Danish" => "Danish", "Dutch" => "Dutch", "Estonian" => "Estonian", "Finnish" => "Finnish", "French" => "French", "German" => "German", "Greek" => "Greek", "Hebrew" => "Hebrew", "Hungarian" => "Hungarian", "Icelandic" => "Icelandic", "Italian" => "Italian", "Japanese" => "Japanese", "Korean" => "Korean", "Latvian" => "Latvian", "Lithuanian" => "Lithuanian", "Norwegian" => "Norwegian", "Polish" => "Polish", "Portuguese" => "Portuguese", "Romanian" => "Romanian", "Russian" => "Russian", "Spanish" => "Spanish", "Swedish" => "Swedish", "Turkish" => "Turkish"); $res = mysql_query("select content from html where type='head1'"); Link to comment https://forums.phpfreaks.com/topic/23440-need-help-setting-up-a-new-site/#findComment-106318 Share on other sites More sharing options...
HuggieBear Posted October 9, 2006 Share Posted October 9, 2006 You've only provided lines 1-15 :)RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/23440-need-help-setting-up-a-new-site/#findComment-106331 Share on other sites More sharing options...
fwbbetsy Posted October 9, 2006 Author Share Posted October 9, 2006 Here is 16-19 $res = mysql_query("select content from html where type='head1'"); $hf = mysql_result($res, 0, "content"); echo("<html><head>\n<script language=\"javascript1.2\" type=\"text/javascript\">\nfunction TestURL()\n{\n var URL = document.nu.url.value;\n if(URL== \"\") {\n alert(\"You must provide an URL before testing!\");\n document.nu.url.focus();\n return false;\n }\n var URL = 'urltest.php?url='+URL;\n window.open(URL, '_blank' );\n return false;\n}\n</script></head>\n"); echo($hf); Link to comment https://forums.phpfreaks.com/topic/23440-need-help-setting-up-a-new-site/#findComment-106357 Share on other sites More sharing options...
redarrow Posted October 9, 2006 Share Posted October 9, 2006 just post the mysql database entry.as i can see from here the mysql syntex is wrong but we need to see the rest of the syntex to correct it ok. Link to comment https://forums.phpfreaks.com/topic/23440-need-help-setting-up-a-new-site/#findComment-106359 Share on other sites More sharing options...
fwbbetsy Posted October 9, 2006 Author Share Posted October 9, 2006 what do you need to see??? a certain file? there is a vars file would that help?Betsy Link to comment https://forums.phpfreaks.com/topic/23440-need-help-setting-up-a-new-site/#findComment-106362 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.