Jump to content

DarkendSoul

Members
  • Posts

    121
  • Joined

  • Last visited

    Never

About DarkendSoul

  • Birthday 02/01/1990

Contact Methods

  • AIM
    DarkendSoul12
  • MSN
    frozen_ninjaz@hotmail.com

Profile Information

  • Gender
    Not Telling

DarkendSoul's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Oops, I don't think you need nodeValues for simplexml :x
  2. Try this out. >.< Kept thinking about it in bed. $xml = SimpleXMLElement($xmlfile, null, true); echo "Data: " . $xml->xpath("tss_loan_response/data[@name=\"site_type\"]")->nodeValue . "<br />\n"; echo "CData: " . $xml->tss_loan_response->content->section->verbiage->nodeValue;
  3. Or make it include the possibility for tabs and spaces \t|\s (with word boundaries). '~^\b\t*|\s*\becho\s*([\'"])(.*?)\1;~sm' But then again if you have tabs and spaces it would be \t*\s* (no need for boundaries).
  4. I'd write you out something but I'm really tired right now and I'm going to bed. But here's a tutorial that should help you a lot. http://www.phpfreaks.com/tutorial/handling-xml-data You'll probably have to use $tss_loan_response->content->section->verbiage for the cdata.
  5. I think this is what you want. <?php $doc = new DOMDocument; $doc->Load("http://www.expekt.com/exportServlet?category=SOC%25"); $xpath = new DOMXPath($doc); $entries = $xpath->query("//game"); $game_info = array(); foreach ($entries as $entry) { $game_info[] = array( "id" => $entry->attributes->getNamedItem("id")->textContent, "date" => $entry->attributes->getNamedItem("date")->textContent, "time" => $entry->attributes->getNamedItem("time")->textContent // Keep going! ); } header("Content-Type: text/plain;"); print_r($game_info); ?>
  6. $selectBox = "<select id='querytype' name = 'querytype' onchange='loadWheres();'><option>Select Query Type</option>"; $selectBox .= "<option value=number"; if ($querytype == "number") { $selectBox .= " selected=\"selected\""; } $selectBox .= "?>Number</option>"; $selectBox .= "</select>";
  7. AddAttachment is part of the PHPMailer Class, you need to include the PHPMailer class in order to use the function. You have plenty of resources in front of you and code to use them... I don't know what else to give you.
  8. http://ca.php.net/manual/en/function.mysql-insert-id.php
  9. Kind of getting off topic and all, but what's the difference between ~, /, % and a couple other things like that for surrounding the search? Can't seem to find that stuff on regularexpressions.info
  10. Is there a problem with just inserting again after? o.o; if ( isset($_POST['submit']) ) { require_once('load_data.php'); $connect = mysql_connect($db_host, $db_user, $db_pwd); mysql_select_db($database); $title = mysql_real_escape_string($_POST['title']); $post = mysql_real_escape_string($_POST['post']); $category = mysql_real_escape_string($_POST['category']); $tags = mysql_real_escape_string($_POST['tags']); $ip = $_SERVER['REMOTE_ADDR']; $insert = mysql_query("INSERT INTO $table (title, post, category, ip_address) VALUES ('$title', '$post', '$category', '$ip')") or die(mysql_error()); $insert_more = mysql_query("INSERT INTO blog_tags ...") or die(mysql_error()); } header('Location: ../'); exit();[/php
  11. thebadbad: I'm curious... could that problem be solves some how with something like... (([\'"])(.*?)\1.*)+
  12. foreach($_POST['Activity'] as $row=>$Act) { $Activity=($Act); $Position=($_POST['Position'][$row]); $StartDate=($_POST['StartDate'][$row]); $EndDate=($_POST['EndDate'][$row]); if (!empty($Act)) { $involv = "INSERT INTO Involvement (Activity, Position, StartDate, EndDate) VALUES ('$Activity','$Position','$StartDate','$EndDate')"; } I believe thats what you want... also before posting any data to a mysql database you should use mysql_real_escape_string() -> http://ca.php.net/manual/en/function.mysql-real-escape-string.php
  13. No that means that php is enabled on his server but MySQL is not. If you have access to php.ini uncomment the line that says extension=php_mysql.dll On windows. I'm not sure what the exact name is on linux based systems... but basically search through the file for "mysql" and you should find it under the extension section of the ini.
  14. Nuu GingerRoot stole one from me! >:
×
×
  • 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.