17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for cwarn23

I have been designing a security system to stop bots from spamming my forum. Basically, it will check if there is any isp name detected from the ip address then if there is no detected isp, the submitted post will not be made. I know to detect the ip address, …

Web Development php
Member Avatar for kvprajapati
0
2K
Member Avatar for niths

---Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\Project\login.php on line 72---- <html> <body> <form action="login.php" method="post"> <div> <table width="100%"> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> <tr> <td bgcolor="aqua"><h2>Login</h2></td> </tr></table> <table align="right" style="width:40%"> <br> <tr> <td>Username:</td> <td><input type="text" name="username"></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="password"></td> </tr> …

Web Development apache mysql php
Member Avatar for as.bhanuprakash
0
326
Member Avatar for Randomnoize

Hi all - This is kicking my butt. I have searched everywhere I can think of and have tried the various solutions to no avail. First I am connecting to two databases on the same instance of mySQL using : [code=php] $conn2 = mysql_connect ( "XXX.XX.XX.13", "User1", "PWord1",true) or die("Could …

Web Development mysql php
Member Avatar for Randomnoize
1
161
Member Avatar for Aaron Robinson

I am trying to create a sidebar menu which when categories are clicked, they expand and show items under each category. My website is structured so that an index.php is used to include 3 other php files: header, body and footer. The body is a php file that changes based …

Web Development html-css php
Member Avatar for Aaron Robinson
0
202
Member Avatar for angelicakirana

Hello, i'am newbie. I don't know about programming language,in each language, i only know "hello world". Javascript is spend more expensive bandhwidth. Especially for Limited Account of hosting. Is it possible to convert javascript to php or html ???

Web Development javascript php
Member Avatar for angelicakirana
0
3K
Member Avatar for farsen

Hi. In lack of better examples, I´ve found this javascript example which shows and hides content in a sliding way. Exactly what need. You can see the example here: [URL="http://www.dhtmlgoodies.com/index.html?whichScript=show_hide_content_slide"]http://www.dhtmlgoodies.com/index.html?whichScript=show_hide_content_slide[/URL] And the demo here: [URL="http://www.dhtmlgoodies.com/scripts/show-hide-content-slide/show-hide-content-slide.html"]http://www.dhtmlgoodies.com/scripts/show-hide-content-slide/show-hide-content-slide.html[/URL] Problem is, because of my text and image layout, I want the hide/reveal text to …

Web Development javascript
0
144
Member Avatar for serkan sendur
Member Avatar for cwarn23

Hi and I have a mysql table that gets a few million records inserted per day and it seems to get corrupted very often. The current database structure is myisam but it keeps on getting corrupted. Are there any mysql data structures that won't corrupt even when restarting the mysql …

Web Development data-structure mysql php
Member Avatar for cwarn23
0
112
Member Avatar for phoenix_dwarf

I'm trying to test out the Ajax multihandleslider control but the control dos not show up on the screen. Only an empty text box. Am i doing something wrong? This is everything... [CODE] <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true" /> <div> <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate> <table> …

Web Development javascript
Member Avatar for phoenix_dwarf
0
126
Member Avatar for Barrett1

I need to display all the comments from the comments database table where the $msg_id_fk = $msg_id from the messages table and I need it in a while loop [CODE] $comment_results = mysql_query("SELECT * FROM comments WHERE msg_id_fk='$msg_id' ORDER BY com_id ASC"); while ($row = mysql_fetch_array($comment_results)){ $msg_id_fk=$row['msg_id_fk']; $comment=$row['comment']; } $message_results …

Web Development display php sql
Member Avatar for cwarn23
0
176
Member Avatar for khr2003

Hi I am looking for a php code formatter that has to has two features: formatting arrays, so an array like this: [CODE]array ('key_of_first_value' => 'value','another_key' => 'value1', 'test_key' => 'value2');[/CODE] to this (note that the sign => is aligned among all array elements): [CODE]array ( 'key_of_first_value' => 'value', 'another_key' …

Web Development php
Member Avatar for khr2003
0
114
Member Avatar for hardinera

I need to retrieve the records which are between the selected days(TWO dates are of two different fields in DB) i tried this in php and its working [CODE]SELECT * FROM guest_info where check_in = '$check_in' and check_out= '$check_out'; [/CODE] but when i insert "between" noting happens [CODE]SELECT * FROM …

Web Development php
Member Avatar for hardinera
0
86
Member Avatar for nccsbim071

Hi Is it possible to execute normal php code under zend framework php. As far as i have heard php is a MVC model style coding. But i have not done MVC programming in php. I have an appplication where i need small modification. I have done some programming in …

Web Development file-system php
Member Avatar for nccsbim071
0
121
Member Avatar for infinitus 8

Hello, it's my first post and I'm not sure if is the right place. I want to integrate some contact form into my website, but every page I have diferent email address and ID, 2 or 3 page it's ok, I can do manually, but it will be hundreds of …

Web Development email php
Member Avatar for EvolutionFallen
0
2K
Member Avatar for drewpark88

Hey Guys, I have a quick question. I want to make sure I am doing this right, according to my understanding of the PHP manual. Here's my question: If I have an "address" input field for my form and a user inputs their address and then this information is passed …

Web Development php
Member Avatar for drewpark88
0
154
Member Avatar for WoW Me Web Girl

im trying to install my youtube clone script i brought from Vshare.com on my server and this is the error message i keep getting. Warning: fopen(../include/config.php) [function.fopen]: failed to open stream: Is a directory in /home/poetryba/public_html/install/install_collect_info.php on line 86 Warning: fputs(): supplied argument is not a valid stream resource in …

Web Development php
Member Avatar for WoW Me Web Girl
0
152
Member Avatar for pizzipie

I am fairly new to PHP-MYsql and HTML programming. So Please bear with me, I'm trying to create a function which will produce an array of 'Fields in a Table' and combine that array with an array of 'Column Headings' to produce an associative array like this; $labels= array('IDno' => …

Web Development php
Member Avatar for pizzipie
0
106
Member Avatar for drewpark88

Hey Everyone, I am getting an error with a PHP script made using the Authorize.net AIM (Advanced Integration Method) API for my donation form. I have gone over the code dozens of times and still do not know why it is not working. Everything works except the most important part...it …

Web Development api php
Member Avatar for drewpark88
0
302
Member Avatar for sdimantova

I need to create some kind of web interface that will allow users to view all of our conference room Outlook calendars/availability at one time. From there, they should be able to select a date/time and automatically bring up a new appointment in their Outlook client and schedule a meeting …

Web Development asp.net
Member Avatar for sdimantova
0
130
Member Avatar for Tekkno

Hello DaniWebbers, I've got several href's that take the user to different forms. However, in order to have access to the forms, they have to log in. So when they click the link, they are redirected to a login page if they have not already logged in, otherwise they are …

Web Development php session
Member Avatar for Tekkno
0
216
Member Avatar for phoenix_dwarf

I got a simple javascript function in my asp.net page that just checks to see if one value is smaller than the other. The condition value is 15000.00 and i'm comparing it to 920.00 Why does it evaluate to false? [CODE] var moo= 15000.00; var orig= 920.00; var bool = …

Web Development asp.net javascript
Member Avatar for phoenix_dwarf
0
108
Member Avatar for xolmc

Hello All! How can I automatically change permissions just for files in current directory and not for other directories. I suppose that 'chmod -R 664 .' will change permission to all current directory content..

Web Development php
Member Avatar for hashinclude
0
104
Member Avatar for Pooja J.

Hi guys, I have one form contains img title and img name, also in database named as gallary. my prob is i cant store the name of img with extension using file field. plz, guide me. //admin.php <?php $con = mysql_connect("localhost","root",""); $db = mysql_select_db('admin'); $title = $_POST['title']; $file = $_POST['file2']; …

Web Development image php
Member Avatar for hashinclude
0
101
Member Avatar for WoW Me Web Girl

I started a comments page on my website and the comments work fine and go through. But after you submit the comment the out put displays like this on my webpage: comments: "heartbeaker" by: jamika @ 12:30:00 am on March 11, 2010. Fear<br /> There are two flip sides, to …

Web Development php
Member Avatar for liamfriel
0
71
Member Avatar for itisnot_me

ok so what i have going right now is a little system that takes a value of %address% and turns it into what is stored on the database. and i am using a str_replace example (note there are more in the array) [CODE] $searchArray = array("%address%"); $replaceArray = array($address); $content …

Web Development php
Member Avatar for itisnot_me
0
286
Member Avatar for Exploded Fiber

Hi all, After some time pulling my hair my brain has turned to mush on this senerio. I'd appreciate any help offered as my PHP skills are still limited. Here is the senerio: I am creatings a voting website. I am currently creating an admin page that creates local election. …

Web Development php
Member Avatar for Exploded Fiber
0
107
Member Avatar for mtroute

I m trying to create a table using the results of a SUM on separate tables within a single DB. I have tried various join scripts but can't seem to get it right. As a work around, I have created a single SUM table for each Table and run the …

Web Development html-css php
0
79
Member Avatar for tryphy

Hi, I have a javascript function to disable and enable a textbox. [CODE] <SCRIPT LANGUAGE="JavaScript"> function enable() { document.form1.tmphone2.disabled=false; document.form1.pmphone2.disabled=false; } function disable() { document.form1.tmphone2.disabled=true; document.form1.pmphone2.disabled=true; } </SCRIPT> [/CODE] I need to call the function in a php code, on condition Heres my code: [CODE] <?php $cc = $row['company_country']; $s …

Web Development javascript php
Member Avatar for EvolutionFallen
0
2K
Member Avatar for avinash_545

Dear all, can you please help me with a small timer problem.i dont know why but firefox is not displaying the small clock from my codes, though javascript is enable. <html> <head> <script type="text/javascript"> function startTime() { var today=new Date(); var h= today.getHours(); var m= today.getMinutes(); var s= today.getSeconds(); //Now …

Web Development javascript
Member Avatar for avinash_545
0
112
Member Avatar for aboell

I have a Sharepoint (WSS) question that due to the keywords make it difficult to effectively find solutions on the web. We are trying to roll out a new Sharepoint site, but have some PR commitments to keep our original front page. I would like to know if there is …

Web Development asp.net sharepoint
Member Avatar for aboell
0
119
Member Avatar for serkan sendur

Today we were talking about using new databound controls in asp.net 2.0, i have been trying to persuade my partner to use these controls but he has been refusing and saying that those controls are not flexible enough. Then he challenged me to populate a dropdownlist in a formview; with …

Web Development asp.net dataset
Member Avatar for vyasdev2005
1
1K
Member Avatar for SCoder1

How do I use php on IIS 5.1? (a.k.a. windows xp professional)

Web Development php
Member Avatar for diafol
0
88
Member Avatar for mrjoli021

what is wrong with this form????? i can see the name and email but not the msg?? [code] <?PHP echo $_POST["name"]; //works echo $_POST["msg"]; //nothing prints out ?> [/code] [code] <form method="post" action="form.php" style="margin:0; padding:0"> <b>NAME:</b><br> <input name="name" type="text" class="form" id="name"> <br> <br> <br style="line-height:8px"> <b>E-MAIL:</b><br> <input name="email" type="text" class="form"> …

Web Development first-post php
Member Avatar for diafol
0
114
Member Avatar for litlemaster

I need to select certain the rows from a table but need to show only just five of them. For example select * from table where user = $user; but i need only top five results

Web Development php
Member Avatar for litlemaster
0
104
Member Avatar for -Zarah-

im trying to get an image scroller to work that i found in a code library. its working fine in firefox but not in inet explorer this is the link to the scoller... http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm i am just interested in the image part. ive deleted the script for the text part …

Web Development image javascript
Member Avatar for Airshow
0
144
Member Avatar for jazz_vill

I have this table forum and topic and i want to query forumname, description, total topics in the Forum idk how to do this i tried an sql statement like this SELECT f.forumname,f.forumdesc,max(t.forum) as total_topics from Forum as f INNER JOIN Topic as t WHERE f.forumid = t.forumid; of course …

Web Development php
Member Avatar for urtrivedi
0
238
Member Avatar for s_kanika

Hello everyone I have created a basic chat window in that i used textarea to enter message but by default it is taking a tab i.e., initially cursor isone tab ahead instead of being at initial position of textarea . Can anyone help me??????

Web Development php
Member Avatar for s_kanika
0
103
Member Avatar for UberJoker

Hey Guys. I cant actually think of a way to do this. Let me rephrase my question. I essentially want a perl script to run based on something that i am doing in javascript. for example: <javascript> if(x == 1) { then run the perl script. } </javascript> i dont …

Member Avatar for Airshow
0
3K
Member Avatar for FireNet

Hi, I am looking for a way to use minimal javascript to open a popup window when the user clicks on an input field and allow them to choose one string inside the pop up window (like click on a radio button) and get the input box in the parent …

Web Development javascript
Member Avatar for kareem.ramos
0
2K
Member Avatar for colwem

I'm definitely a noob to rails so sorry if this is trivial. I have tables with associations on them. The associations are supposed to add methods to my models like model.others and model.others= and so on but when I try to use them I get errors like the following. NoMethodError: …

Web Development api ruby
Member Avatar for colwem
0
168
Member Avatar for rfrei

I am writing a VB.Net program in an .aspx page that searches for a particular .htm file. Once the file is found, I'd like to launch the .htm file in the client browser. Can this be done from my server-side code?

Web Development asp.net client-server
Member Avatar for rfrei
0
89
Member Avatar for jino

Hi, I had changed an image to string using base64_encode() function. In now want to convert this string back to an image for saving it into a folder. Please help.... Jino

Web Development image php
Member Avatar for jino
0
184
Member Avatar for tryphy

I have four forms one --> two ---> threee -----> four I used session here... when i go from one --- > the code works good then when i go from two ----> three also works good.. but in the third page, when i click back <----- and then from …

Web Development php session
Member Avatar for cwarn23
0
134
Member Avatar for mrcniceguy

i have a web in which after member login, is able to publish blog post and only logged in members can comment. Now my problem comes in notification. 1.I need after someone comment then to send notification to the owner of the post. 2.Also if other members commented on the …

Web Development php
Member Avatar for mrcniceguy
0
106
Member Avatar for tryphy

How to remember a radio button selection in the multi form ..? [CODE] <input type="radio" name="yesrno" id="radio" value="yes"<?php if($_SESSION['rad_radio']) echo 'checked="checked"'; ?> /> <input type="radio" name="yesrno" id="radio" value="no" <?php if($_SESSION['rad_radio']) echo 'checked="checked"'; ?> /> [/CODE] It keeps on appear the selection "NO". Any Help ? Thanks

Web Development php session
Member Avatar for tryphy
0
174
Member Avatar for rockiesmagicnum

Here is my issue. I'm attempting to create a daily mailing using a console app. Well, when I started, I for some brilliant reason made a web app. So I'm trying to translate it into a console app, and while I THINK this should work, I keep getting a "type …

Web Development asp.net
Member Avatar for sinnerFA
0
185
Member Avatar for rockiesmagicnum

Here is my issue. I'm attempting to create a daily mailing using a console app. Well, when I started, I for some brilliant reason made a web app. So I'm trying to translate it into a console app, and while I THINK this should work, I keep getting a "type …

Web Development asp.net visual-studio
Member Avatar for rockiesmagicnum
0
62
Member Avatar for vij123

i have a Jsp page. in this Jsp page having some links. i want when i click to link of result some data should be display. but it does not displaying. please check the below code. Indus.jsp [CODE] <html> <head> <title>Indus Public School</title> </head> <body> <div align="center"><font size="+3"> Indus Public …

Web Development java-jsp
Member Avatar for vij123
0
123
Member Avatar for dawsonz

Hi i've got a simple username and password entry on my webpage. My login class works perfectly in Windows Form but not in my Web Application Login class: [code] using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient; namespace assignmentForm { public class UserLogin { private SqlConnection connection = …

Web Development asp.net open-source
Member Avatar for dawsonz
0
100
Member Avatar for ryan311

ive already search in google and yahoo but i don't know how to add that code to my code. here's my code in displaying a data in the table [CODE] $result = mysql_query("SELECT * FROM rent where status = 'pending' order by cno asc"); $count = mysql_num_rows($result); <table border='1' cellspacing='0' …

Web Development php
Member Avatar for ryan311
0
92

The End.