Jump to content

advo

Members
  • Posts

    14
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

advo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. can no one know this im in desperate need to know what im doing wrong and how to get this done
  2. <html><head></head><body>stdClass Object ( [DealerSearchResult] => stdClass Object ( [any] => <xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet"><xs:element name="NewDataSet" msdata:isdataset="true" msdata:maindatatable="Dealer" msdata:usecurrentlocale="true"><xs:complextype><xs:choice minoccurs="0" maxoccurs="unbounded"><xs:element name="Dealer"><xs:complextype><xs:sequence><xs:element name="DealerID" type="xs:int" minoccurs="0"><xs:element name="TaxPayerNumber" type="xs:string" minoccurs="0"><xs:element name="LastName" type="xs:string" minoccurs="0"><xs:element name="Firstname" type="xs:string" minoccurs="0"><xs:element name="MiddleInitial" type="xs:string" minoccurs="0"><xs:element name="CompanyName" type="xs:string" minoccurs="0"><xs:element name="ShipAddress1" type="xs:string" minoccurs="0"><xs:element name="ShipAddress2" type="xs:string" minoccurs="0"><xs:element name="ShipCity" type="xs:string" minoccurs="0"><xs:element name="ShipState" type="xs:string" minoccurs="0"><xs:element name="ShipZip" type="xs:string" minoccurs="0"><xs:element name="ShipCountry" type="xs:string" minoccurs="0"><xs:element name="MailAddress1" type="xs:string" minoccurs="0"><xs:element name="MailAddress2" type="xs:string" minoccurs="0"><xs:element name="MailCity" type="xs:string" minoccurs="0"><xs:element name="MailState" type="xs:string" minoccurs="0"><xs:element name="MailZip" type="xs:string" minoccurs="0"><xs:element name="MailCountry" type="xs:string" minoccurs="0"><xs:element name="WorkPhone" type="xs:string" minoccurs="0"><xs:element name="HomePhone" type="xs:string" minoccurs="0"><xs:element name="FaxPhone" type="xs:string" minoccurs="0"><xs:element name="CellPhone" type="xs:string" minoccurs="0"><xs:element name="EnrollDate" type="xs:dateTime" minoccurs="0"><xs:element name="EmailPrimary" type="xs:string" minoccurs="0"><xs:element name="EmailSecondary" type="xs:string" minoccurs="0"><xs:element name="BirthDate" type="xs:dateTime" minoccurs="0"><xs:element name="Password" type="xs:string" minoccurs="0"><xs:element name="Account" type="xs:string" minoccurs="0"><xs:element name="SubAccount" type="xs:string" minoccurs="0"><xs:element name="Active" type="xs:short" minoccurs="0"><xs:element name="Deleted" type="xs:short" minoccurs="0"><xs:element name="DeleteDate" type="xs:dateTime" minoccurs="0"><xs:element name="DeleteBy" type="xs:string" minoccurs="0"><xs:element name="DealerURL" type="xs:string" minoccurs="0"><xs:element name="IsSentinal" type="xs:short" minoccurs="0"><xs:element name="TaxExempt" type="xs:short" minoccurs="0"><xs:element name="WebPhoto" type="xs:base64Binary" minoccurs="0"><xs:element name="WebGreeting" type="xs:string" minoccurs="0"><xs:element name="WebCatalogueID" type="xs:int" minoccurs="0"><xs:element name="WebProductID" type="xs:int" minoccurs="0"><xs:element name="NPO" type="xs:short" minoccurs="0"><xs:element name="IsCustomer" type="xs:short" minoccurs="0"><xs:element name="SponsoringDealerID" type="xs:int" minoccurs="0"><xs:element name="CurrencyTypeID" type="xs:int" minoccurs="0"><xs:element name="OldID" type="xs:string" minoccurs="0"><xs:element name="APPlacementDealerID" type="xs:int" minoccurs="0"><xs:element name="APDealershipNumber" type="xs:int" minoccurs="0"><xs:element name="APLineage" type="xs:string" minoccurs="0"><xs:element name="EmailOptOutUpline" type="xs:short" minoccurs="0"><xs:element name="EmailOptOutGlobal" type="xs:short" minoccurs="0"><xs:element name="EMailFormatTextOnly" type="xs:short" minoccurs="0"><xs:element name="DealerStatusCodeID" type="xs:int" minoccurs="0"><xs:element name="DateEmailPrimaryLastValidated" type="xs:dateTime" minoccurs="0"><xs:element name="EmailPrimaryValidated" type="xs:short" minoccurs="0"><xs:element name="EmailPrimaryValidationResult" type="xs:string" minoccurs="0"><xs:element name="DEFSponsorDealerID" type="xs:int" minoccurs="0"><xs:element name="DEFSponsorDealershipNumber" type="xs:int" minoccurs="0"><xs:element name="CustomerTypeID" type="xs:int" minoccurs="0"><xs:element name="DateExported" type="xs:dateTime" minoccurs="0"><xs:element name="AllowWebAccess" type="xs:short" minoccurs="0"><xs:element name="UseEWalletOnly" type="xs:int" minoccurs="0"><xs:element name="AffiliateSponsoringDealerID" type="xs:int" minoccurs="0"><xs:element name="SMSTextOptOut" type="xs:short" minoccurs="0"><xs:element name="SMSTextOnEnroll" type="xs:short" minoccurs="0"><xs:element name="SMSTextOnOrder" type="xs:short" minoccurs="0"><xs:element name="SMSTextInfoAlerts" type="xs:short" minoccurs="0"><xs:element name="CustomerStatusID" type="xs:int" minoccurs="0"><xs:element name="PayCurrencyTypeID" type="xs:int" minoccurs="0"><xs:element name="FullName" type="xs:string" minoccurs="0"></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:element></xs:sequence></xs:complextype></xs:element></xs:choice></xs:complextype></xs:element></xs:schema><diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"><documentelement xmlns=""><dealer diffgr:id="Dealer1" msdata:roworder="0"><dealerid>813242</dealerid><taxpayernumber>1</taxpayernumber><lastname>name</lastname><firstname>test</firstname><middleinitial><companyname>test company</companyname><shipaddress1>test address1 </shipaddress1><shipaddress2>test address 2</shipaddress2><shipcity>test city</shipcity><shipstate>N/A</shipstate><shipzip>tf1 7yl</shipzip><shipcountry>UK</shipcountry><mailaddress1>test address1 </mailaddress1><mailaddress2>test address 2</mailaddress2><mailcity>test city</mailcity><mailstate>N/A</mailstate><mailzip>tf1 7yl</mailzip><mailcountry>UK</mailcountry><workphone>01952 000 000</workphone><homephone><faxphone><cellphone><enrolldate>2014-06-03T00:00:00-05:00</enrolldate><emailprimary>test@test.com</emailprimary><emailsecondary><password>password</password><account>1</account><subaccount>0</subaccount><active>-1</active><deleted>0</deleted><dealerurl>testname</dealerurl><issentinal>0</issentinal><taxexempt>0</taxexempt><webcatalogueid>-1</webcatalogueid><webproductid>-1</webproductid><npo>0</npo><iscustomer>0</iscustomer><sponsoringdealerid>-1</sponsoringdealerid><oldid><emailoptoutupline>0</emailoptoutupline><emailoptoutglobal>0</emailoptoutglobal><emailformattextonly>0</emailformattextonly><emailprimaryvalidated>0</emailprimaryvalidated><customertypeid>0</customertypeid><allowwebaccess>-1</allowwebaccess><useewalletonly>0</useewalletonly><affiliatesponsoringdealerid>0</affiliatesponsoringdealerid><smstextoptout>-1</smstextoptout><smstextonenroll>0</smstextonenroll><smstextonorder>0</smstextonorder><smstextinfoalerts>0</smstextinfoalerts><customerstatusid>-1</customerstatusid><paycurrencytypeid>-1</paycurrencytypeid><fullname>test company</fullname></oldid></emailsecondary></cellphone></faxphone></homephone></middleinitial></dealer></documentelement></diffgr:diffgram> ) ) </body></html> this is the soap response i get from $client = new SoapClient("http://#########/WebServices/#####DealerWS.asmx?wsdl"); $result = $client->DealerSearch($params); print_r($result); bascly i want to take from this the info inside and use it as a object so i end up with $obj->LastName etc etc the diffgramm xml is the stuff i want, i can do it but manullly cuting out shcema xml $test = simplexml_load_string($result); $object = $test->DocumentElement->Dealer; echo $object->LastName; echo "<br>"; echo $object->CompanyName; but thats only when i use diffgram xml and as you can see the soap respone dose not work and throws extra content error if i try get it right so im doing it totally wrong can some one help me get it working with the response i supplyed and allow me use valuse like so i want above
  3. i have two functions but i want to make it into one function function 1 public function getAlliancesList($pageIndex, $pageSize) { return $this->provider->fetchResultSet("SELECT a.id, a.name, a.player_count, a.rating FROM p_alliances a ORDER BY a.rating DESC, a.player_count DESC, a.id ASC LIMIT %s,%s", array($pageIndex * $pageSize, $pageSize)); } function 2 public function getAllianceAverage($allianceId) { $row = $this->provider->fetchRow("SELECT AVG(p.total_people_count) as average FROM p_players p WHERE p.alliance_id = '%s'", array($allianceId)); return intval($row['average']); } basically i want to join function 2 into function 1 so i don't need 2 query's and i can then call on view file $this->datalist->row['average'] if this is even possible i've tried alot of ways to get the two wuerys to work together but to no avail so any help would be great. im sure some pro here can make this work
  4. can you give me a link or some demo of how it be done i have no clue on JS
  5. ok now im really stuck as this is for a php image not a real image i need to have it refresh the image on site with out page load thinking ajax or JS will do this but no clue on where to start the url for it to refresh will be something like chatsig.php?id=some id that is held in post/get data for life of me i cant seem to get it to reoad with out reloading page any help on how to reload a image onfly say every 3 seconds with the ?id=<?=$somevar?> would be greatly apretiated
  6. geeze my head must not be screw on atm while($data = mysql_fetch_array($logged)) { $arr[] = $data['text']; } imagestring($im, 3, 2, 05, $arr[0], $color); imagestring($im, 3, 2, 20, $arr[1], $color); this did what i wanted
  7. hi people im having a little issue here with current php code dose not want to print out what i want or dose but only first letter basicly its a dynamic image there is a db called `chatsigtext` each image will have its own id and so i can sort different image from other images the code im using is below i know im doing something wrong but dont know my idea was it would pul 16 rows based on time decending and have a var $ text1 $text2 and so on each one a dif row in query but it dosent semm to work $chatlines= MYSQL_QUERY("SELECT * from chatsigtext WHERE sigID='".$sig->sigID."' ORDER BY time DESC LIMIT 16 "); //$arr= mysql_fetch_array($chatlines); //$text1 = $arr['text']; this works but i cant make text2 = the new row down and so on i want 15 text vars each pulled from the above sql //$text2 = $arr[1]['text']; $arr = mysql_fetch_row($chatlines); $text1 = $arr[1]['text'];// this will only echo the first letter where above will do whole thing just not next row imagestring($im, 3, 2, 05, $text1, $color); imagestring($im, 3, 2, 20, $text2, $color); any help on how i can do this would be great
  8. advo

    some help please

    what do you mean CASE please explain am i doing it right or wrong some one help please
  9. hi i have been having a issue that for life of me just isnt sitting in my head right i have a table called `ranks` with a persons `userID` and various ranks inside it like income whatnotthis table holds there main rank under field `rank` there userinformation is help in `userdeatials` i added a fields called `glorypoints` now what im trying to do is if say there rank is below between 1- 10 give them 2 glory points if 11-50 give them 1 and those above that get nothing now this is what i have and it dose not update the proper parts of table ie rank 1-50 every one is getting them this is the code im using\ UPDATE userdetails SET glorypoints = glorypoints+'2' WHERE rank > 11 AND rank < 50 AND ranks.userID=userdeatils.ID
  10. =IF(C4>C9;0;IF(B4>B9;0;((B9)*(B9+1)/2*15000)+(B9*2100800)-((B4)*(B4+1)/2*15000)-(2100800*B4))) thats it there it is in first post
  11. yeah im trying to convert the excell formual to php i tryed pow but some reason it dosenot add up the same as on my spread sheet which is so frustrating thanks for reply
  12. hey i have a issue with some math equasions and how to get them to work right so far i did first one and made it work in php =IF(C4>C9;0;IF(B4>B9;0;((B9)*(B9+1)/2*15000)+(B9*2100800)-((B4)*(B4+1)/2*15000)-(2100800*B4))) this is what i got so far from this mind you its just coverting excell equasions but im not math boy and suck bad at maths $costatkweps =(($_POST[noatkwepsto])*($_POST[noatkwepsto]+1)/2*15000)+($_POST[noatkwepsto]*2100800)-(($_POST[noatkweps])*($_POST[noatkweps]+1)/2*15000)-(2100800*$_POST[noatkweps]); if($_POST[noatkweps]>$_POST[noatkwepsto]){ $costatkweps = 0; } if($_POST[atklvl]>$_POST[atklvlto]){ $costatklvl = 0; } ok the first bit of maths works it the second equasion =[color=red]IF(C4>C9;0;IF(B4>B9;0;[/color](10000000*((2^C9)-1))-(10000000*((2^C4)-1)))) the red bit is handled by the if statements and works well, but how do i do the rest so php can add it up, C9 and C4 are the fields so c9=$_POST[atklvlto] and c4 = $_POST[atklvl] i just dont understand how to get this one formular working because of the ^ symbold i think it means 2 to the power of or something but no clue on how to get this one fomualr to add up please help me
  13. ok thankyou very much i will try this now tried it, you are a god i knew it be simple just so late my brains not with it atm thanks alot
  14. ok i have this warning showing up Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/lalala/public_html/attack.php on line 72 the code i use //same ip resrictions $result = mysql_query("SELECT ip FROM ip_history WHERE user_id='$target[id]'"); while($row = mysql_fetch_array($result)) { $sendtouser[]=$row['ip']; } $result = mysql_query("SELECT ip FROM ip_history WHERE user_id='$logged[id]'"); reconnect(); while($row = mysql_fetch_array($result)) { if(in_array($row['ip'], $sendtouser)) { show_error("You cannot attack a user with the same IP."); break; } } basically what i can gather is there is no ip for the user being attacked i want to know how to stop this error tomming up if the $target[id] user has no ip in ip history any solution or fix to this would be greatly appreciated.
×
×
  • 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.