17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for RobotFX

Hi! I'd like to make this mysql command into a script and run it as a cron: [CODE]DELETE FROM xx_posts WHERE post_content=''[/CODE] However, I don't know how. So the question is what should the php file look like to access and delete the empty wordpress posts from the database? Thank …

Web Development php wordpress
Member Avatar for RobotFX
0
95
Member Avatar for bevssi

I need some quick help, Please! This is probably very simple but I'm making it hard. My code displays 2 totals for a month, this year and last year. But, if the month's record doesn't exist it picks up the year's start total for which I have a simple If …

Web Development asp display
Member Avatar for ArtistScope
0
129
Member Avatar for epicrevolt

Basically, I am working on a joke site that allows users to submit jokes. When displaying the jokes, I want to use a function called joke_author, which will automatically find the authors username based on the authorid of the joke. in both my users table and jokes table, the user …

Web Development php
Member Avatar for epicrevolt
0
125
Member Avatar for ptara1

I have a php script that echoes results from a search. Generally I have no problem getting the results in a table but for some reason I can't get these scripts to do that. I figure its a small error. I'm going to put in the code but if you …

Web Development mysql php
Member Avatar for ptara1
0
275
Member Avatar for brynFlew

Hello, does anyone know a simple way to focus on a different text field after the user enters data in the first text field? Thanks.

Web Development javascript
Member Avatar for brynFlew
1
326
Member Avatar for Tehim

Basically I'm making a script that sends the user an email on register and they have to click a link in the email to activate their account. But in my activate page their seems to be an error in my coding and I've checked it over but I can't find …

Web Development email php session
Member Avatar for Tehim
0
370
Member Avatar for liamfriel

Hello, I am using a script to process subscriptions on our sites - I can sucessfully get the subscription payment to process, I am having issues processing a cancel IPN request. [CODE] // assign posted variables to local variables $item_name = make_safe($_POST['item_name']); $item_number = make_safe($_POST['item_number']); $payment_status = make_safe($_POST['payment_status']); $payment_amount = …

Web Development php
Member Avatar for liamfriel
0
243
Member Avatar for ganeshrnet

Below is a piece of code i,ve configured with, It's giving me an Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/****/public_html/****/g.php on line 265. The information stored in the database can accessed be accessed by other pages, using the same code. but its not possible …

Web Development mysql php
Member Avatar for pritaeas
0
255
Member Avatar for a_salted_peanut

Hi all, Please bear with me on this as i have not long been learning how PHP works and am still learning VB.NET slowly. I have been testing the code for PHP using the Apache webserver. The problem i am having is, this is the function i am using with …

Web Development encryption php vb.net
Member Avatar for DotNetNewbie5
0
2K
Member Avatar for Roybut

