Jump to content

nick5449

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

nick5449's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a group of words that are separated by a comma.  Such as "blah, blahblah blah".  I want to separate everything before and after the comma into two separate variables and also without the comma in there.  Can someone point me in the right direction? Thanks for any help
  2. Awesome, that helps a lot.  Thanks for the suggestions.
  3. I have an array that I want to display, but with a enter in between them.  The code I have is this: [code] $x = 0; while($x != count($test)){ echo $test[$x]; echo "\n"; $x++; }[/code] The array is displayed but the enter isn't.  Why wont '\n' work and how else can I get an enter to be displayed? Thanks.
  4. Im getting the error: Fatal error: Call to undefined function: str_split() with that code.  Also, does that function just separate the values into the array $arr_file? Thanks
  5. I have a .csv file (comma separated value) that I want to open, and store in array.  I'm not sure how many values will be in the file.  Heres the code I have so far but im not sure if it will work. [code]  $fp = fopen("quickMessage.csv", "a"); $x = 0; $msgArray = array(); while($x != count($msgarray)) { $msgArray($x) = fgets($fp, 300); $x++; } print_r($msgArray);[/code] Will this work? Thanks
  6. I'm new to php and have a few questions.  I want to have a page on my website where people can leave messages.  Can I simply do this with arrays in php or do I need to use a mysql database?  If I do need a database, do I need any extra software or can I just use a basic text editor and upload the code to the server?  Thanks
×
×
  • 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.