Jump to content

joseph

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

joseph's Achievements

Member

Member (2/5)

0

Reputation

  1. I'm testing my site locally on a wamp server. I have a links.php having: <?php function topnav() { echo' <a href="...."></a> } '; ?> It does not seem to work if I call it in index.php: <?php topnav(); ?> I want to call the topnav() in index.php so that I don't to edit the links everytime I add a new webpage. @jason_kraft: I also tried <?php include("filename.php"); ?> however it gives me an error Warning: include() [function.include]: URL file-access is disabled in the server configuration... Does javascript has something like this? I might need it in javascript codes because my website is currently in .html extensions.
  2. How do we call a certain function from another webpage (function.html) to show in this particular page (index.html)? For example if I have this in my function.html <a href="http://sitename.com">sitename</a> and I would like to call that function to show in the index.html without using iframes. Thanks.
  3. Thanks Ben. I still cannot create the S# field name I enlclosed them in backticks like `S#` or (`S#`) SQL query: CREATE TABLE EMPLOYEE( `E#` NUMBER( 5 ) NOT NULL , EFNAME VARCHAR( 20 ) , ELNAME VARCHAR( 20 ) ) MySQL said: Documentation #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NUMBER(5) NOT NULL, EFNAME VARCHAR(20), ELNAME VARCHAR(20), ' at line 2 I think Tyche is right, maybe it is possible with other SQL applications like SQL server?
  4. Thanks. Should I put a sitemap.xml or robots.txt deep inside a sub directory so that crawlers will be able to detect my subpages? Like for example, in sitename.com/mysite/sitemap.xml so that crawlers will be able to find sitname.com/mysite/subpages/.. ?
  5. Hello, how do we make a title like "My Website" appear in search engines (such as google) as title? Should I just add a meta descriptions and keywords? or is it the header title tags that makes it work? For example: 1. My Website <- How to make this possible? This site is ....... 2. Amazon.com Books, etc...... Thank you.
  6. CREATE TABLE EMPLOYEE ( E# NUMBER(7) NOT NULL, EFNAME VARCHAR(20), ELNAME VARCHAR(20) ); When I run these sql statements in PhpMyAdmin it does not add E# but changes the EFNAME to EEFNAME. Thanks.
  7. I have search about htmlspecialchars_decode: http://www.phpfreaks.com/phpmanual/page/function.htmlspecialchars-decode.html But not sure how to implement them on sendmail functions. $subject = $params['subject']; $body = $params['body']; $replacements = array(); $replacements['{sitename}'] = $mosConfig_sitename; $replacements['{name}'] = $invitor; foreach ( $replacements as $search => $replace ) { $subject = str_replace( $search, $replace, $subject ); $body = str_replace( $search, $replace, $body ); } $mail = mosCreateMail( $mosConfig_mailfrom, $mosConfig_fromname, $subject, $body ); $mail->AddAddress( $this->invitee_email ); $mail->IsHTML( false ); if ( !$mail->Send() ) { $this->_error = 'mosMail error!'; return false; } The mails I received are having <br /> tags but html are actually being decoded. What I want is to decode those <br /> tags and make them disappear but maintains having the line space when I received my mails. I'm thinking that I might need the strip tags php function? But how do I implement them on this $mail? Thanks.
  8. In PhpMyAdmin we have these 3 export options to choose from: 1. Insert 2. Update and 3. Replace. Sound very easy to understand but how is it done exactly to the tables having an existing data? For sure, I know the most common when we use INSERT Export type to an existing database, it will insert it all w/o errors that is if the tables being inserted to the new database does not have any identical table_names. How about for the UPDATE and REPLACE? How will it react when we insert them to the new database if there are identical table_names? ???
  9. I don't know if this is already posted or not, not sure how/what term to search for. I'm trying to make the root index.php to automatically redirect to the page if the user browsing the index.php is from a specified country. Like for example: US user browses index.php -> automatically redirected to /en/index.php India user browses index.php -> automatically redirected to /in/index.hp China user browses index.php -> automatically redirected to /cn/index.php May I know how to do this?
  10. Thanks I used the window.onload function so that I can use the tooltips inside the div tags window.onload=function(){activateTooltips("ToolTips")};
  11. I have a javascript that will display a tooltip whenever it finds a link (e.g. <a href="...">...</a>) in a page. But I want to disable it on some parts of the <a href=""> ... </a> tags. Any suggestions?
  12. I'm trying to find a software/program/application to test the javascripts. Any suggestions?
  13. Hello, I'm trying to find a powerful javascript program that works like VB.Net I've seen somewhere in the internet before about J++.Net or something, but I forgot the link to it. Does the J# in visual studio 2005 considered more powerful than any other javascripting programs?
  14. Maybe your mail client has specified it as spam? - Not sure. But it happened to me last time when I send it every minute to test my email form, then yahoo mail thought I was spamming so they blocked all emails coming from that site - I guess.
  15. Hello, I'm not sure whether this has/will have anything to do with PHP. I'm trying to wrap a certain website and then make it load to the center position automatically when the page is loaded. I tried anchor but it doesn't seem to work. And the main menu of that website seems to align itself according to the width specified - but I need to the iframe to be 300 pixels. <div align="center"><iframe src="www.phpfreaks.com#Summary" width="300"></iframe></div> Or how to make them position to where their last scroll position is the next time when they click the links inside the iframe? Thanks
×
×
  • 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.