627 Posted Topics

Member Avatar for kishan112

Well, if the imagejpeg() function is chocking on the apostrophe, all you need to do is remove the offending character from $title: [CODE=php]imagejpeg($result, "thumb/" . str_replace("'","",$title) . ".jpg", 100) or die("Cant save image");[/CODE]

Member Avatar for kishan112
0
94
Member Avatar for dschuett

[CODE=php] <body> <div id="content"> <div class="contentbox"> <h1>Search For A PO</h1> <form method="post" action=""> <table class="search"> <tr><td> Search: <select name="type"> <option value="po_num"<?php if(isset($_REQUEST['type']) && $_REQUEST['type']=='po_num'){print "selected";}?>>PO Number</option> <option value="date" <?php if(isset($_REQUEST['type']) && $_REQUEST['type']=='date'){print "selected";}?>>Date</option> <option value="vin_num"<?php if(isset($_REQUEST['type']) && $_REQUEST['type']=='vin_num'){print "selected";}?>>VIN Number</option> </select></td> <td>for: <input type="text" name="term" /><br /></td></tr> <tr><td> <input type="submit" …

Member Avatar for dschuett
0
133
Member Avatar for bsewell

It's hard to help you without seeing the relevant HTML markup associated with your jquery statements, but I can tell you that [CODE] $("#div.marker")[/CODE] looks "suspicious". That implies that you have some element with [iCODE]id="div"[/iCODE] and a [iCODE]class="marker"[/iCODE] - for example: [CODE=html]<div id="div" class="marker">...</div>[/CODE] If the div in question does …

Member Avatar for hielo
0
151
Member Avatar for danny4444
Member Avatar for hielo
0
239
Member Avatar for SKbirdie

