Jump to content

whitepony6767

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

whitepony6767's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Here is the code I am trying to make work. However it kills the javascript all together. //Contents for menu 5 var menu5=new Array() <? $linksx=mysql_query("SELECT * FROM links ORDER BY title"); while($links=mysql_fetch_array($linksx)) { $link_title = stripslashes($links['title']); ?> menu5[<?=$links['link_id']?>]='<a href="<?=$links['link']?>"><?=$link_title?></a> <? } ?> Here is how the hardcoded menu 2 looks. //Contents for menu 2 var menu2=new Array() menu2[0]='<a href="?page=agentprofiles">Panic Agents</a>' menu2[1]='<a href="?page=newprofile">New Agent Profile</a>' menu2[2]='<a href="?page=editprofile">Edit Agent Profile</a>' any insite you could give me would be very useful.
  2. hmmm... I am not sure. I have written all these scripts in a text editor and uploaded them.  I have never had to compile any of the code. is there something that I am missing, or a set of functions that I need include? thanks for your help.
  3. here is the connection info from the main page... the index.php includes the other php files. i have changed the connection info as to not give out my login information. <?php $dbh=mysql_connect ("<IP of server>", "<admin login>", "<admin password>") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("main"); //Gets server vars if (!empty($_SERVER)) extract($_SERVER); //Gets get (query string) vars if (!empty($_GET)) { extract($_GET); } else if (!empty($HTTP_GET_VARS)) { extract($HTTP_GET_VARS); } //Gets post (form method=post) vars if (!empty($_POST)) { extract($_POST); } else if (!empty($HTTP_POST_VARS)) { extract($HTTP_POST_VARS); } $date = date("Y-m-d H:i:s"); ?>
  4. I have these same scripts running on my personal webserver, however they will not run on a network solutions hosted server. Please anyone help me if you can. here is a super basic example... and the error that i get. <? $bio=mysql_query("SELECT text FROM about_bio LIMIT 1"); $bio=mysql_fetch_array($bio); $bio_text = stripslashes($bio['text']); ?> mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /data/12/1/117/46/1117209/user/1178384/htdocs/about.php on line 3
×
×
  • 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.