rocksolidsr Posted January 2, 2007 Share Posted January 2, 2007 my website is http://www.rocksolidinc.biz i'm currenty getting this error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/rocksoli/public_html/index.php:7) in /home/rocksoli/public_html/include/session.php on line 43 sometimes it shows up twice one right underneath the other one and sometimes just once... i've tried deleting numerous white spaces but i could have missed some. it is also weird b/c if you just go to http://www.rocksolidinc.biz/main.php the files work fine i'm not sure what is going on but any help would be greatly appreciated go here to get a zip file with all the files i'm using on the website rocksolidsr.110mb.com/public_html.zip thanks shane Link to comment https://forums.phpfreaks.com/topic/37801-help-with-login-system-and-php/ Share on other sites More sharing options...
AV1611 Posted January 2, 2007 Share Posted January 2, 2007 how do I make the trailing "|" not appear? I get like this: AON | AASA | ACI | want this: AON | AASA | ACI while($row2=mysql_fetch_array($result2)){ if ($row2[0]=='AASA') { echo "<a href='http://xxx/index.php?guid=".$row[0]."&Submit=Submit'>AASA</a> | "; } elseif ($row2[0]=='AON') { echo "<a href='http://xxx/index.php?detail=".$row[0]."&Submit=Submit'>AON</a> | "; } elseif ($row2[0]=='ACI') { echo "<a href='http://xxx/aci.php?GUID=".$row[0]."' target='_blank'>ACI</a> | "; } elseif ($row2[0]=='PsB') { echo "<a href='http://xxx/rpi.cgi?par=".$row[0]."' target='_blank'>PsB</a> | "; } else { echo $row2[0]." | "; } } Link to comment https://forums.phpfreaks.com/topic/37801-help-with-login-system-and-php/#findComment-151648 Share on other sites More sharing options...
bubblybabs Posted January 2, 2007 Share Posted January 2, 2007 Hi, (I am trying to post this for the second time, first time said I had already posted it when I did not so I have not idea if I am doing a double post. Sorry if I am.) I have been searching the web and this forum but not finding what I need... I am modifying the gcards eCard program and have gotten stuck on something... I have made it so that people can enter multiple to email addresses, each in their own text box instead of the multiple insertion method with text area... Each email address is checked to see if they are valid format... The problem comes when a textbox is left blank, there is an error because the program is written to force one to enter an email address... I don't want to take away the email format checking but I need to make it so that if the textbox is left blank the program will skip over it... The program has this for email format checking: function validEmail($address) { if (eregi("^[a-z0-9]([\._\-]?[a-z0-9])*@[a-z0-9]([\.\-]?[a-z0-9])*\.[a-z]{2,}$", $address)) return true; else return false; } How do I make it so the textbox can be left blank OR have the above check done? Many thanks, Babs Link to comment https://forums.phpfreaks.com/topic/37801-help-with-login-system-and-php/#findComment-151717 Share on other sites More sharing options...
kraadde Posted January 2, 2007 Share Posted January 2, 2007 I have a problem. I programmed a query to check whether a database field containing a year value (typ varchar(4)) is within a given intervals. The script is like that: $sqlAB="SELECT ......, year FROM .... WHERE ..... AND year >= '$txYearFrom' AND year <= '$txYearTo' AND .... order by ..."; $txYearFrom .. To are a text strings which I read out from input fields like that: <input name="txYearFrom" type="text"> The query result is sometimes wrong. How can I fix that and get reliable results? Btw the database structure can not be changed... Thanks all for a good idea... Adriano [email protected] Link to comment https://forums.phpfreaks.com/topic/37801-help-with-login-system-and-php/#findComment-151782 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.