Jump to content

phpnoob90

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Everything posted by phpnoob90

  1. All of my website content is in a table, the navigation bar is currently on the right hand side but id like to move it to the left but im not sure how without making a whole new table,please take a look at my code below and see if you can help.The cell that i want moved from right to left is: <td valign="top" class="bg_side"><? require(FULL_PATH."/include_left_index.php");?></td> Thanks a lot, any help is MUCH appreciated. <body> <div style="margin-right: auto; margin-left: auto; width: 770px;"> <table style="width:100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <td valign="top" class="bg_body"><table border="0" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <td><img src="<?php echo $siteurl ?>/images/top01.gif" width="531" height="27" /></td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="<?php echo $siteurl ?>/property_search.php"><img src="<?php echo $siteurl ?>/images/but_01.gif" width="166" height="49" border="0" alt="" title="" /></a></td> <td><a href="<?php echo $siteurl ?>/seller_login.php"><img src="<?php echo $siteurl ?>/images/but_02.gif" width="125" height="49" border="0" alt="" title="" /></a></td> <td><a href="<?php echo $siteurl ?>/buyer_login.php"><img src="<?php echo $siteurl ?>/images/but_03.gif" width="112" height="49" border="0" alt="" title="" /></a></td> <td><a href="<?php echo $siteurl ?>/aboutus.php"><img src="<?php echo $siteurl ?>/images/but_04.gif" width="128" height="49" border="0" alt="" title=""/></a></td> </tr> </table></td> </tr> <tr> <td><img src="<?php echo $siteurl ?>/images/top02.gif" width="531" height="56" /></td> </tr> <tr> <td><table border="0" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <td class="bg_grey"><table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> </td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="index.php"><img src="<?php echo $siteurl ?>/images/but_home.gif" width="56" height="19" border="0" /></a></td> <td><a href="<?php echo $siteurl ?>/sitemap.php"><img src="<?php echo $siteurl ?>/images/but_sitemap.gif" width="74" height="19" border="0" /></a></td> <td><a href="<?php echo $siteurl ?>/contact.php"><img src="<?php echo $siteurl ?>/images/but_contact.gif" width="86" height="19" border="0" /></a></td> </tr> </table></td> </tr> </table></td> <td style="width:300px"><img src="<?php echo $siteurl ?>/images/mainpix.gif" width="300" height="40" /></td> </tr> </table></td> </tr> <tr> <td><img src="<?php echo $siteurl ?>/images/mainpix01.gif" width="531" height="227" /></td> </tr> <tr> <td style="height:13px"> </td> </tr> <tr> <td> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <!-- start main content --> <form name="frmIndex" action="searchlisting.php" method="post"> <table style="width:100%" border="0" cellspacing="0" cellpadding="0"> <tr><td> <table style="width:100%" border="0" align="right" cellpadding="0" cellspacing="0" class="bg_color_mainindex"> <tr> <td class="bg_topgrey"> <img src="images/title_findahome.gif" width="118" height="16" alt="" title="" /></td> </tr> <tr> <td><table class="bg_color_mainindex" style="height:100px;" width="99%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td> </td> </tr> <tr> <td style="height:30px"><table width="100%" border="0" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <td width="203" style="width:330px"><input name="city" type="text" class="input02" value="Enter City" style="width:140px" /></td> <td width="0"> <select name="state_id" class="select03"> <option value="">County</option> <option value="<?php echo $rows[state_id]?>"><?php echo $rows[printable_name]?></option> <? if($country_id=="") $sql="select s.state_id, s.printable_name from ".TABLE_PREFIX."state s, ".TABLE_PREFIX."country c where s.country_id=c.country_id and c.iso='".C_ISO."' "; else $sql="select s.state_id, s.printable_name from ".TABLE_PREFIX."state s, ".TABLE_PREFIX."country c where s.country_id=c.country_id and c.country_id=$country_id"; if($rs = mysql_query($sql)){ while($rows=mysql_fetch_array($rs)){ ?> <? } mysql_free_result($rs); } ?> </select> </td> <td width="50" class="txt_link02" style="width:130px;"> -- or --</td> <td width="151" style="width:130px"><div align="left"><input name="zip" type="text" class="input02" value="Post Code" style="width:120px" /> </div></td> </tr> </table></td> </tr> <tr> <td style="height:30px"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="208" style="width:100px"> <select name="price_min" class="select"> <option value="" selected="selected">Price Range</option> <? $increment=500; for($i=500; $i<=1000000; $i=$i+$increment){ if($i>3500){$increment=3000;} elseif($i>10000){$increment=5500;} elseif($i>10000){$increment=15000;} elseif($i>20000){$increment=25000;} ?> <option value="<?php echo $i?>"><?php echo CURRENCY.number_format($i)?></option> <? }?> </select> </td> <td width="124" style="width:60px"><div align="center"><span class="txt_link02">-- to --</span></div></td> <td width="270" style="width:130px"> <select name="price_max" class="select"> <option value="" selected="selected">no maximum</option> <? $increment=1000; for($i=1000; $i<=1000000; $i=$i+$increment){ if($i>3500){$increment=3000;} elseif($i>10000){$increment=5500;} elseif($i>10000){$increment=15000;} elseif($i>20000){$increment=25000;} ?> <option value="<?php echo $i?>"><?php echo CURRENCY.number_format($i)?></option> <? }?> </select> </td> <td width="398" class="txt_link02" style="width:180px"> -- <a href="property_search.php" class="txt_link02">More Search Options</a> --</td> </tr> </table></td> </tr> <tr> <td style="height:30px"><table style="width:100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="width:195px"> <select name="beds" class="select" style="width:145px"> <option value="99" selected="selected">Beds</option> <option value="1">1 or more</option> <option value="2">2 or more</option> <option value="3">3 or more</option> <option value="4">4 or more</option> <option value="5">5 or more</option> </select> </td> <td style="width:120px"> <select name="baths" class="select"> <option value="99" selected="selected">Baths</option> <option value="1">1 or more</option> <option value="2">2 or more</option> <option value="3">3 or more</option> <option value="4">4 or more</option> <option value="5">5 or more</option> </select> </td> <td class="txt_content01" style="width:170px"> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" class="bg_findbottom"> <table style="width:100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="393"></td> <td><input type="image" src="images/but_search01.gif" onclick="javascript:SearchTop();" /></td> <td><input type="image" src="images/but_reset01.gif" onclick="this.form.reset(); return false;" /></td> <td> </td> </tr> </table> </td> </tr> <tr> <td><img src="templates/images/spacer.gif" width="1" height="1" /></td> </tr> </table></form> <table style="width:97%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td style="height:30px" valign="bottom"><img src="images/title_featuredhomes.gif" width="165" height="19" alt="" title="" /></td> </tr> <tr> <td style="height:20px "> </td> </tr> </table> <!-- end main content --> </td> </tr> </table></td> <td valign="top" class="bg_side"><? require(FULL_PATH."/include_left_index.php");?></td> </tr> </table></td> </tr> <tr> <td class="bottom"><table border="0" align="center" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <td class="txt_link03"><a class="txt_link02" href="<?php echo $siteurl?>/optinout.php">Newsletter</a> | <a class="txt_link02" href="<?php echo $siteurl?>/vote.php">Poll</a> | <a class="txt_link02" href="<?php echo $siteurl?>/faq.php">FAQ</a></td> <td class="txt_link02"> </td> </tr> </table></td> </tr> </table> </div> </body> </html>
  2. also i heard that firefox uses favicon.png, is this true? i have also tried with this format and still no luck
  3. yeh,i have also put the favicon.ico in the htdocs folder, the folder the index.php is in and numerous other places and no luck, the icon flashes up for a second and then goes back to default, its very strange.
  4. my favicon only displays whilst the site is loading, as soon as it has finished loading it dissappears, anyone have any idea why this might be? this is happening in firefox i have yet to test if it displays correctly in IE any help is much appreciated
  5. I currently have a real estate website, it has a search form, it currently searches the database for all propertys for sale and rent but would like to change it so that it only searches for rented property is there a code i can put behind the button to make this possible the code behind the button is currently onclick="javascript:SearchTop() for a better idea of what im talking about please see my website http://www.houseswitch.co.uk any help is much appreciated Thanks
  6. Thanks, i have turned off notices and everything seems to work, seen as I was unable to change the servers php.ini I have put ( error_reporting(E_ALL ^ E_NOTICE) at the top of each script which took a fair amount of time but the site appears to be working now although I have not thoroughly tested it due to my server being down all day, damn streamline.net hosting Thanks a lot for the advice.
  7. I read the instructions and did everything it said in the order it said, the website came with a large number of scripts, these scripts are not zended, the only script that is zended is the one i have posted, the error posted is not the only error i have but i was trying to get this one sorted first seen as it is zended and seems more of a challenge, as i would not want to spend a long time fixing everything and not be able to fix this error.
  8. I dont think it is possible to change the php.ini file seen as i am using a shared server from streamline.net
  9. The rest of the php files are not zended, I dont want to do anything illegal, all i want is for the website i paid for to work, if you cannot help then that is fine, but im just asking for help which is what this forum is for.
  10. I have contacted the suppliers but they just dont reply, this is my mess of a website, www.houseswitch.co.uk, if i sent you the scripts, do you think you would be able to point me in the right direction of getting it all sorted? Your help is much appreciated.
  11. okay sorry, im just trying to install a website i have purchased, and it has come up with loads of these errors, i havent wrote the code myself and have very little php knowledge,
  12. i am wondering if i even need this php files, i believe it just gives a message if i do not have zend optimizer installed on my server ??h
  13. I have a number of notices on my website like the one below, i have solved many of them but this one has confused me, Notice: Use of undefined constant INSTALLTIME - assumed 'INSTALLTIME' in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/adminpanel/system_cls.php on line 144 the system_cls.php doesnt have a line 144 below is the code from system_cls.php <?php @Zend; 4123; /* ñ!This is not a text file!Þí */ print <<<EOM <html><body><a href="http://www.zend.com/products/zend_guard"><img border="0" src="http://www.zend.com/images/store/safeguard_optimizer_img.gif" align="right"></a><center><h1>Zend Optimizer not installed</h1></center><p>This file was encoded by the <a href="http://www.zend.com/products/zend_guard">Zend Guard</a>. In order to run it, please install the <a href="http://www.zend.com/products/zend_optimizer">Zend Optimizer</a> (available without charge), version 3.0.0 or later. </p><h2>Seeing this message instead of the website you expected?</h2>This means that this webserver is not configured correctly. In order to view this website properly, please contact the website's system administrator/webmaster with the following message:<br><br><tt>The component "Zend Optimizer" is not installed on the Web Server and therefore cannot service encoded files. Please download and install the Zend Optimizer (available without charge) on the Web Server.</tt><br><br><b>Note</b>: Zend Technologies cannot resolve issues related to this message appearing on websites not belonging to <a href="http://www.zend.com">Zend Technologies</a>. <h2>What is the Zend Optimizer?</h2><p>The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been available without charge, since the early days of PHP 4. It improves performance by scanning PHP's intermediate code and passing it through multiple Optimization Passes to replace inefficient code patterns with more efficient code blocks. The replaced code blocks perform exactly the same operations as the original code, only faster. </p><p>In addition to improving performance, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Guard. </p><p>The Zend Optimizer is a free product available for download from <a href="http://www.zend.com">Zend Technologies</a>. Zend Technologies also developed the PHP scripting engine, known as the <a href="http://www.zend.com/products/zend_engine">Zend Engine</a>.</p></body></html> EOM; exit(); __halt_compiler(); ?> 20031207021445716424xù Ÿ2Å<ÏoÜÆÕ„¢Â¶”¦Fƒ4@ìîJŽWKr†CRÒn!Û«X…b©«Uš ûƒ+m¼ZnI®m554ÇhOE|ÿŽÁ÷!’èÐSžzjzpÑS‘CúfH‡\’K'JX–VïqÞ{3oÞ¯y#j&nÏä¶í9sw`{[òÁt°Å•=xa]U5™¦ æ—ö컸ñƒ·ß¹½O)U“‹KïÇ“.f_¬©šeZ:ü§1ÀF¶?8ïö\·w¹^ÓuBtDÀœÑ_Økª‰4dÌ¢ä¡=Omˆ [„‘¹öY÷¢ã¬«ŠŽTSQhü«K6ÆÀ%1 9‡ÅXò|·ëÚ³Io`¯kŠjªºj)‹'4žy“žwn{@dÓ¬(„Åýžgܵ§Ôõ^Ó-KÑ4ÑÐɳÝ1xÇŸØë5dè†f©D§9aÀîpÍ2QuÃTýÑxbwíÇcÏ÷ÖUËÂ&Ö‰E½"‘(»žo»]ï|îGÓîh>øcgº¦ë qL·…Ø,ä{ɼÓÃÃîñ^çÞU¾ZÔü½š´bëTï /ÀÓ÷¦ö¤âþ3á<)Rgïöa«{Üní¼÷k<âLûBd¥KÙßšÏB¤k᮹žðo!ð!µ o‚ï×T…h–nbΑž…H×kªÖ NÂF¤!&@­‡y&¥j™¿¯¦È˜hHO9£ûµ8K¦4¸š°è†4žz~o2á¬*Ì9ÿ.íhÀ ·ßjµÅÁ,é0ÛѨR»õýÓÖI§{Ú>QŸ¥ ¹?ñ_ë"Ë>½J½¿8š)0á•“È/%Ñï2kìÒB´F¡4IóãôÊ&„y/üæ*<$¯¦+2÷YÐYÀhgo5ª½|¡½=õCì£á§Á‰5#­¢©q ý¦‚L…3À7’+ìA§(îÀûˆï51{ô•tÌØ/aéÓlvpÌ2–®¤Vûäàè~‚œÖ]R·ð–•` K,g gÍ‘¡**æ‚™äѽrr§}pÜéÞß{³•àLçZá‚ڽI´Û·üée&M—Þ_¾SVUà ñã’­ÂÐür»Ÿár7ßÈÛ1z›ÄJìbˆŒ4JÊuXN®w–Û†çËôûB™~³D¦;=Ÿ¹½¡–i¹¡ŽD/%Ó³b™þT(ÓÓ%2yú{ü´\ËÍu$~ilËöq¡lf;)Ú§qt ñèÀЂc,sÑ"\z/…}ÏðN»¹8$‹ãöêwJDa«mfGD,ô€ÑÐâO/ŽØ £#î°8Ü×ËÑÕ¤çÒíÏ/éjÒ³ºšôÿåè¢<_hIõ™ëÌl׿L“FÒk¤‘ôR9ÒXje’†ZŒx§ö#obû>›,ýOXÒãR!Måa`饂s†˜‡F5æLçšs&¨1€?(ï2Üߦ÷—¥‰l=K¦×„îß¾™·éïéALK_I‚ScÓfXN8ݤTq¬_ó\Ap ƒ}¸žL_tè8æ³ÃñÀž²d°U:OÙzDIF¢rÁõ(ãF,KÍ'“î¬çŸw}§;ìC*«AZg(H¥™ 7öí¹;Y¯šnÁÛÔ LGÎA%ªXÓ‚ôÜ”<€… k/ÿL3 ú< ¶Oá¶bÄ+™ù‚í»ãÌ.Ol?¡4€—*¤ðôUÔ@ûÍB‚DDjÍ,žÖDžpF0¶¿×Ù;ì¶Úí£v’1ˆË0†…š ™¸ƒ˜Z¼§!i¿Rž/=íU‘‚*¹Ü±/fˆå;Ît4>›»=ê0vû®\o ñ#ei€Ë°^ZIïèc±^“Z=Á„À.&ÒîpüPöüˉݨÌzÃáxz¶­ÏïLì‘¿­é7vä™: Ln÷úž3™ûöŽüh<ôÏ·u]DùÜŸûÛºÂ>ùÎl[~ì;îÐv·emöX†7Aú×F#ž¯®Éðô{ƒg®3Ÿkgâ¸Û¶áÙ¡µßš7þ‰½-«Fª4wûÍý˜:¹åº€(ïÖûÍaƒl?Ï)'ìÖAÂf„õI^BÅ ýhÝâ*Z)(Ѧfå&¶õhÖ6˜».¤km׃)¢•¥ T9Mj€…$9xv½;žù2=®iT|û±_·÷°ü¶"{î Q9÷ýÙv½N‹Òýùxâkg­J×ÊÖ»ÌF=@oó"B±i¡&o®­ÅÄÿË|ß‚ÕÌ/@Ü­G.˜­Ét£ÊO òx®È~Ï=³ýF¥ÛŸô¦*ͪüºÜnuÃ)ƒUzlUÝÜY Ê•²¨ƒ{äR3¼xG^O/%Ýo+QÍŒ‚kûwAy^¬iŠFtZU3£T˜ñ´ÁãVì¥_àÌKçü8óS¥ðì‰=ðå›òÈu.ÄüçæÿjÈH—r¢~/·ö…Åä_0ðªÅ]4=Âi¤g(Neê-èBIV(}êSî;U!²©\[¨žX¿ç|òPHÑ M‰gP“^I>µÐÇ|f”‡En5éoIO/r«-5·OGAìhºUØFÒ·2=BˆO?ÊÕ'€¤Ã>†$༘¡`žfåó€¥_„]׃Ñâ`¦¨­G̽9d8ÕIA×’ý?âda>YWW¬TÙëtØbQ¯Z$Qˆ$°G¤OÊËÂód!tÃäÉB¤_åËbÆ;eø_йÝÇ4ž½[×Ó„`ÞTEv½5ÕB©¦A(’ë<¢¿Áº…TVœ=zXh¦n –§÷Ð$dæŒ~ö/ÓgHÝ㣓ŽÈS¢ §ž.=–0ÄLóA}`„ƒ"‹\#¨ãTdÁj#CæF°2}4+øÅÆOöl_$iTÃ÷—N ¦º¦-™ÌmõJB‹B`;/ϪÊÎm×–ÇCÎäô‚¶†-";ß,Áò'I–Wbeæ*ŸÕÌŒvÉ!Âû¹i …ö“ÅŒ\Ó¨äî3G‰Ž•ˆ<‡‘RJDò”-(3˜áŠ‘:DrtH0½€S Bä9Tˆ,S!RB…H‘ ‘""ËTˆª)¯B¤P…â :0‹º4pmXód¢.Í+Øé'ý¢í­QH¸˜vÓ’áaülàà«YÚª:˜ˆFפœ¶îþrm¬VžÉcu¦ÀØ1½¥)¼Ü`‚ô½W£.=-å®+Øå,,Q^5/ÖAJG(]É_g¢¥ëž¹ë¨72òhð)ˆpÎÑb }±ä@Ñx ^iM„{KÏVéß©@#Hv!?›6*Ècl·"³ c£r=–þÌçPIÚ˜JóØy“8”û—´ý.|;|íÉ×’cþ!sL:+Å)T¥y›}zÑÑ^N“Q2/g‘ayp¯)?‘~–ì€Îáb5[pAÂñ=ÉqAôäTþ_9Ñ r‹5ˆð4œ¾ûY²R·’à„gq›jÈ’PY£XeX)&b…-°t5ÖU#„-ÃPi·$ë5Ë@* Ãxþn4(ÃØ~X˜‘^0ûZfoŒb{ŸƒÄG+{tË:g㩈iJKJ¼*L‡)$z˜'Pˆh¼¶F¯¤ŠfÒÔ7vTï;ÃËææÆÖÍMú‰öä57ë§ÞXÜlðöGé4Q¡qÿ H„:BÆ-7‘ˆa.´Oı¦!çØv “ðÜ°˜¯”°€6(²¿²ÔvjÆ9oæ¹Ø†Vâ“b½SîTŒ¢æbRhî&þ*:rೌ‰ß¦¶Všê€¨|œ8ܤ»â“Â"!ã\",J$„EÒ§ùÂ"žÑqYuUàák ¸ªAƺûíZMîÜkÉ·[‡G?ïÿ°}ðƽŽÜi½Ý‘ÚòþÑQ§Õ–ïìÝ¿Ô,ùÍ£»û­»Øn½yôüX«5×xá-~˜o ÝïÌú=— •¨¸Úw|ß¹ØV¢ê©lY7vä‹žæ F«¦ªXMÕ,VL…jÌ_mBi­8ƒYÎtM‚‚õål'DžÃ ß;–ÃÑ~–êKuNÄ*A |‰‘‹Š>Þ[…ð<I'3<_U±!Éß¡~b'Ës-NuàËÖ‚o\©önƒz|¥Ú 6|g¦šñlU@œò•äEP÷Ź°hmG^}¾:°©Iod½ÿMAXÊÔ?ÐìéÐy´åL'No؈ŽÃ76å÷²ñéó6ŠÓ·ÁkËtvòñë7eZQ¡WFŽ+´äÞt(Íl·w³žÿÚx´T¶Âzý Ý“…lå¼³ZÜ¡gFõµ{ªòO*—D¯.% Ÿ3ÛoMlúãí˃áFu09Ž_ÝÜb–e‹À¸ {ª;_tàÉçùIø‰lO<›N(мã\Ìæ¾=d3´‘X÷[ÕêæfáÔÔoŠ«¿?£å<–m°U´úðÐö~F±±œ…%’R•Ñ5…<jÔÁ–ªÑ§N'ý8ìnx‹ÞþÚ¨¦ÏÁª›ßnTݳþ†rK¦ÿ6—ÍIðÐùØxÜÐt}G~ÜÔèÿµZ™ùË—ÁË—ìåËò/>!@ò–\}ýñëUúíòõjIqãçKÛ(åi|Þ=“^„@§èý´çxñI9Ô’h㑼Á)¿}×î=(Ép .ž|a;SήÃRîù¾;îƒ%=‹õ22é%Ìô—¥|ÿ#Myà'4&XU!c&YAAêxM^‡Š¢,¤|™8¿ÇÃF%˜ŸÊÒ2Ϫª)ÒW2ÃaÝxØÅã ëCHFØ1¹IE¨±‘ÿ‘W Ê‚~0œ ÷R¹8œá¶òdýù²Hœaýki(ÎÐP!©Ws‚q¥(CïÅåÿ£pàV¥=Ùa8ƒ~“9£DÁ(€Ç]M╾¨ÏUK7=­¤aa¡Dƒà?òq‰˜ úY²@ì‹è‡™¬£®óªK&ëzº(“f=î®Ïd]—š¬ëR½€u]0E¡8† ý¿+FXRÂÆXhJÓâƒßÅ >I•·’ÁÄ63@~?=SŠHiñ&eGG1;HyŽî7@NÕ¨LÄ»ÌöÁ$Ùî-ù‡Î\ô¦SÇ—‡öÄöm™Þ‚çQ‚¾ÁÄñÆÓ3™*=ýL•^ö{gÞVFS]z«aå7R!Õpuú×¢²ëºª"¬cYFf!7Y>²4ÓÐé57] /øa‚u‚ÚÁS\öEÒ„õ|N‚žOÖê@¿ỏ÷eL^ÜM6)©Ò<B8Íû»*ê§3ZéQ|åk¡i7Àfæ=ÂUr8Fõ¼î=,Á˜æwò8¢&fjïîÝv„›7G^„pšÏ@ËÌV³ç€]¬¾wtÒ‰ó&ÈŽ & ¥&H+š äíÀÍ› Y„P4AZú^A¦Æq16Måa„p-_Uúõ…Nµƒû'`“;ÉØ6Ðz&)MûÆg´pêæ@AƒuÞ ”¦åM#ŒïÐÒ{lòͦ@„H§š†èõ1¬êZé£àWÒšÉ/‹þÿ•éi#*ý”F¥®§Æ:åŽSÔÆh¬“í¯‰™5RÛôŒ ¯¹spî\ØôöÁwç 1Ä…QþÎ>ÿã-X¤õdôáô¯és 7lëJª;î´Oê¡«ü1ƒ@ÿ™A7{x’"£‡&]‰ÚÂX/—íÏg{´qM£ú¡Z˜õáÎYw˜J!ìŠwxÍà Ç®×t¢aÄ®˜g´‰Å½ýöm9~ ®í‡Ílj9éñê0m¥H5'«RÜhÊ:^W‚?ý!t¢±;d¡ ƒ‰ifœ–®èìüiM•þBî
  14. sorry, was that line 48? need to make sure, i really dont want to be messing this up anymore Thank You
  15. sasa, you are my savior lol your last post fixed Notice: Undefined index: buyer_id in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/session.php on line 26 but Notice: Undefined index: buyer_id in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/session.php on line 48 is still showing sorry if im not changing something obvious i have very little php knowledge
  16. Okay ive sorted about 70% of my notices now. Not quite sure about these ones though Notice: Undefined index: buyer_id in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/include_left_index.php on line 16 Notice: Undefined index: buyer_id in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/include_left_index.php on line 19 Notice: Undefined index: buyer_id in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/include_left_index.php on line 20 include_left_index.php lines 15 to 23 $Buyer=new Buyer(); $Buyer->buyer_id=$_SESSION['buyer_id']; $Buyer->Load(); $Buyer_name=$Buyer->fname." ".$Buyer->lname; $saveSearchCount=$Buyer->countSaveSearch($_SESSION['buyer_id']); $saveListingsCount=$Buyer->saveListingsCount($_SESSION['buyer_id']); unset($Buyer); include_once(FULL_PATH."/templates/leftside.html.php"); ?> hopefully i should have all of these sorted by this evening, all this codes giving me headache lol Thanks again
  17. session.php lines 15-55 $location1 = ",location='" . EscapeString($_SERVER["REQUEST_URI"]) . "'"; $USER_AGENT=substr($_SERVER['HTTP_USER_AGENT'],0,150); $sql="select addy from ".TABLE_PREFIX."session where addy ='{$_SERVER['REMOTE_ADDR']}'"; //echo $sql; $result = mysql_query($sql) or die($sql." ".mysql_error()); $numrows=mysql_num_rows($result); //echo $numrows; if ($numrows){ mysql_query("UPDATE ".TABLE_PREFIX."session SET sessionhash='".session_id()."', lastactivity='".time()."' ".$location1." WHERE addy ='{$_SERVER['REMOTE_ADDR']}'"); //if ($_COOKIE['id']) { if ($_SESSION['buyer_id']) { //mysql_query("UPDATE session SET userid = '{$_COOKIE['id']}' WHERE sessionhash='".session_id()."'"); mysql_query("UPDATE ".TABLE_PREFIX."session SET buyer_id = '{$_SESSION['buyer_id']}' WHERE sessionhash='".session_id()."'"); } else{ mysql_query("UPDATE ".TABLE_PREFIX."session SET buyer_id = '0' WHERE sessionhash='".session_id()."'"); } } elseif(!$_COOKIE['sesshash']) { mysql_query("INSERT INTO ".TABLE_PREFIX."session (sessionhash,buyer_id,host,useragent,lastactivity,location, addy) VALUES ('".session_id()."','0','".EscapeString($_SERVER["HTTP_HOST"])."','".EscapeString($USER_AGENT)."','".time()."','{$_SERVER["REQUEST_URI"]}','{$_SERVER['REMOTE_ADDR']}')"); setcookie("sesshash", session_id(), time()+ 1800, "/"); } else { $newsess_time = time() - 1800; // one half hour if($getaddy = mysql_query("select addy from session where addy ='{$_SERVER['REMOTE_ADDR']}' and lastactivity < '$newsess_time'")){ $num = mysql_num_rows($getaddy); } if($num <5){ mysql_query("INSERT INTO ".TABLE_PREFIX."session (sessionhash,buyer_id,host,useragent,lastactivity,location, addy) VALUES ('".session_id()."','{$_SESSION['buyer_id']}','".EscapeString($_SERVER["HTTP_HOST"])."','".EscapeString($USER_AGENT)."','".time()."','{$_SERVER['REQUEST_URI']}','{$_SERVER['REMOTE_ADDR']}')"); } } //if ($_COOKIE['id']!=0 and $_COOKIE['id']!=-1) { if ($_SESSION['buyer_id']!=0 and $_SESSION['buyer_id']!= '') { $get_session = mysql_query("select timestamp from ".TABLE_PREFIX."buyer_mst where buyer_id ='{$_SESSION['buyer_id']}'"); $row = mysql_fetch_array($get_session); if ((time() - $row['timestamp']) > 1800) { mysql_query("UPDATE ".TABLE_PREFIX."buyer_mst SET timestamp ='".time()."', ipaddy ='{$_SERVER["REMOTE_ADDR"]}' WHERE buyer_id='{$_SESSION['buyer_id']}'"); } } ?> AND lines 32 to 60 of func.php function valid_id($id){ if (preg_match ("/^([0-9]+)$/", $id)){ return $id; } else { return '0'; } } function getVal($a){ if($_POST[$a]){ $ret=$_POST[$a]; } else{ $ret=$_GET[$a]; } return $ret; } function DetectLongString($aboutme){ $text = explode(" ", EscapeString($aboutme)); $totalwords = count($text); for ($x = 0; $x < $totalwords; $x++) { if (strlen($text[$x]) > 75){ $text[$x] = wordwrap($text[$x], 75, "<br />",1); } } and thanks for the advice on type to 'type' i really do appreciate all the help!
  18. Thanks a lot! Does this mean that everytime i have a note that starts "Notice: Use of undefined constant type - assumed 'type' ........." i just have to make sure its 'type' instead of type
  19. Here is lines 15-75 of ownerclass.php if it helps at all class owner{ var $Link; var $owner_id; var $fname; var $lname; var $email_add; var $password; var $address_1; var $address_2; var $city; var $state_id; var $country_id; var $zip; var $status; var $phone; var $fax; var $mobile; var $listed_by; var $date_joined; var $OwnerActivation; var $Membership; var $UserError; function owner(){ $sql="select * from ".TABLE_PREFIX."system_info"; if ($rs=mysql_query($sql)){ while ($rows=mysql_fetch_array($rs)){ if ($rows[type] == 'Seller Activation'){ $this->OwnerActivation=$rows[status]; } if ($rows[type] == "Owners"){ $rows[status] = ($rows[status] == 'F')?'A':'P'; $this->bstatus=$rows[status]; } } mysql_free_result($rs); } } function Load(){ $sql="select * from ".TABLE_PREFIX."owner_mst where owner_id='".valid_id($this->owner_id)."'"; if($rs=mysql_query($sql)){ $rows=mysql_fetch_array($rs); $this->fname=$rows[fname]; $this->lname=$rows[lname]; $this->userid=$rows[userid]; $this->email_add=$rows[email_add]; $this->password=$rows[password]; $this->address_1=$rows[address_1]; $this->address_2=$rows[address_2]; $this->city=$rows[city]; $this->state_id=$rows[state_id]; $this->country_id=$rows[country_id]; $this->zip=$rows[zip]; $this->status=$rows[status]; $this->date_joined=$rows[date_joined]; $this->phone=$rows[phone]; $this->fax=$rows[fax]; $this->mobile=$rows[mobile]; $this->listed_by=$rows[listed_by]; mysql_free_result($rs); }
  20. Hi, I have just installed some scripts on my website and have loads of notes like below. I believe it is to do with the new version of php or something, I have had a look around and saw that somebody said changing the php.ini would stop this but i am on a shared server and dont think i can do this. If anybody knows how i can solve this it would be much appreciated. Notice: Undefined index: buyer_id in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/session.php on line 26 Notice: Undefined index: buyer_id in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/session.php on line 48 Notice: Undefined index: owner_id in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/adminpanel/func.php on line 42 Notice: Undefined index: owner_id in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/adminpanel/func.php on line 46 Notice: Undefined index: hidaction in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/adminpanel/func.php on line 42 Notice: Undefined index: hidaction in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/adminpanel/func.php on line 46 Notice: Use of undefined constant type - assumed 'type' in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/owner_class.php on line 42 Notice: Use of undefined constant type - assumed 'type' in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/owner_class.php on line 45 Notice: Use of undefined constant type - assumed 'type' in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/owner_class.php on line 42 Notice: Use of undefined constant type - assumed 'type' in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/owner_class.php on line 45 Notice: Use of undefined constant status - assumed 'status' in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/owner_class.php on line 46 Notice: Use of undefined constant status - assumed 'status' in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/owner_class.php on line 46 Notice: Use of undefined constant status - assumed 'status' in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/owner_class.php on line 47 Notice: Use of undefined constant type - assumed 'type' in /home/fhlinux153/h/houseswitch.co.uk/user/htdocs/owner_class.php on line 42
  21. I have tried 2 different free open source php based email forms and I couldn't get either to work, first i tried formtoemail and then BELLmailer, both forms would look as if they worked but the email would not be sent to my email address, please can somebody have a look at my files and tell me what i need to change or change it for me and tell me what is was u changed. If you would be kind enough to help me, please reply and I will PM u my host username n pword.
  22. thanks a lot you've been a great help, i am just about to read through the tutorial posted by obsidian im sure ill be back with more questions soon thanks for now
  23. okay thanks a lot for your help, does anyone no of any websites that will have scripts for a form that sends to your email address, i tried one called formtoemail but it never sent the text to my email address and yes i did change the email address to my own in the php script before anybody asks a script that makes the fields required and has validation to make sure the email address is a valid email address would be fabulous Thanks x
×
×
  • 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.