Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > Help a noobie, please...
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 9th June 10:26
austin myers
External User
 
Posts: 1
Default Help a noobie, please...


<?php
import_request_variables('g', 'New_'); //reads the info
sent in the URL using "?key="
$TempHold = $New_key; //Places it into a
temporay string to work with
$myString = sprintf( "%s", $TempHold ); //converts everything to
a string so we can work with it
print $myString; //print
to see if it got there
$Big = spliti("," , $MyString) //parses the long srting from web
into an array so we can get each variable

print $Big [0];

Instead of printing the first item I get the following error:

Parse error: parse error, unexpected T_PRINT in e:\wamp\www\buyexpress.php
on line .................


Can some one shed some light on what "T-Print" is, where it came from, and
how the heck do I get rid of it???

All help appreciated
  Reply With Quote


  sponsored links


2 9th June 10:26
austin myers
External User
 
Posts: 1
Default Help a noobie, please...


Also tried it using "explode"
  Reply With Quote
3 9th June 10:26
j
External User
 
Posts: 1
Default Help a noobie, please...


Go through and comment out everything except the beginning, and after each
statement, echo the newly assigned variable.
Then you'll be able to identify where the problem is by incrementally
uncommenting.

Is that $Big at the end supposed to be $Big_array?

you left out crucial information when you didn't say what line it
identified.

-JB
  Reply With Quote
4 9th June 10:26
andrew @ rockface
External User
 
Posts: 1
Default Help a noobie, please...


Missing a semi-colon. Should be:

$Big = spliti("," , $MyString);

--
Andrew @ Rockface
np: (Winamp is not active ;-)
http://www.rockface-records.co.uk
  Reply With Quote
5 9th June 10:56
nc
External User
 
Posts: 1
Default Help a noobie, please...


You are missing a semicolon at the end of this statement.


In the future, it would really help if you pointed out which line is
causing the error...

Cheers,
NC
  Reply With Quote
6 9th June 10:56
austin myers
External User
 
Posts: 1
Default Help a noobie, please...


Yup, you are right. Danged syntax!!! Why is it that the longer you look at
code the harder it is to see the mistake?
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666