Jump to content

csgcarl

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

csgcarl's Achievements

Member

Member (2/5)

0

Reputation

  1. Hello resago, Right... I'm guessing thats a bad thing? how do I fix this can any one help?
  2. Hello, I'm using phpWebSite(script) and recently had problems uploading pictures to our pic gallery this is the error we are geting: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 11392 bytes) in /home/phoenix/public_html/core/File.php on line 402 Does any one know why this is happening, I reinstalled the script and same problems.. Any help would be great! Best Regards, Carl Lewis
  3. Hello, I have a site that has prices and atm it's showing � instead of £ I'm not sure why this is and was wondeing if some one can help? Example: �0.99 should be: £0.99 Heres the code: <tr> <td width="27%" bgcolor="#E2E2E2" height="12" bordercolor="#B2B2B2" align="left"> <strong> <font color="#535353" face="Tahoma" size="2">Monthly price</font></strong></td> <td width="19%" bordercolor="#B2B2B2" height="12" align="center"> <b><font color="#535353" size="2" face="Tahoma"> £5.00</font></b></td> Thanks alot, Carl
  4. Ah gotya thanks alot for claring that up:)
  5. Hello fenway, thanks for your reply. Could you/some one explain this abit more as I'm not to sure what you mean, I have never done this before so it's new to me. Thanks alot. Carl
  6. Hello, I've tried but havnt got it to work :'(. What I have is a status(drop down menu) you should be able to select from drop down and it will update the status field in db. Heres the code: <? function appjoin($admin,$retnmsg){ global $config; $out[body].=" <br> <center> <table width='580' border='0' cellspacing='1' cellpadding='4'> <tr> <td width='100%' valign='center' align='center' colspan='8'> <form method='post'> <select name='id'>"; $result=mysql_query("SELECT * FROM apply ORDER BY signupid"); while($links = mysql_fetch_array($result)) { $id = $links["signupid"]; $name = $links["name"]; $out[body].="<option value='$id'><font color='#000000'>ID: $id Name: $name</option>\n"; } $app=mysql_query("SELECT name FROM apply WHERE signupid='$id'"); $app=mysql_fetch_array($app); $out[body].="</select> <script language='javascript'>var confirmdelete='Are you 100% sure you want to DELETE this application?';</script> <input type='hidden' name='admin[ladderid]' value='$admin[ladderid]'> <input type='hidden' name='admin[name]' value='$admin[name]'> <input type='hidden' name='admin[pass]' value='$admin[pass]'> <input type='hidden' name='action' value='appdelete'> <input type='submit' name='submit' value='Delete' onClick='return confirm(confirmdelete);'> </form></td> </tr></table> <br> <center> <table width='90%' border='0' cellspacing='1' cellpadding='2' bgcolor='000000'> <form method='post'> <tr bgcolor='$config[altcolor]'> <td width='100%' background='$config[bg]' valign='center' align='center' colspan='2'><b><font color='ffffff'><font color='#ffffff'>$config[sitename] - Application</b> "; if($retnmsg){ $out[body].=" <font color='#ffffff' size='1'>($retnmsg)</font>"; } $app=mysql_query("SELECT signupid, username, gamename, name, dob, gender, email, skype, aim, msn, position, info, info1, time, ip,DATE_FORMAT(time,'%M %d, %Y %r'),ip FROM apply ORDER BY signupid"); while(list($signupid,$username,$name,$gamename,$dob,$gender,$email,$skype,$aim,$msn,$position,$info,$info1,$time,$ip)=mysql_fetch_row($app)){ $account++; if($config[altcolorx]==$config[altcolora]){ $config[altcolorx]="$config[altcolorb]"; }else{ $config[altcolorx]="$config[altcolora]"; } $space=array(" "); $out[body].=" </td> </tr> <tr bgcolor='$config[altcolorx]'> <td width='50%' background='$config[bg]'><b><font color='ffffff'><font color='#ffffff'> Application ID:</b> $signupid</b></td> <td width='50%' background='$config[bg]'><b><font color='ffffff'><font color='#ffffff'></b> <tr bgcolor='$config[altcolorx]'> <td width='30%'> <B><font color='#000000'>Position:</b> <font color='#000000'>$position<br> <B><font color='#000000'>User Name:</b><font color='#000000'> $username<br> <B><font color='#000000'>Full Name:</b><font color='#000000'> $gamename<br> <B><font color='#000000'>Game Name:</b><font color='#000000'> $name<br> <B><font color='#000000'>Date Of Birth:</b><font color='#000000'> $dob<br> <B><font color='#000000'>Gender:</b><font color='#000000'> $gender<br> <B><font color='#000000'>Skype:</b><font color='#000000'> $skype<br> <B><font color='#000000'>Aim:</b><font color='#000000'> $aim<br> <B><font color='#000000'>MSN:</b><font color='#000000'> $msn<br> <B><font color='#000000'>Email:</b><font color='#000000'> <a href='mailto:$email'>$email</a><br> <B><font color='#000000'>Tell us about you:</b><font color='#000000'> $info<br> <B><font color='#000000'>Why would you like to work for BSE?</b><font color='#000000'> $info1<br> <b><font color='#000000'>Date:</b><font color='#000000'> $time<Br> <b><font color='#000000'>IP Address:</b> $ip </td> <td width='60%'>Application Status: <width='60%' valign='center' align='center'> <SELECT class='button' NAME='app[status]'> <option value='$apply[status]' >$apply[status]</option> <option value='Pending' >Pending</option> <option value='Interview' >Interview</option> <option value='Denied' >Denied</option> <option value='Accepted' >Accepted</option> </SELECT> <input type='hidden' name='action' value='apply'> <input type='submit' name='submit' value='Update Status >>'></td> </form> </tr> "; } $out[body].=" </table> <br> <form method='post'> <input type='hidden' name='admin[ladderid]' value='$admin[ladderid]'> <input type='hidden' name='admin[name]' value='$admin[name]'> <input type='hidden' name='admin[pass]' value='$admin[pass]'> <input type='hidden' name='action' value='adminlogin'> <input type='submit' name='submit' value='Admin Main'> </form>"; include("$config[html5]"); } /////////// FUNCTIONS Update-Delete Staff Signups////////////////////// function appdelete($admin,$app,$id){ global $config; $date = date("r"); mysql_query("DELETE FROM `apply` WHERE `signupid`='$id'"); $retnmsg="The Applicant has been removed!"; appjoin($admin,$retnmsg); $adminlog[admin]="$admin[name] : $admin[title]"; $adminlog[ladderid]="$admin[ladderid]"; $adminlog[details]="[Deleted Staff App]: App ID: $id"; adminlog($adminlog); } ?> The drop down I want to sort the code for is: <td width='60%'>Application Status: <width='60%' valign='center' align='center'> <SELECT class='button' NAME='app[status]'> <option value='$apply[status]' >$apply[status]</option> <option value='Pending' >Pending</option> <option value='Interview' >Interview</option> <option value='Denied' >Denied</option> <option value='Accepted' >Accepted</option> </SELECT> <input type='hidden' name='action' value='apply'> <input type='submit' name='submit' value='Update Status >>'></td> So the defualt value would be pending and when you select one of the other options from drop down and click 'Update Status' and it would change. Any help would be great, as said I have tried but I failed . Thanks, Carl
  7. so how would I get info from another db field... as say the config file says this: // MYSQL DATABASE INFO $db[host] ='localhost'; $db[uname] ='bseadmin_test'; $db[pass] ='password'; $db[name] ='bseadmin_test'; But if I say enter $member[logo] it will get the info from the above db (bseadmin_test) but if I wanted to get some of the members info from another db say $member[picture] (bseadmin_test1) how could I do this?
  8. Ye basicly what I'm going to do is have an online form(site)... and the users field will need to get the info from the forum db instead of the site db... so ye 2 databases in the same script. I hope that explains it more, hehe I know what I need to do but not sure how:( Thanks for your reply Stealth. Carl
  9. Hello there, Ok I know you can get info from db by doing $member[logo]... but say I wanted to get info from another db e.g. on website I want to get info from the forum db, but the site already has a db... so when I put $member[logo] on site it gets it from site how do I make it fetch the info from the forum$member[logo]. If you undertand what I mean, I have had alook around but not 100% sure on how it's done. Regards, Carl
  10. Thanks alot for your help marmite! all sorted now and working fine:)
  11. Hello, If someone could help me on whats wrong that would be great! For some reason the background images don't show up... <?php If ($vbulletin->userinfo['userid']!=0) { echo ' <td style="background-image:url("http://www.battlestationextreme.com/images/homepage09.jpg"); height:40px"> <table width="181" border="0" cellspacing="0" cellpadding="0" id="table28"> <tr> <td width="15"><img src="http://www.battlestationextreme.com/images/spacer.gif" alt="" width="15" height="40"></td> <td width="166" class="text2"> My BSE</td> </tr> </table> </td> </tr> <tr> <td style="background-image:url("http://www.battlestationextreme.com/images/homepage10.jpg"); height:29px"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table29"> <tr> <td width="8%"><img src="http://www.battlestationextreme.com/images/spacer.gif" alt="" width="15" height="29"></td> <td width="92%"><a class="link1" href="http://www.battlestationextreme.com/forums/usercp.php">Register!</a></td> </tr> </table> </td> </tr> <tr> <td style="background-image:url("http://www.battlestationextreme.com/images/homepage10.jpg"); height:29px"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table30"> <tr> <td width="8%"><img src="http://www.battlestationextreme.com/images/spacer.gif" alt="" width="15" height="29"></td> <td width="92%"><a class="link1" href="http://www.battlestationextreme.com/forums/private.php">Login</a></td> </tr> </table> </td>'; } else { echo "Your not logged in so we display this"; } ?> Thanks for looking. Carl
  12. Hey, Thanks alot for that, and sorry didnt know where to put it
  13. Hello. I would like to put some text over the top of an image... how do I do this make the image a background or? Sorry if this is wrong place. Carl
×
×
  • 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.