38 Posted Topics
Hey, I'm trying to open a web page inside my newest android app. (I'm following this guide...) [url]http://developer.android.com/reference/android/webkit/WebView.html[/url] My goal with the app is to open up the web page every time it gets opened, but the web pages need to open within the activity. With the code below, it … | |
I'm trying to simply match these letters using php, but it's kind-of a complex matching formula... First, I have two arrays and one string. The arrays contain letters and the string is a near match of those letters. $a - [Array] Must be <= 7 $b - [Array] Must be … | |
Let's say I have the letters... A,D, and G And O (It's special) How can PHP make all possible combinations with these words by using all or as little amount of letters as possible? (But special letters must be included in each scramble) For example PHP would go through those … | |
Here is my code... [CODE]function buildTimer(second,minute,hour,day,month) { if(getCookie('day') == "") { setCookie("month",month,1095); setCookie("day",day,1095); setCookie("hour",hour,1095); setCookie("minute",minute,1095); setCookie("second",second,1095); } var d = new Date(); var curr_month = d.getMonth(); if(month >= curr_month) { year = d.getFullYear(); } else { year = d.getFullYear()+1; } var Bday = new Date(year, month, day, hour, minute, second, … | |
Hello, I'm trying to edit my Wordpress widgets via the editor in Wordpress. Here is how it looks in Google Chrome (It should work this way)... [url]http://www.diigo.com/item/image/sd6o/ic51[/url] This is how it looks in Safari (It shouldn't look this way) [url]http://whosyourblogger.net/blog/wp-content/uploads/2011/10/Wordpress_widgets.png[/url] Here is my code... The first li is the email … | |
I think I must be blind ;) [CODE]$Title = $_POST['title']; $Category = $_POST['category']; $Content = $_POST['article']; $Tags = $_POST['tags']; $Description = $_POST['description']; //error below... $Title = addslashes($Title); //error above... $Category = addslashes($Category); $Content = addslashes($Content); $Tags = addslashes($Tags); $Description = addslashes($Description);[/CODE] I declared title the first time... $Title = $_POST['title']; … | |
HTML... [CODE]<div class="title"> <h2>Texytyuyft</h2> </div>[/CODE] CSS... [CODE].title { position: absolute; height: 14%; width: 65%; left: 5%; top: 5%; background-color: #E8E8E8; z-index: 119; border-top-left-radius: 10px; border-top-right-radius: 10px; } .title h2 { position: absolute; color: #000000; z-index: 1200; }[/CODE] For some reason the text keeps going under the background. How can I … | |
It sounds confusing, but is quite simple. I have a square div, and using css I have four circles replacing the corners of the of the divs border. I want the user to be able to click on one of the corner circles changing the curser image and calling the … | |
Where can I get a free mysql thesaurus database? I would literally like to download a .sql file, and just upload it straight to my mysql host. I would just want in the thesaurus... Word Synonym #1 It would be great if it also had... Part of Speech Synonym #2 … | |
I keep getting undefined with this script... I [CODE]document.getElementById(new_id).style.top = Top; //Works Fine document.getElementById(new_id).style.left = Left; //Works Fine document.getElementById(new_id).style.backgroundColor = Background_Color; //Works Fine document.getElementById(new_id).style.border = Border_Width+" "+Border_Type+" "+Border_Color; //Works Fine new_code = document.getElementById(new_id); //Doesn't Work!!!! document.write(new_code.value);[/CODE] I style the element correctly, but when I want to write it I keep … | |
This function executes the first time correctly, but the next time the function returns an error. [CODE]function edit_div(id) { if(edit_status == 0) { document.getElementById("addnew").innerHTML = '<form><h5>Move</h5>Top Margin: <input type="text" id="topmargin"></br>Left Margin: <input type="text" id="leftmargin"></br><h5>Backgorund</h5>Background Color: <input type="text" id="backgroundcolor"></br><h5>Border</h5>Border Width: <input type="text" id="borderwidth"></br>Border Type: <input type="text" id="bordertype"></br>Border Color: <input type="text" id="bordercolor"></br><input … | |
Hello take a look at my code then I'll tell you what error I get... [CODE]var Top = document.getElementById("topmargin").value; var Left = document.getElementById("leftmargin").value; var Background_Color = document.getElementById("backgroundcolor").value; var Border_Width = document.getElementById("borderwidth").value; var Border_Type = document.getElementById("bordertype").value; var Border_Color = document.getElementById("bordercolor").value; var num = id+1; var new_id = "a"+num; document.getElementById(new_id).style.top = Top; … | |
Look at the code... [CODE]var css_code = new Array(); css_code[css_code.length + 1] = "<div style='height: "+square_height+"; width: "+square_width+"; "+square_rounded+" border: "+border_width+" "+border_type+" "+border_color+"; position: absolute;'></div>";[/CODE] This is just a tiny snippet of a huge amount of code, but when I add a new item to the css_code array. An extra … | |
I found this code on some really awesome website, but I'm trying to change it up a little. As you can see a light box pops up after clicking the link. I want to make it where the light box automatically pops up without clicking the link? How? Thanks in … | |
Okay, I have the content area of my Wordpress blog theme I'm creating. I want the content area to at least have a height of 600px, but if more content comes then I would like the height to change to what ever is necessary. So 600px automatically, but continue expanding … | |
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-type) VALUES('1',' [CODE]$Query = mysql_query("INSERT INTO wp_posts(post_author,post_content,post_title,post_status,comment_status,ping_status,post_name,post_parent,menu_order,post-type) VALUES('1','$HTML_Content','$Page_Name','published','closed','closed','Contact-Me',0,0,'page')");[/CODE] | |
I continue to get, function not defined when calling the function build_blog() through the function start()? [CODE]<html> <head> <style> </style> <script type="text/javascript"> var SEO; var conversion; var SMO; function Start() { document.write("Blog Name: <input type='text' id='name'><br> Blog System: <input type='radio' name='system' id='system' value='blogger'> Blogger<input name='system' type='radio' id='system' value='Wordpress'>Wordpress<br><input type='button' value='Build … | |
I have a textarea box that sends the information to Javascript via onclick(). I want to execute the code the user puts into the textarea. How can I do that? [CODE]var code = document.getElementById('code').value [/CODE] That's part of the function that gets called via onclick. See that variable is called … | |
Look at my code... [CODE]<html> <head> <script> var div1 = ""; var div2 = ""; var div3 = ""; var div4 = ""; var div5 = ""; var div6 = ""; var div7 = ""; var div8 = ""; var div9 = ""; function NewDiv(type) { if(div1 == "") { … | |
I have an Adwords account with $100 in it. I want to be able to sell my Clickbank products on Google Adwords? Google Adwords doesn't allow bridge links like the ones Clickbank gives me? But I thought I might be able to do this.... [url]http://www.domain.com/?hop=joe34b[/url] Would that still give me … | |
How can I get some part of $B to be only [B]auto[/B](The first word in $A[1])? [CODE] if(preg_match('/^(.*)">(.*)/',$A[1],$B) == 1) { die($B[1]); } [/CODE] $A[1] is.... [B]auto[/B]">auto</a>, <a href="automobile">automobile</a>, <a href="motorcar">motorcar</a>, <a href="machine">machine</a></div><div class=Rel><a hr .................................... /tr><tr><td><a href="zw | |
| |
Alright here is my code... [CODE]<?php $Connect = mysql_connect("","",""); $DB = mysql_select_db(""); if(!$Connect || !$DB) { die("MySQL Error #1! Try Again Later!"); } if($_POST['car'] == "Alltel") { $To = $_POST['num']."@message.alltel.com"; } if($_POST['car'] == "AT&T") { $To = $_POST['num']."@txt.att.net"; } if($_POST['car'] == "BoostMobile") { $To = $_POST['num']."@myboostmobile.com"; } if($_POST['car'] == "CentennialWireless") … | |
Okay. I have a whole list of products. Some are the same thing ie: same titles I have a form where people search for the products. I organize the products by a rank I give each product when they are first created. I want to group up the products. For … | |
Let's say I have a huge variable called $file $file contains thousands of lines of html, css, javascript and more. But, I want to be able to find all of these link and edit them. I want to only edit the ones that don't have a domain name. Example: I … | |
My code is suppose to crawl web pages, index the links, then crawl those web pages and on and on again! But it won't work? I get no errors what is wrong? I think it gets into the foreach but doesn't make it to the $DCheck if statement! [CODE]<?php if(empty($_SESSION['page'])) … | |
For example here is some code..... [CODE] preg_match_all("/<a(?:[^>]*)href=\"([^\"]*)\"(?:[^>]*)>(?:[^<]*)<\/a>/is", $stripped_file, $matches);[/CODE] What I don't get is all of those special characters? (?:[^>]*) How can I do this with the h1 tag, h2 tag, and h3 tag? | |
Can anybody tell me what is wrong with these mysql statements? I believe the LIKE is what is incorrect. [CODE] $Find_Query1 = mysql_query("SELECT * FROM pages WHERE title='$Search' AND keywords LIKE '$Search' AND description LIKE '$Search' "); $Find_Query2 = mysql_query("SELECT * FROM pages WHERE title LIKE '$Search' AND keywords LIKE … | |
Okay let's say I open the url, [url]http://www.nothing.com/[/url] using php's fopen function. then I do this, [CODE] <?php $S = sss $url = "http://www.nothing.com/" . $S . "&ql=1"; $open = fopen($url,"r"); while(! feof($open)) { echo fgets($open). "<br />"; } ?> [/CODE] That above returns all of the page I'm looking … | |
Okay I have a php form builder. I have a preview of the form the user is building. When the user submits the form the html form is built and the html code is displayed inside a <textarea>. It's all fine but, if I put a text area tag inside … | |
html.html is below [CODE]<form action="734608271.php" method="POST" /> Carrier: <select> <option name="car" value="nothing">------------------------------</option> <option name="car" value="Alltel">Alltel</option> <option name="car" value="AT&T">AT&T</option> <option name="car" value="BoostMobile">Boost Mobile</option> <option name="car" value="CentennialWireless">Centennial Wireless</option> <option name="car" value="EinsteinPCS">Einstein PCS</option> <option name="car" value="Nextel">Nextel</option> <option name="car" value="Sprint">Sprint</option> <option name="car" value="T-Mobile">T-Mobile</option> <option name="car" value="US Cellular">US Cellular</option> <option name="car" value="VerizonWireless">Verizon Wireless</option> <option name="car" … ![]() | |
Error: Parse error: syntax error, unexpected $end in _-----___ on line 89 [CODE]<?php $connect = mysql_connect("","",""); if (!$connect) { die("MySQL could not connect!"); } $DB = mysql_select_db(''); if(!$DB) { die("My SQL could not select Database!"); } $Car = $_POST['car']; $Num = $POST['num']; if($Car == "Alltel") { $To = "$Num" . … | |
Here is my code it is built to create an html form. It works but when you go to the next question it says $_SESSION['q1'] doesn't exist? But I don't think I deleted it? What is wrong? [CODE]<?php session_start(); $connect = mysql_connect("127.0.0.1","root",""); if (!$connect) { die("MySQL could not connect!"); } … | |
Here's a video how is it? <URL SNIPPED> Any problems? | |
Do you need to to install php, mysql, apache, and more on your computer? <URL SNIPPED> | |
The code was designed to create a new page with the random number and then it would insert code into the newly created file. This worked when I was using my localhost, but now I receive these error messages. I looked around the web and I saw somethings about permissions??? … | |
That's all of my code and you can see at the end there's a die function can you tell me what I did wrong? It's this die function.... [code] if(!$Query) { die("There was an error creating your product!"); } else { echo "Yes! Your product was created I hope " … | |
I'm creating a complex Contact form generator website. I know how to do everything except this one thing. For the user on my website to create a form they have to fill out another form asking questions such as how many questions are on your form..... But at the end … |
The End.