1
pvtpyro
Getting id from sql into a page
  • 2006/7/26 20:08

  • pvtpyro

  • Just popping in

  • Posts: 67

  • Since: 2005/2/24


ok here's what i have on a new module.

<?php

// the name of the xml file
$file "blah.xml";

// the data
$data "<?xml version="1.0"?>n";
$data .= "<document>n";
$data .= "t<tag>Tag Data</tag>n";
$data .= "</document>";

// open the file and write the data to it
$p fopen$file 'w' );
$w fwrite$p $data );
$c fclose$p );

// a message
echo "The data was sucessfully added to the file $file";

?>


i'm trying to figure out how to replace the "blah" in blah.xml with the users id. Or even username. anything unique.

Do i make any sense to anyone?

Login

Who's Online

146 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 146


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits