Jump to content

khanahk

Member
  • Posts

    53
  • Joined

  • Last visited

Everything posted by khanahk

  1. It looks right to me, but maybe this will work?: Replace $subject_set = mysql_query("SELECT * FROM subjects", $connection); if (!$subject_set){ die ("Database query failed: " . mysql_error()); } with $thequery = 'SELECT * FROM subjects;'; $subject_set = mysql_query($thequery, $connection); if (!$subject_set){ die ("Database query failed: " . mysql_error()); }
  2. I think the fundamental answer you're looking for is... no. You can't use PHP in a non-PHP 'page', or 'document', e.g. blah.html, in the way that you can write JS in a non-JS document, e.g. blah.html. This is the difference between a 'script' language (JS) and a 'text-processing' language (PHP, ASP, and the others), so to speak.
  3. the website who.is provides Domain registration info for pretty much any domain. You may be able to find a culprit by name there.
  4. Notepad will get you through the night, but an Integrated Development Environment (IDE) will be your tool of choice as you progress. An IDE is just a really-fancy Notepad, with nice colors and 'indent-helping' and such for your code. Adobe Dreamweaver is a good one.
  5. There is an aspect of better 'workability' when a client lives in range of face-to-face communication... I've done websites for a couple people whose former webmasters up and left leaving me to pick up the scattered pieces of their Hosting logins, FTPs, etc. We had to hunt one down by the address posted for the domain administrator on who.is But the way 'communication' is going and has gone I'd certainly say that distance is not a limiting factor for getting the job done, only that distance allows for some folks to run and hide leaving customers hanging on a limb. But you can't beat face-to-face consultation... It's a natural thing. Person to person, having a conversation about what you need Just my experience.
  6. You may consider learning GIMP. It's a graphic manipulation program and.... it's free! I like it better than photoshop. http://www.gimp.org/
  7. Javascript would be a right direction for that. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Select a site</title> </head> <body> <script language="javascript"> function func() { var i = document.myform.myselect.selectedIndex; var site = document.myform.myselect.options[i].value; window.location.assign(site); } </script> <form name="myform"> <select name="myselect"> <option value="http://www.somesite.com">somesite.com</option> <option value="http://www.anothersite.com">anothersite.com</option> </select> <input type="button" value="go to the selected site" onclick="func();" /> </form> </body> </html> I believe that should do it. You can tweak it to your preference
×
×
  • Create New...