Jump to content

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);
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.