-
Posts
498 -
Joined
-
Last visited
Never
Everything posted by jesushax
-
been looking at those examples, they all seem to be web host related software, i dont want to be a web host sorry if that was unclear i just would like to know what software i need installing on the server for php pages to run, mysql to run, phpmyadmin and how i would add a domain to my server so we can also offer clients email facilities so im building the websites putting them on our server which we want to add mutliple domains pointing to correct websites and email accounts for each client is this easier then what you thought i had in mind before? THanks
-
well im more than willing to learn, myself, just my director wanted to know costs onto how we could set up our own server to offer such a solution. so the list of software above is a start? its just costing you see, if i belive it to be out of my depth ill suggest hiring staff Thanks for your inptu though
-
HI all, hopefully this is the right thread, but what im after doing is: host my own websites on a server (which i have) PHP installed MYSQL installed host my own domains host email accounts specific with those domains have it all secure bascailly im setting up my own web company, money not a cost, i havea server now just software needed and the how toos Thanks for any assistance
-
wait i was looking at the wrong page lol it does work cheers
-
no still doesnt work :S and therse only one record that = 0000-00-00 so the rest should be displayed
-
hi below is my simple ifstatement... if (!$rstasks["TaskEnd"] == "0000-00-00") { mydate($rstasks["TaskEnd"]); } so if the taskend does not equal 0000-00-00 then do my code, but its not showing any of them :S
-
[SOLVED] load content from link withouth ajax
jesushax replied to jesushax's topic in PHP Coding Help
hmmm, ok ill decide what to do laters Cheers -
[SOLVED] load content from link withouth ajax
jesushax replied to jesushax's topic in PHP Coding Help
i know abotu switches my site has 100s of them let me re phrase a bit, how can i do it without reloading the page, or should i just add some more switches to my current pages and let it reload? cheers -
hi i was wondering if in php we can load content from alink into our page without ajax or frames etc just php for example Username: Geoff Bill Fred So i click Geoff and then a form below is shown with geoffs info on, the form can be from another page or if need be ill put it on the same page in a function or something, is this easy and do able in php?
-
i cant use that in the other function that you have given me though it wont work
-
so <p class="dog"> becomes <p> <p class="cat"> becomes <p> <p class="mouse"> becomes <p> <p class="cheese"> becomes <p> anything there just get convereted to a normal <p>
-
hi im trying to remove any classes that may be added by a wysiwyg editor i use how do it so any class name well be replaced? $data = str_replace('<p class=" anything in here">',"<p>",$data); cheers
-
yes i saw that and fixed it, thanks im trying to do something else now, as above ^ do you know how i can do such a thing? such as $data = str_replace('<p class=" anything in here ">',"<p>",$data); thanks
-
so your default values for your page have a <br /> in is this a html <br /> or the text <br /> your posted values must have a <br /> in there somewhere you could do this... that should work but really you need to find out where the <br /> is gettin put in $blah = str_replace("<br />","",$_POST['blah']); if (!strlen($blah) < 0 { echo 'value=""'; }
-
right my last stage is to remove classes from it at the mo the wysiwyg editor uploads these <p class="MsoNormal"> i need to change <p class="MsoNormal"> to <p> and the class name may be differnet to "MsoNormal" i think i know how its done but dont know how to do it CHeers
-
my bad i structured it wrong, its uploading now still not doing what i want it to do, but i might be able to figure the rest out cheeers
-
then what you have should work remember to include session_start(); at the top of your code
-
class gan{ function paragraphs($data) { if(substr($data, 0,3) == '<p>') { $data = substr($data, 3);} if(substr($data, -4) == '</p>'){ $data = substr($data, 0, -4);} $data = str_replace("<p>","</p><p>",$data); $data = str_replace("</p></p><p>","</p><p>",$data); $dat=strip_tags($data, "<p></p>"); return $dat; } } $PortID = $_POST["txtID"]; $Type = $_POST["SelType"]; $Company = $_POST["txtCompany"]; $ProjectTitle = $_POST["txtProjectTitle"]; $Name = $_POST["txtName"]; $URL = $_POST["txtUrl"]; $Location = $_POST["txtLocation"]; $Logo = $_FILES['pictures']['name'][0]; $Image1 = $_FILES['pictures']['name'][1]; $Image2 = $_FILES['pictures']['name'][2]; $Image3 = $_FILES['pictures']['name'][3]; $Case = $gan=new gan(); $jai=$gan->paragraphs($_POST["txtCase"]); $Result = $gan=new gan(); $jai=$gan->paragraphs($_POST["txtResult"]); $Brief = $gan=new gan(); $jai=$gan->paragraphs($_POST["txtBrief"]); $CommentsTitle = $_POST["txtCommentsTitle"]; $Comments = $gan=new gan(); $jai=$gan->paragraphs($_POST["txtComments"]); $Date = date("Y-m-d"); if (!empty($_POST["chkXHTML"])) { $Services = ":".$_POST["chkXHTML"].":";} if (!empty($_POST["chkMembership"])) { $Services = $Services.":".$_POST["chkMembership"].":";} if (!empty($_POST["chkEvent"])) { $Services = $Services.":".$_POST["chkEvent"].":";} if (!empty($_POST["ChkOffice"])) { $Services = $Services.":".$_POST["ChkOffice"].":";} if (!empty($_POST["chkCMS"])) { $Services = $Services.":".$_POST["chkCMS"].":";} if (!empty($_POST["chkBranding"])) { $Services = $Services.":".$_POST["chkBranding"].":";} if (!empty($_POST["ChkCopy"])) { $Services = $Services.":".$_POST["ChkCopy"].":";} if (!empty($_POST["ChkSupport"])) { $Services = $Services.":".$_POST["ChkSupport"].":";} if (!empty($_POST["chkOnlineDB"])) { $Services = $Services.":".$_POST["chkOnlineDB"].":";} if (!empty($_POST["chkConsult"])) { $Services = $Services.":".$_POST["chkConsult"].":";} if (!empty($_POST["ChkPrint"])) { $Services = $Services.":".$_POST["ChkPrint"].":";} if (!empty($_POST["ChkPC"])) { $Services = $Services.":".$_POST["ChkPC"].":";} if (!empty($_POST["chkPDF"])) { $Services = $Services.":".$_POST["chkPDF"].":";} if (!empty($_POST["ChkPR"])) { $Services = $Services.":".$_POST["ChkPR"].":";} if (!empty($_POST["ChkNetwork"])) { $Services = $Services.":".$_POST["ChkNetwork"].":";} if (!empty($_POST["ChkFault"])) { $Services = $Services.":".$_POST["ChkFault"].":";} $SQL = "UPDATE tblPortfolio Set PortType='$Type', ClientCompany='$Company', ProjectTitle='$ProjectTitle', ClientName='$Name', ClientUrl='$URL', ClientLocation='$Location', "; if (!empty($Logo)) { $SQL = $SQL."ClientLogo='$Logo', "; } if (!empty($Image1)) { $SQL = $SQL."PortImage1='$Image1', "; } if (!empty($Image2)) { $SQL = $SQL."PortImage2='$Image2', "; } if (!empty($Image3)) { $SQL = $SQL."PortImage3='$Image3', "; } $SQL = $SQL."ClientCase='$Case', ClientResult='$Result', ClientBrief='$Brief', ClientServices='$Services', ClientCommentsTitle='$CommentsTitle', ClientComments='$Comments', PortDateEdited='$Date' WHERE PortID='$PortID' "; mysql_query($SQL) or die(mysql_error());
-
not your table your sql my sql is $SQL = "UPDATE tblPortfolio Set PortType='$Type', ClientCompany='$Company', ProjectTitle='$ProjectTitle', ClientName='$Name', ClientUrl='$URL', ClientLocation='$Location', "; if (!empty($Logo)) { $SQL = $SQL."ClientLogo='$Logo', "; } $SQL = $SQL."ClientCase='$Case', ClientResult='$Result', ClientBrief='$Brief', ClientServices='$Services', ClientCommentsTitle='$CommentsTitle', ClientComments='$Comments', PortDateEdited='$Date' WHERE PortID='$PortID' "; and i get Catchable fatal error: Object of class gan could not be converted to string in /home/fhlinux153/c/cwservicesltd.co.uk/user/htdocs/admin/portfolio/edit_project.php on line 175
-
ahh right your last post was little confusing so if the $_POST['contname'] has text in it then set the session if it does not have any text in it do what?
-
what you mean it doesnt output can you echo your sql satement and post it here do you want to find them and stop them or still upload them? the str_replace function searches for terms in the text i used it to search for ' and replace it with a ' to upload try changing to html $Name = str_replace("'","'","contain's apostrophe"); the above should output and upload fine
-
if your doing a not if, then you need to add a ! try this if (!isset($_POST['contname'])) { $_SESSION['contname'] = $_POST['contname']; }