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

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits