Jump to content


Photo

need help setting up a new site!!


  • Please log in to reply
8 replies to this topic

#1 fwbbetsy

fwbbetsy
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 09 October 2006 - 03:50 PM

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

#2 Gruzin

Gruzin
  • Members
  • PipPipPip
  • Advanced Member
  • 448 posts
  • LocationGeorgia

Posted 09 October 2006 - 03:53 PM

Can we see the code of signup.php?
I don't need your script, I'll try to write it myself

#3 fwbbetsy

fwbbetsy
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 09 October 2006 - 04:01 PM

yes but it won't let me ... must be to big can I send it to your email?

Betsy

#4 AliasXNeo

AliasXNeo
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 09 October 2006 - 04:05 PM

Open up signup.php and copy and paste line 1-16 here.

#5 fwbbetsy

fwbbetsy
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 09 October 2006 - 04:09 PM

<?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'");

#6 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 09 October 2006 - 05:06 PM

You've only provided lines 1-15 :)

Regards
Huggie
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#7 fwbbetsy

fwbbetsy
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 09 October 2006 - 05:41 PM

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

#8 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 09 October 2006 - 05:42 PM

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.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#9 fwbbetsy

fwbbetsy
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 09 October 2006 - 05:44 PM

what do you need to see???  a certain file?  there is a vars file would that help?

Betsy




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users