wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
Have a look into array_slice
-
Help for pasting colored php and html code
wildteen88 replied to katerina's topic in PHP Coding Help
You'll need to use a Highlighter service which will highlight your code. You should then be able to copy the highlighted text straight into Word. Here's such a service: http://www.phphighlight.com/ -
odd function problem .. skipping entries
wildteen88 replied to severndigital's topic in PHP Coding Help
I think this line: if(in_array($item,$this->_locations)){ $this->checkArray(); } Should be: if(in_array($item,$this->_locations)){ return $this->checkArray(); } -
The problem is the .doc is not just plain text. So you cant do a straight forward word count.
-
What are you archiving to do? Just read the contents of the .doc and display it? If so just open it as you would with any file, eg $content = file_get_contents('path/to/file.doc'); However if you're wanting to modify its contents then this can only be done by COM AFAIK
-
I think you'll need group the results by the matching column. Eg SELECT q.qid, q.cid, q.status, c.name, c.company FROM quote AS q INNER JOIN customers AS c USING (cid) WHERE q.cid = 128 GROUP BY q.cid Moved to MySQL Help.
-
Remove position:relative; From your CSS for your body selector
-
PHP files stopped executing
wildteen88 replied to IvanAndreevich's topic in PHP Installation and Configuration
Yes, always make sure you go to http://localhost whenever you're executing your PHP scripts -
I had a similar issue to this, however I solved it by using the mod_userdir module.It allowed me to use the following url: http://11.22.33.44/~sitename/ to access whatever site I had setup in my virtualhosts when using an IP address to access the Server.
-
Wrap the HTML for your 'get a quote' banner in a div, eg <div id="quote-strip"><a href="quote.html"><img class="QuoteTop" src="images/getaquote.gif" width="129" height="129" /></a> </div> Then apply the following CSS: #quote-strip { position: absolute; top: 0px; left: 0px; display: inline; }
-
Not it wont! It'll only include the output from cookie.php. It wont include the PHP code.
-
That'll be your problem then. PHP is not reading the php.ini for your WAMP installation. Instead its using the php.ini for Zend Core. Just looked up on Zend Core. It appears Zends Core installs the same AMP stack as WAMP. Installing multiple instances of the AMP stack can cause problems such as this.
-
Always apply default margin/padding to block level elements. Different Browsers use different padding/margin values for block level elements. .loginform { margin: 0; padding: 0; text-align: right; } That makes no sense what so ever and does contribute the problem in hand.
-
When using isset never do: $var = $_POST['var']; if(isset($var)) { // do something } As that will always evaluate to true. You should do this instead: if(isset($_POST['var']) && !empty($_POST['var'])) { $var = $_POST['var']; // do something }
-
PHP files stopped executing
wildteen88 replied to IvanAndreevich's topic in PHP Installation and Configuration
Can you post a screenshot of the problems you're having and attach Apaches configuration too. -
Apply display: inline to your H1 tags. eg #content h1 { display: inline; padding: 0; margin:0; text-decoration: underline; }
-
hiding html tags in Textarea when data coming from mysql Database
wildteen88 replied to irkevin's topic in PHP Coding Help
The way I see it the OP wants to keep the tags in but not allow a user to edit them. As they may not know how to edit HTML. This is the job of an WYSIWYG editor as I suggested. -
Pardon? Not understanding you. Can you post an example of what you mean.
-
hiding html tags in Textarea when data coming from mysql Database
wildteen88 replied to irkevin's topic in PHP Coding Help
for what you're trying to do you'll need to use a WYSIWYG editor. For such editors look into TinyMCE and/or FCKEditor -
Please help!!! Before I throw this computer out the window!
wildteen88 replied to dsmith01's topic in PHP Coding Help
I have tested your code and no syntax errors arose. However what I would suggest you to do is to save that huge block of HTML to en external file (such as contactus_form.html) and then change your form_display function to just function form_display() { $form = file_get_contents('contactus.html'); echo $form; } -
It may be helpful if you included the error message produced.
-
Umm, Instresting use the following instead: $str = preg_replace ('/\[size=([0-9]+)\](.*?)\[\/size\]/is', '<span style="font-size: $1px">$2</span>', $str); Yes change [0-9]+ to [0-30]
-
Enable the mysql extension via WAMPs Control Panel. To do so Click on WAMP's taskbar icon (looks like a speedometer) then there should a be sub menu for enabling/disabling PHP extensions. Ensure php_mysql is checked. Restart WAMP after making any changes. Also this has nothing to do with PHPMyAdmin's configuration.