Hi All, (EDIT: Amazingly, I clicked on another thread to give myself a break from coding and i found half the answer immediately. Thanks Pritaeaus [url]http://www.daniweb.com/forums/post1478160.html#post1478160[/url]. However, when validation is not passed I still get the messed up page so if anyone can help, I'd be most grateful.) (EDIT 2: …

Web Development html-css perl php
Member Avatar for Roybut
0
220
Member Avatar for Jhon E

Hello everyone, I have a text file which has some values structured as below -------------------------------------- 1 2 3 4 -------------------------------------- Then i made a PHP file which can receive checkbox values (always receive 2,3 & 4) from another HTML file as below [CODE]if($_POST['Button']){ $check = $_POST['$boxname']; foreach($check as $chk ){ …

Web Development file-system php
Member Avatar for Jhon E
0
182
Member Avatar for fantasma

Hi there! I have this function in jQuery that is suposed to toggle a div, according to each different record I click, in order to toggle an upload form. However I can't seem to get it to work properly. Anyone could help? I really need this working today :( jQuery …

Web Development javascript php
Member Avatar for fantasma
0
142
Member Avatar for featherwebdiva

Hi I've been all over these discussions and still cannot find the syntax that works! When I echo $co and $bus, they both print on screen as they should. But when I try to update the mysql records using the following php, the business_name field data gets erased instead of …

Web Development mysql php
Member Avatar for diafol
0
18K
Member Avatar for puvi

hi frens.. i have this piece of code, which is not working the way i thot it would. i want to check if the $key exists in array $rowid, where $key also comes from database. lets say, key exists for the 1st iteration (it prints exist), but if key exists …

Web Development php
Member Avatar for puvi
0
111
Member Avatar for kadriirdak

Hi There, I create an SQL statement to retrieve some data from DB. However I can not do the third if statement! my code; [CODE] $search = care_query(" SELECT contact_number, role, is_active FROM contact_roles WHERE contact_number='$mn' AND is_active='Y' AND role like 'S%'; "); while($row = care_fetch_array($search)) { $role= $row['role'];echo "<pre>"; …

Web Development php sql
Member Avatar for diafol
0
157
Member Avatar for Ritesh_4

Hello Anyone can pls provide me with a sample code, whereby if I change a field value in a web form (from a drop-down list for example), the value shown in another field is automatically updated to show the needed value for that selected option?

Web Development javascript
Member Avatar for Shanti C
0
200
Member Avatar for Alex_

How can this be... Another odd thing is that the error appears on the page but no trace in console This is my code [code=java] package actions; import com.opensymphony.xwork2.ActionSupport; import logic.*; import logic.organizations.Project; public class CreateProjectAction extends ActionSupport{ private Project project =null; private String message = "NULL"; public void setProject(Project …

Web Development apache java-jsp
Member Avatar for peter_budo
0
649
Member Avatar for anilashanbhag

[CODE] <html> <body> <canvas id="example" width="800" height="600"> This text is displayed if your browser does not support HTML5 Canvas. </canvas> <script type="text/javascript"> var example = document.getElementById('example'); var context = example.getContext('2d'); for(var j=0;j<8;j++){ for(var i=0;i<6;i++){ context.fillStyle = "rgb(255,0,0)"; context.fillRect(100*j, 100*i, 50, 50); } } </script> </body> </html> [/CODE] how do i …

Web Development javascript
0
71
Member Avatar for Netcode

Hi guys! I just installed a new windows vista on my newly bough hard drive. i tried to deploy my web application to the local IIS server but the default web site appears to be stopped which prevents any site from being accessible over the LAN and when i try …

Web Development asp.net hard-drive windows-vista
Member Avatar for Netcode
-1
93
Member Avatar for pearll

What is wrong here ... as verb_id and item_code is being entered into the database as "0" ... even the date is like 0000/00/00 ... Thanx in advance !! [CODE]<?php $verb_description=$_REQUEST['verb']; $item_description=$_REQUEST['item']; $post_description=$_REQUEST['post_description']; //to fetch verb_id $verb_sql="SELECT verb_id FROM tbl_verbs_master WHERE verb_description='$verb_description'"; $verb_id=mysql_query($verb_sql) or die(mysql_error()); //to fetch item_code $item_sql="SELECT item_code …

Web Development php
Member Avatar for pearll
0
106
Member Avatar for devfresher

c# interview questions are generic collection faster. I had a argument with the interviewer and my thought is they are not faster please help.

Web Development asp.net c c# c++
Member Avatar for khadakbist
0
205
Member Avatar for devinodaniel

I'm trying to get my page to redirect back to another page after the form has been submitted to its self via $_SERVER[PHP_SELF] . I've tried using the header(Location) script but to no avail. Anyone know of an easy way to do this? Right now.. when my page is submitted …

Member Avatar for devinodaniel
0
1K
Member Avatar for nats01282

i need a piece of code to break down the data brought in from the MYSQL database im creating a small forum type on my website but with my layout if the user writes 5 lines it shows it all on 1 line and shows the bottom scroll bar, i …

Web Development php
Member Avatar for nats01282
0
99
Member Avatar for shawtyred74

I am not quite understanding how this how ereg and Preg_match thing works. I am trying to prevent users from creating a username that is less than 3 characters, with no capital letters, and no special characters and cannot be a reserved user id such as root, admin, and operator …

Web Development php
Member Avatar for shawtyred74
0
97
Member Avatar for CanadianGSX

I've looked around and from what I can tell, the code seems right. Basically crating a JS array and passing PHP values to it to use in an onChange to fill a text field. The dropdown gets populated fine but the text field does not autopopulate onChange. I'm not too …

Web Development javascript
Member Avatar for CanadianGSX
0
247
Member Avatar for andrewliu

Hello. I'm still in the learning process. I'm trying to figure out how this works. I'm trying to change the background and color of the text on hover and make it click able. When it is clickable, I would like the background to change on active, and then when you …

Web Development javascript javascript-jquery
Member Avatar for andrewliu
0
342
Member Avatar for FBG

Hi, On my website I have a lot of folders with lists of article links. I want to display the number of links in these lists on the folders people select, so they know how much articles are inside a folder and where to search. I've looked for help creating …

Web Development display php
Member Avatar for FBG
0
110
Member Avatar for kardklub

I have an online orders database which prints fpdfs for delivery notes and off hire notes. I have looked into digital signitures on fpdf but have not found anything useful. Would it be possible to use a very simple paint program on the web inserted in your orders page where …

Web Development php
Member Avatar for kardklub
0
109
Member Avatar for epicrevolt

Alright, so I am working on this new site and for the registration, I am using a template I have used plenty of times in the past. Now, this one snippet I am showing you will check if the username is either too short or too long, or if the …

Web Development php
Member Avatar for epicrevolt
0
198
Member Avatar for dyla123

Hi i am wondering could anyone help me understand a file upload code. I am currently working on a website like mediafire, raipidshare and the rest of them. I have taken down codes of all sorts and some i got to work but had errors. I don't understand as i …

Web Development file-system php
Member Avatar for diafol
-1
304
Member Avatar for shawtyred74

Can someone please help me....I am new to php and I am having trouble with redirecting back to my loginpage with an error message showinf at the top of the loginpage when the wrong user name and password is entered that will say that the user is invalid...here is my …

Web Development php
Member Avatar for yoge911
0
235
Member Avatar for Hakoo

Hello all, I have created Servelets which are used by midlets and having Database in MySQL. I have deployed servelets in Apache Folder. but now question is how to setup Database? Thanking You, Hakoo S Desai.

Web Development apache client-server java-jsp
Member Avatar for peter_budo
0
179
Member Avatar for anirban1087

Hi, I am working on a order form using php, mysql & javascript. The problem I am facing is that while user input the quantity and rate of a product the js will auto calculate the total amount for the same. I am able to do this only for the …

Web Development html-css php xml
Member Avatar for diafol
0
315
Member Avatar for msaranya

In my webpage, I have a button "SAVE DRAFT". The first time it is clicked the record must be inserted and the text of the button would be changed as "Update Draft". Then how manytimes the button is hit, it should just update the record. However if the user goes …

Web Development asp.net
Member Avatar for msaranya
0
586
Member Avatar for coolest_987

Hi Everyone How can i upload pdf file in php as i have noticed that tmp file of pdf file is not created . Thanks in Advance

Web Development pdf php
Member Avatar for coolest_987
0
269
Member Avatar for thijscream

heya, your last answers realy helped me out, but i'm still stuck with another question. what i want to do is the following. i have a database with this in it:" [CODE]id land streek rood wit rose 1 Frankrijk Bordeaux 1 1 0 2 Frankrijk Bourgogne 1 1 0 3 …

Web Development display php
Member Avatar for thijscream
0
151
Member Avatar for kekkaishi

hi, i'm trying to manipulate dynamic textboxes using jquery such that when the value of the textbox_1 is, say, 'abcd' a new text box textbox_2 would be introduced and when the value of textbox_2 is again 'abcd' a third one is introduced and so on. ive managed to do this …

Web Development javascript javascript-jquery
Member Avatar for kekkaishi
0
146
Member Avatar for drewpark88

Hey guys, I understand how to setup the cron job to run once a day. Now I am having trouble putting together a function to do the following: I need to delete all content (rows) automatically where the "expire_date" field is equal to or greater than todays date. Keep in …

Web Development mysql php
Member Avatar for drewpark88
0
1K
Member Avatar for leemyers

blem I have a probem with my api signup page, the below code $this->obsConfig.... is not working i think it is outside a call but not sure how to put it in a class anyone know how to wrap this up? [code] $this->obsConfig['apiCall'] { ='AddUser.do'; $command = ""; if (!isset($obsAccount['username'])) …

Web Development api php
Member Avatar for phper
0
82
Member Avatar for primagic

I need some help with parsing information from a query string to a database. There is a company that wants to send me information to a page on my server as a query string (http post) e.g. [url]www.mydomain.com/info.aspx?Name=Smith&LastName=Taylor[/url] They will send probably about 15 different strings of information a day. …

Web Development asp.net first-post
Member Avatar for Freon22
0
87
Member Avatar for AdriftUniform

Hi, I am having an issue getting my select boxes working in IE. My current situation is that I have 2 select boxes, 1 for Styles and another for Substyles. Not all Styles have a Substyle, but each Style has a different Substyle, so when should happen is when you …

Web Development javascript
Member Avatar for AdriftUniform
0
165
Member Avatar for Violet_82

Hi there, I have developed (with some invaluable and greatly appreciated help!) a comment box using Java script (see bottom of this page [url]http://www.antobbo.webspace.virginmedia.com/webediting/documents.htm[/url]) but I would like now to be able to receive comments via email. At the moment if you click on the comment button it opens the …

Web Development php
Member Avatar for Violet_82
0
124
Member Avatar for Aser Gado

Edit: I fixed the problem! Someone please delete this or something!

Web Development php
Member Avatar for Daniel Liwonde
0
198
Member Avatar for andrewliu

Hello, I've been trying to figure this out and I'm not sure why my code does not work? [CODE]$(function(){ $('ul.ldd_menu li.topLink ul').hide(); $('div.ldd_submenu').hide(); $('div.submenu_top').hide(); $('li.topLink').hover(function(){ $(this).find('ul').show() $(this).css({'color':'#FFF','background-color':'#000000'}); $(this).find('div').show() },function(){ $(this).find('ul').hide(); $(this).css({'color':'#000','background-color':'#ffffff'}); $(this).find('div').hide(); }); });[/CODE] That is my code, and the background-color works. But why doesn't my font color change colors …

Member Avatar for andrewliu
0
123
Member Avatar for breakid

Hi, I am using tomcat to run jsp file, my question is how can force my server to create log file ? I'm new into tomcat, so please be gentle. Thanks

Web Development java-jsp
Member Avatar for stephen84s
0
143
Member Avatar for nats01282

im trying to create a form that redirects the user to anther page and also stores the information in the database. here is the code [CODE]<?php mysql_connect("localhost", "DBname", "Password") or die(mysql_error()); mysql_select_db("DBname") or die(mysql_error()); // Retrieve all the data from the table $result = mysql_query("SELECT * FROM players") or die(mysql_error()); …

Web Development html-css php
Member Avatar for nats01282
0
189
Member Avatar for andrewliu

Hello all! I have a problem with my jquery. I have hidden some parts of my menu, but I can't seem to hide the div tag. How do I accomplish this? This is my jquery: [CODE]$(function(){ $('ul.ldd_menu li.topLink ul').hide(); $('li.topLink').hover(function(){ $(this).find('ul').show() $(this).css({'background-color':'#000000', 'color':'#ffffff'}); },function(){ $(this).find('ul').hide(); $(this).css({'background-color':'#ffffff','color':'#000000'}); }); });[/CODE] This is …

Web Development html-css javascript
Member Avatar for andrewliu
0
124
Member Avatar for mbarandao

good day: I'm using an ajax script that receives a value into an input box and thus performs a function. I need to invoke the function immediately after the input box has a value. Currently the box has to lose focus in order for the function to work. What is …

Web Development javascript
Member Avatar for mbarandao
0
326
Member Avatar for morteza_ipo

Hello everyone. I have a folder with TEST name. In this folder I have 3 files : index.html , Untitled.swf , Untitled_toolbar.swf When we open index.html file we can see that video! Clearly I can say , we have 2 address: [url]http://...........com/TEST/[/url] [url]http://...........com/TEST/Untitled.swf[/url] I want to lock this address! [url]http://...........com/TEST/Untitled.swf[/url] …

Web Development php
Member Avatar for morteza_ipo
0
145
Member Avatar for haoth

[CODE]<?php include 'menu.php'; echo "<br>"; ?> <!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> <?php include "config.php"; // Get values from form $IDTrabalho = (isset($_GET['idtrabalho']))? $_GET['idtrabalho'] : ''; $IDCliente = (isset($_GET['idcliente']))? $_GET['idcliente'] : ''; $Descricao=$_POST['Descricao']; $Quantidade=$_POST['Quantidade']; $Preço=$_POST['Preço']; echo"$IDTrabalho"."<br>"."$IDCliente"."<br>"."$Descricao"."<br>"."$Quantidade"."<br>"."$Preço"."<br>"; …

Web Development php
Member Avatar for haoth
0
98

The End.