Jump to content

need help setting up a new site!!


fwbbetsy

Recommended Posts

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 16

If anyone can help me I would appriciate it.

Thanks

betsy
Link to comment
https://forums.phpfreaks.com/topic/23440-need-help-setting-up-a-new-site/
Share on other sites

<?php
include($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'");
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);

Archived

This topic is now archived and is closed to further replies.

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