56 Posted Topics
Does anyone know the safe tags to use on a website or know where I may be able to find a list of them? Thank you. | |
How would I check to see if html purifier is running correctly on our server? We are using the following [CODE]<?php $doctypes = array( 1 => 'XHTML 1.0 Transitional', 2 => 'XHTML 1.0 Strict', 3 => 'HTML 4.01 Transitional', 4 => 'HTML 4.01 Strict' ); $tidylevels = array( 1 => … | |
We have the following code that is suppose to output html in a box below, however it is not working correctly. When we click the button it does not generate the html, it doesnt do anything. What we are trying to achieve is to have information input then have it … | |
Ok we are working with a script and we get the following error [CODE]Warning: Invalid argument supplied for foreach() in /xxx/xxx/xxx/spider.php on line 149 [/CODE] Im not sure what the problem is and I havent had any luck fixing it, here is the line in question [CODE]foreach ($array as $value) … | |
We would like to serve javascript from our database. We assumed it would be like serving html but its not working. What we have is a small news ticker and we would like to use a call to our database via php to serve this ticker, so we put the … ![]() | |
Im a novice at php and cant seem to get the following two line together. We want to use this line [CODE] <?php if($logged_in) { echo "Welcome back, $logged_row[username] "; } else { print('<a href="http://xxx/login.html">Login</a> / <a href="http://xxx.com/signup.html">Signup</a>'); } ?>[/CODE] But we need this put into it, we need it before … | |
We have a script that allows us to have a button that says save page, then it displays a list of pages the user has saved. It does this via cookies. You can see the script here for better clarification. [url]http://www.tele-pro.co.uk/scripts/storeddocs/store.htm?[/url] Does anyone know of a way to do this … | |
Is there a way to set tinymce so that the user can post text and html in the same box without having to open the html box to enter code? I have seen on other sites where you can enter text and then some html and it comes out fine … | |
When we make a post to our site it looks fine but when we view the post we see a bunch of \r\n. We are told that we should use something like [CODE]str_replace("\r\n","<br/>",$YOUR_VAR)[/CODE] in order to stop this. Here is my question is the above correct? If so how would … | |
Ok so I am working on setting up a zencart site. We purchased a slide show from flash den and we cannot figure out how to get it to show in zencart. We have tried all of the normal stuff and it doesnt seem to work. When we create a … | |
Can someone recommend a program for testing our website, such as stress testing, load testing and so on? Thank you. ![]() | |
Ok I have this little bit of code. [CODE]<?php $con = mysql_connect("localhost","dbusername","pass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dbname", $con); $result = mysql_query("SELECT * FROM tb_comments"); while($row = mysql_fetch_array($result)) { echo $row['sku'] . " " . $row['name']; echo "<br />"; } mysql_close($con); ?> [/CODE] What I … | |
Ok so I have a bit of code. [CODE]echo "<span class='sortstyle'><strong>Average rating:</strong> "; while($row = mysql_fetch_array($result)) { $rating1 += $row[rating1]; } $avgrating = round($rating1/$numberofrows, 2); echo $avgrating." / 5</span><span class='sortstyle'><strong>Total reviews:</strong> ".$numberofrows."</span>"; }[/CODE] I want this to display the values from my database but from different rows so I tried. … | |
Ok so I have this script and I cant figure out how to add multiple star ratings to one page. [CODE]<? require "config.php" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="SMARTREVIEWSCRIPT.COM" /> <title>Add Your Review</title> <link rel="stylesheet" href="style.css" type="text/css" … | |
Re: Another thing that I think is being greatly over looked here is optimization and compression. If caching and compression is done correctly then you site can be a bit larger and still load faster than smaller pages. | |
Ok I have a site, the site allows me to create multiple pages dynamically, the pages are smarty pages. The editor for the pages is tiny_mce When I go to create the page all goes well, I design then paste the code in html to the tiny_mce interface. When I … | |
Ok so I created a small page using smarty, now what I need to do is create a link to the page(s). The set the page up so that it will display information for the individual user and not to everyone, also the pages are created dynamically. So I need … | |
Ok so I wrote a little script that allows me to call information from my database. Basicly this. <table> <tr> <td id="seal"><?php include("sql.php"); echo "$websiteaddress"; ?></td></tr> </table> All this does is connects to the sql file echoing the users website address thus I type in mywebsite.com/index.php?name=aname and it returns their … | |
I have images I would like to serve that will need individual information posted on them. Just a word or two. The information will be pulled from our database. The text will depend on the url that is entered. We tried just a simple echo but when you view just … | |
One of the guys here were nice enough to help us put together a javascript code that displays dynamic information. [CODE]<div id="info"></div> <script type="text/javascript"> var request if(window.XMLHttpRequest){ request=new XMLHttpRequest() }else if(window.ActiveXObject){ request=new ActiveXObject("Microsoft.XMLHTTP")} request.open('GET','http://ourwebsite.com/index.php?get=1',false) request.send(null) document.getElementById('info').innerHTML=request.responseText </script>[/CODE] The problem we are having now is that it does not show the … | |
This should be pretty simple, We have written a script that calls certain information from our database then we use a simple echo to show the information on our other .php pages. What we need to do is be able to show this same information on html pages as well. … | |
Re: Try removing the display:inline from your css and see if that helps, when I tested it using colors for your backgrounds it worked. | |
Ok Im am so very lost on what to do now, I have written the php code and would like to display the contents of what is being echoed through the url. Example is by entering mywebsite.com/index.php?dog=dogs it returns "a dog" mywebsite.com/index.php?dog=littledog returns "a little dog" What I would like … | |
Re: I have never heard of this but dreamweaver has been know to through in its own code. I would try to hand code it into you css or code and that should fix the problem. | |
We are trying to ensure that information is seen even if javascript is disabled. So we would like to create something that opens a popup as normal however if javascript is disabled it opens a new tab or window with the information. But if javascript is enabled it just opens … | |
I finally got things together and now the echo is not working can someone tell me what I am doing wrong? The page I want to echo is working fine I just cant echo the information to another page. Thank you. Here is the echo page. [CODE]<?php echo '<a href="http://mywebsite.com/index.php?text=this">'; … | |
Re: What text is moving outside of the box? When I test it in chrome and firefox both look the same to me. I am a bit curious about the echo as this is html and not php. If you can provide a bit more information that would be great. | |
I would like to make it so that no matter what the client enters it will match words in the database. Example: they type [url]http://awebsite.com[/url] but only awebsite.com exists it still matches it and any combination such as they search awebsite.com and [url]http://awebsite.com[/url] is in the database it matches. Here … | |
We are wondering how we would add parameters to the following script so that each section can be called separately. [CODE]<?php // This is the content we want to display $data = <<<EOT <div class="topbar"> My Text goes here </div> EOT; // Output JavaScript code to write the data printf('document.write(unescape("%s"));', … | |
I would like to be able to open a php file and edit it from a browser window. We need to easily add website to this file. We will have a hidden, password protected area that we will use to edit this file. Is there an easy way to do … ![]() | |
Re: [URL="http://www.highrankings.com/allabouttitles"]http://www.highrankings.com/allabouttitles[/URL] | |
Re: First I would add all of the css to an external style sheet, that will decrease the size of the page and make it more manageable, Second why not just add a <div> to encompass the table and use positioning through that? I'm not entirely sure what you are asking … | |
Re: While I myself don't know how to do this, I can say this, with enough time and resources anything can be done with php. | |
What I am trying to achieve is to have a line text change when a page is refreshed or at a set interval like every 15 seconds. I know this is easy with javascript but I really don't want to use javascript. I wrote a simple snippet that does this … | |
Re: what is the problem with this? It looks the same to me in both ie and ff. | |
What I would like to do is return a basic text message if no results are returned from my database. Using the following code can someone tell me how I can accomplish this. Please excuse the code if its sloppy, Im a beginner at php. [CODE]<?php // create short variable … | |
Re: Try this code all I did was add absolute bottom to the bottom corner images and is seems to work fine in ie7 ie8 ff. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <table style="text-align: left; width: 100%; … | |
What I would like to do is have an area of my site where visitors can verify if a domain is registered through us. So basically we would manually ad the website names to a text list and would like the script to check the list and if the website … | |
Re: Post your code please so we can try to help. | |
Re: I have to agree with troy, It displays a banner for me and nothing more even when I add color in case I'm missing text or something. So all seems fine to me. | |
So here is what I would like to achieve, I currently have 2 servers one of the servers has a script installed on it that is a pretty nice script, I would like to be able to run this script on both server while it is only installed on one … | |
Re: You need to remove all of your extras and repeats in your head, you have a bunch of stuff you dont need try this. Replace your head with this. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Maxi-Studios.info | Home</title> <style type="text/css"> … | |
Re: Well first welcome to daniweb, secondly what do you need help with? Try to be specific and post code you need help with when appropriate. | |
Re: Agreed we cant help if we cant see the code, please post a copy of your code and css and we will be glad to help where we can.:) | |
Re: Yeah I agree with evolutionfallen, html and css are the base of design the others are programming, you should start with learning how to layout your designs and then get into the more advance things. | |
ok i have been working on this for 2 days now here is what im trying to do. I have urls that look like this [url]www.mysite.com/folder/folder/folder/file.php[/url] What I would like the url to look like the url to look like is [url]www.mysite.com/file.php[/url] I know this can be done with .htacces … | |
Ok here is the code I am working with. What im trying to do is pull up pages without showing the subfolders. ie. [url]http://mywebsite.com/index.php[/url] , my [url]http://mywebsite.com/index2.php[/url], [url]http://mywebsite.com/index3.php[/url] and so on. Not [url]http://mywebsite.com/folder1/index1.php[/url], it works for one page but not for multiple pages, and im at a complete loss. Can … | |
Re: absolute is exactly what you put it at, so I would recommend z-index to bring forward what you want on top. Then I would add margins to bring the things down an padding to bring the text in, further more did you add size and width to what you want … | |
Re: Have you tried assigning a css style to the lightbox div if you are using one. This should override your other css and allow you to format it the way you want. | |
I have pages written in html that use javascript and css, what I would like to do is use php to change how the url comes out. So I would like the url to look like mywebsite.com/index.php?xx1122 or something like that without disclosing the location of the html files or … |
The End.