[CODE=html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>eSales Center - Customer Links</TITLE> <META HTTP-EQUIV="Cache-Control" CONTENT="No-Cache"> <META HTTP-EQUIV="Pragma" CONTENT="No-Cache"> <META HTTP-EQUIV="Expires" CONTENT="0"> <SCRIPT LANGUAGE="SpeedScript"> {shared/esalesvars.i} {shared/validate-session.i} {shared/pp-global.i} assign cLogin = if trim(cLogin) = "" then get-value("operinit") else cLogin. </SCRIPT> </HEAD> <BODY> <SCRIPT type="text/javascript"> switch (cLogin) { case "12102": document.write('<a …

Member Avatar for hielo
0
183
Member Avatar for PhilEaton

it should be: [iCODE]var submit = document.getElementsByName("submit")[0];[/iCODE] getElementsByName() returns a collection/array, NOT a single element. My suggestion would be to give your button an id="submitButton" and then use this instead: [CODE]var submit = document.getElementById("submitButton");[/CODE] since IDs are supposed to be unique throughout the page, then you don't need that suffix …

Member Avatar for PhilEaton
0
133
Member Avatar for ejian
Member Avatar for hielo
0
70
Member Avatar for veledrom

Curl is used for http requests. Based on the sample port you posted, you are probably wanting to connect to an FTP server (Port 21). If so, refer to the FTP functions in php: [url]http://www.php.net/manual/en/function.ftp-connect.php[/url] IF you are in fact running an HTTP server, then on the following link: [url]http://blog.unitedheroes.net/curl/[/url] …

Member Avatar for hielo
0
241
Member Avatar for lwaterfo

[CODE]$query = "SELECT lastname, firstname, state, zip, jobtype, otherjobtype, nightavail, weekendavail, ptft, resume FROM data WHERE (job_id LIKE '%" . $trimmed . "%') OR (jobtype LIKE '%" . $trimmed . "%') ORDER BY lastname ";[/CODE]

Member Avatar for hielo
0
72
Member Avatar for ceeandcee
Member Avatar for Rajicet
Member Avatar for lewilaloupe

make sure your FORM tag is as shown below and get rid of the name attribute in the option tags [CODE]<form id="form1" action="" method="post"> <p>Gender: <br> <select name="gender"> <option selected="selected" value="">Choose....</option> <option value="male">Male</option> <option value="female">Female</option> </select> <% if request.form ("gender") = "male" then %> <input type="submit" value="Submit" name="btnSubmit" onClick="document.form1.action='send_it.asp';return true;"> …

Member Avatar for hielo
0
173
Member Avatar for toydiaz

[CODE=html] <!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=iso-8859-1" /> <title>teste</title> <script> function idade(object, birthDay){ var now = new Date(); bD = birthDay.value.split('/'); if(bD.length==3){ var born = new Date(bD[2], bD[1]*1-1, bD[0]); document.getElementById("computedAge").value = ( now.getFullYear() - born.getFullYear() ) } } </script> </head> <body> …

Member Avatar for toydiaz
0
144
Member Avatar for gchurch

try: [CODE] <body> <?php $date = time(); $day = date('d', $date); $month = date('m', $date); $year = date('Y', $date); $days_in_month = cal_days_in_month(0, $month, $year); $current_month = date('F'); //echo $current_month; ?> <script type="text/javascript"> function isValidDate() { var now = new Date(); //advance one day now.setDate( now.getDate() + 1 ); var Day=document.getElementById('daysOfMonth'); …

Member Avatar for hielo
0
138
Member Avatar for pgmarco

line 5 of the javascript block is NOT the same as what you actually have on your live page. This is what you actually have: [icode]document.getElementById("amt1").value = "$" + total.toFixed(2);[/icode] This means that on your php page, your $total variable should have a STRING that begins with a dollar symbol. …

Member Avatar for pgmarco
0
2K
Member Avatar for Facte

then just get rid of the last part where you are appending the time: [icode]$dd = substr($d_var['weekday'],0,3) .','. $d_var[mday] .' '.substr($d_var[month],0,3).' '. $d_var[year];[/icode]

Member Avatar for FlashCreations
0
114
Member Avatar for Rkeast

[QUOTE]I need to find it because the JavaScript validation class has a function for validating a single form element, but it requires that the index number of the element in the form be passed in.[/QUOTE] That is where I would concentrate my efforts instead. Since it is expecting a number, …

Member Avatar for hielo
0
1K
Member Avatar for Nfurman

are you importing the System.xml namespace? Refer to: [url]http://www.devx.com/tips/Tip/21168[/url]

Member Avatar for hielo
0
107
Member Avatar for slamdunk

Open firefox and install colorzilla: [url]https://addons.mozilla.org/en-US/firefox/addon/271/[/url] After you restart your browser you should see a dropper icon on the lower left hand side of the browser. Go the the image url you posted above, click the colorzilla icon and then hover over the image. Once you are over the color …

Member Avatar for hielo
0
241
Member Avatar for yopirates

[QUOTE]i had designed a website using width and height in pixels [/QUOTE] Not only that, but you also used a SPECIFIC resolution. Basically you need to make a copy of that page and on the new copy, working with the same resolution as before, start changing those px to percentages …

Member Avatar for hielo
0
64
Member Avatar for Techsavy

I am seeing various references to [icode]<a href="javascript<b></b>:XXX('Y')">[/icode] where XXX is some function name and Y is the functions argument. You need to get rid of those "b" tags. AI suggest you change that to: [icode]<a href="#" onclick="XXX('Y'); return false;">[/icode] Also, instead of having the default namespace (xmlns="http://www.w3.org/1999xhtml/1999") as an …

Member Avatar for hielo
0
121
Member Avatar for samarudge

[CODE=html] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>hielo</title> <style type="text/css"> .col{float:left;} .lastCol{float:none} #product_col1{width:30%;} #product_col2{width:30%;} #product_col3{width:30%;} </style> </head> <body> <div id="product_col1" class="col"> <!--Contents of column 1-->a </div> <div id="product_col2" class="col"> <!--Contents of column 2-->b </div> <div id="product_col3" class="col lastCol"> <!--Contents of column 3-->c …

Member Avatar for hielo
0
125
Member Avatar for tones1986

On your php you have: [icode]if (isset($_POST['fileframe']))[/icode] but on your html you have [icode]<input type="hidden" name="filename" value="true">[/icode] so change the name of the hidden field to [icode]name="fileframe"[/icode]

Member Avatar for hielo
0
131
Member Avatar for anirban1087

[QUOTE]Now I would like to show the details of a particular record, by clicking on a row, and the details will be shown in a new page[/QUOTE] Assuming that each record has a unique id, all you need to do is: for every row add a table cell that includes …

Member Avatar for MindSter
0
90
Member Avatar for phplover

[icode]...stripslashes($_POST);[/icode] did you even bother to read the manual? a. stripslashes expects a string NOT an array. $_POST is an array b. it does NOT expect a reference. In other words, I had the following string in a variable [icode]$name="O'malley";[/icode] then simply calling [icode]stripslashes($name);[/icode] would not change the value of …

Member Avatar for hielo
0
123
Member Avatar for BWind

you have: 12 items in imgs1 11 items in lnks1 11 items in alt1 Make them all the same number of items.

Member Avatar for gumape
0
106
Member Avatar for amer.m

[icode]xmlDoc.load[/icode] is used to load an exisisting XML file. Since you want to load it from a scring, you need to use [icode]xmlDow.loadXML[/icode] instead. Refer to: [url]http://www.devguru.com/technologies/xmldom/quickref/document_loadxml.html[/url]

Member Avatar for hielo
0
466
Member Avatar for SgtMe

[icode]document[/icode] is an object that exists (is defined) when you are running your javascript from a BROWSER window. [QUOTE]I opened the JavaScript with 'Microsoft Windows Based Script Host'[/QUOTE] There you have it - you are NOT using a browser. instead of document.write try Wscript.Echo

Member Avatar for hielo
0
4K
Member Avatar for BlueCharge

On line 7, you forgot to execute the query. You need to use mysql_query(): [CODE] ... $selectcount = mysql_query("SELECT * FROM refferals WHERE refferer = '$current'") or die( mysql_error() ); ... [/CODE]

Member Avatar for boorsekala
0
148
Member Avatar for ud2008

> But I can't get the query to work when I enter in both zipcode1 and 2 and year1 and 2 (second elseif). When that condition is true, then the "if" and the first "elseif" are also true. Since they appear before `elseif(!empty($_POST['nbs_contact_year2']) && !empty($_POST['nbs_zip2']))`, they will execute first. You …

Member Avatar for hielo
0
83
Member Avatar for QWaz

[QUOTE] Then copy all the existing files from an existing folder (FOLDER B) into FOLDER A [/QUOTE] Refer to the "copy" function in PHP. Particularly, refer to the second user comment on its manual page: [url]http://us3.php.net/manual/en/function.copy.php#91256[/url]

Member Avatar for sourcebits
0
133
Member Avatar for mpc123

Assuming your image is located at [url]http://www.yoursite.com/Images/buyNow.gif[/url], then try: [CODE] echo sprintf( '<a href="%s"><img src="%s"/></a>', $row['ProductUrl'], '/Images/buyNow.gif' ); echo "</td></tr>"; [/CODE]

Member Avatar for hielo
0
135
Member Avatar for PotaZinga

quite a few options here: [url]http://javascriptkit.com/script/cutindex1a.shtml[/url]

Member Avatar for localinternet
0
93
Member Avatar for EverWebby

read comments in the code [CODE] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>hielo</title> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function(){ //the example below will select all the "P" tags within <div class="TopMainNav"> //if you want ANY tag within <div class="TopMainNav"> //then use $(".TopMainNav …

Member Avatar for hielo
0
211
Member Avatar for terrymold

[QUOTE]For some reason, the error message doesn't have the full text (ending height with just heig)?[/QUOTE] On the field in question, look at the size of the field in your db. In other words, look at the maximum number of fields it can accept. Now look at the text you …

Member Avatar for hielo
0
104
Member Avatar for MDanz

try: [CODE] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>hielo</title> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function(){ $('input.addForm').live('click',function(){ var f=$(this).closest('form').clone(true); $(f).insertAfter($(this).closest('form')); }); }); </script> </head> <body> <?php echo "<form enctype='multipart/form-data' action='rapidinsert.php' method='post' name='changer'> <br /><br /> <font color='#D99C29' face='Arial' size='3px'>Add Noun </font><input type='text' name='noun' …

Member Avatar for Stefano Mtangoo
0
101
Member Avatar for blackoprogue

Instead of: [iCODE]window.setInterval("refresh()",600000);[/iCODE] you need to save a reference to that call: [iCODE] timerID = window.setInterval("refresh()",600000);[/iCODE] THEN (whenever you are ready), you use timerID to stop subsequent calls by passing that id to clearInterval. [iCODE]clearInterval(timerID)[/iCODE]

Member Avatar for hielo
0
147
Member Avatar for sem123

Assuming the name of the table is Office AND that the name of the column is stationary, try: [iCODE]SELECT * FROM Office WHERE stationary LIKE '%pen%'[/iCODE]

Member Avatar for hielo
0
80
Member Avatar for lwaterfo

try: [CODE] <?php mysql_connect("localhost", "admin", "pwd") or die(mysql_error()); mysql_select_db("app1") or die(mysql_error()); $firstname=mysql_real_escape_string($_POST['fname']); $email=mysql_real_escape_string($_POST['email']); $lastname=mysql_real_escape_string($_POST['lname']); $address=mysql_real_escape_string($_POST['address1']); $addressii=mysql_real_escape_string($_POST['address2']); $state=mysql_real_escape_string($_POST['state']); $zip=mysql_real_escape_string($_POST['zip']); $phone=mysql_real_escape_string($_POST['phone1']); $phoneii=mysql_real_escape_string($_POST['phone2']); $advertising=mysql_real_escape_string($_POST['advertising']); $otherjobtype=mysql_real_escape_string($_POST['otherjobtype']); $jobtype=mysql_real_escape_string($_POST['jobtype']); $objective=mysql_real_escape_string($_POST['objective']); $resume=mysql_real_escape_string($_POST['resume']); $weekendavail=mysql_real_escape_string($_POST['weekend_shift']); $nightavail=mysql_real_escape_string($_POST['night_shift']); $pt_ft=mysql_real_escape_string($_POST['shift_preference']); mysql_query("INSERT INTO `data` VALUES ('$firstname', '$lastname', '$email', '$address', '$addressii', '$state', '$zip', '$phone', '$phoneii', '$advertising', '$jobtype', '$otherjobtype', '$nightavail', '$weekendavail', '$pt_ft', '$objective', '$resume')"); print …

Member Avatar for manzarr
0
457
Member Avatar for ManishS

[QUOTE]mysql_query("INSERT INTO users VALUES(`id`,'".$username."','".$password."','".$gender."'.".$byear.")")[/QUOTE] I am assuming the id you are trying to insert is an autonumber fiedld. If that is true, then instead of `id`, use NULL: [CODE]mysql_query("INSERT INTO users VALUES(NULL,'".$username."','".$password."','".$gender."'.".$byear.")")[/CODE] (the database will autoincrement instead of actually inserting null).

Member Avatar for metalix
0
109
Member Avatar for assgar

On line 13 of array2:[iCODE]$exist[] = $row;[/iCODE] $row is an array that has TWO elements. So each time you add an element to $exist, that element does NOT have "110", "114" OR "115". It has an array, and each of those arrays in turn has TWO elements; one with index …

Member Avatar for assgar
0
80
Member Avatar for lf.gene

Yes: [CODE] $i=0; $j=0; do{ do{ echo $i . " " . $j; }while(++$j<10); }while( ++$i < 10); [/CODE]

Member Avatar for manzarr
0
72
Member Avatar for lf.gene

try: [CODE] <?php $class_id = $_GET['id']; $HOST = 'localhost'; $USERNAME = 'root'; $PASSWORD = ''; $DB = 'sjas'; $link = mysqli_connect($HOST,$USERNAME,$PASSWORD,$DB); //get class $sql1 = "SELECT * FROM class,course WHERE idClass = $class_id and Course_idCourse = idCourse"; $result1 = mysqli_query($link,$sql1) or die(mysqli_error($link)); $row1 = mysqli_fetch_array($result1); //get students $sql2 = "SELECT …

Member Avatar for hielo
0
371
Member Avatar for pietpiraat

try:[CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>hielo</title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(function(){ $('input[name^="qty"]').each(function(){ update(this); }); }); function update(el) { var tr = el.parentNode; while (tr.nodeName.toLowerCase() != 'tr'){ tr = tr.parentNode; } var qty= tr.cells[3].getElementsByTagName('input')[0].value; var price = tr.cells[2].getElementsByTagName('input')[0].value; var total = Math.round(qty*price*100); tr.cells[5].innerHTML …

Member Avatar for hielo
0
226
Member Avatar for lifeworks

try: [CODE] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>hielo</title> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function(){ var img=$('img[src$=toolbar_favforums.gif]'); var div = $('<div style="border:1px solid black;"></div>').insertAfter(img); $( $(img).remove() ).appendTo(div); }); </script> </head> <body> <img src="http://www.daniweb.com/rxrimages/toolbar_favforums.gif" alt="" onclick="alert(1)"> </body> </html> [/CODE]

Member Avatar for hielo
0
105
Member Avatar for raul8

[QUOTE]Request.QueryString[/QUOTE] Wrong. That is ASP (Server-Side) code. It does not exist in javascript. You need to look at location.search (which contains the querystring) and extract if from there OR you can use the code given at: [url]http://www.eggheadcafe.com/articles/20020107.asp[/url] If you use that, then instead of: [CODE]var s=Request.QueryString("status"); [/CODE] you would need: …

Member Avatar for hielo
0
107
Member Avatar for musman007

Look at the browser's source code. Somewhere in that code you must have a script, link, and/or img tag where you have a FULL url that starts with "http://", BUT you are accessing/viewing the page via "https://". The warning you are describing would happen when these differ in the protocol. …

Member Avatar for hielo
0
78
Member Avatar for Moderns

[CODE]//first tab is index 0, //second tab is index 1, etc. $('.tabs').tabs('select', 1);[/CODE] Refer to: [url]http://docs.jquery.com/UI/Tabs#method-select[/url]

Member Avatar for Moderns
0
2K
Member Avatar for thebluestar

you need to use the script tag: [CODE] <script runat=server language='javascript' src='pathtoyourfile.js'></script> <% 'asp code here... %> [/CODE]

Member Avatar for hielo
0
89
Member Avatar for Gibson_Junk

[CODE] function user_login ($username, $password) { //take the username AND prevent SQL injections $username = mysql_real_escape_string($username); ... } [/CODE] The problem is that you are connecting to the database OUTSIDE of your user_login() function, but inside the function you are using mysql-related functions. These mysql-related functions need to "see" the …

Member Avatar for vbeazer
0
382

The End.