Jump to content

guyfromfl

Members
  • Posts

    286
  • Joined

  • Last visited

    Never

Everything posted by guyfromfl

  1. yes. i guess ill make a front and back end for it instead of having them edit xml code.
  2. im starting a new website for a local night club. on the right they want to have a list of the next 5 day's events. would it be best to dive in and learn rss or would sql be ok to handle this? I have no background in RSS but have pretty good skill in php/sql. Thanks mark
  3. I am no good with sessions and the only part of the code i didnt write is adminpro for user authentication. (available at www.phpclasses.org) for some reason if you logon to my site with one user name no matter what other user you log on as it says your are the first user. for instance you first logon as user1 then your friend logs on as user2 from the same computer, it says you are still logged in as user1. i added a session_destroy(); on the logout page and no change. i hope that made any kind of sense! thanks mark
  4. in the error log it will tell you what error httpd returns. I know there is an error with a part of my code but not sure what it didnt like and since the server isnt logging errors anymore i cant find it. its kind of hard to describe really if you use fedora the files im talking about are int /var/log/httpd then vi error_log and scroll to the bottom. you'll see the last error the web server had mine doesnt have any since yesterday afternoon and since the code is breaking that means there should be an error.
  5. This has happened before but my error_log file doesnt have any errors since yesterday at about 2. I looked in a few of the error_log.# files but same thing. is there something i need to/can reset? im running fedora 5 & php 5 if that matters. thanks --mark
  6. yea print_r returned nothing. ive tried severaly different configs of the path still same result.
  7. and why is there a FROM in the error message
  8. INSERT INTO fsd_trace (OK,TRACE,ARRIVEE,MAINTENANT) VALUES ('$OK','$TRACE','$ARRIVEE','$MAINTENANT') WHERE CID='$CID'"; no " before insert?
  9. awsome debug tip thanks. it still has the same result so it must be something else in the code. all the syntaxes look good so its probably something stupid i did. thanks anyways guys --mark
  10. yea sorry about that in the original code it had ' and changed them to " still same result. and same with the <select> --mark
  11. I am working on a project where there is a set of the same data used over and over on multiple pages. So i wanted to make a require_once file that populates the array whenever I need that array in a page. I did but all that happens is a blank page (with the bgcolor i defined in the css) and my error_log doesnt have a record of the request. I am stumped. Here is the idea of what im talking about the require_once (../includes/globals.php): <?php $reason = array (1 => "item1", 2 => "item2", 3 => "item3", 4 => "item4"); ?> one of the files that calls on it <?php // Ive tried with declaring the $reason array and without it require_once(includes/globals.php); /* content until i need to populate a listbox */ for ($i=1; $i<=4; $i++) { echo "<option>".$reason[$i]."</option>"; } sounds simple enough. everything worked great until i made this small change --mark
×
×
  • 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.