52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Yuexuan

Hi, I m currently working in VB.NET with asp.net I have the following string: sBIG = LTC16CS#PBF I need to find whether the above word contains any word say "#" How to get it? i need to capture "#" to do if else statement I could not find a method …

Web Development asp.net vb.net
Member Avatar for sushmapotla
0
581
Member Avatar for Virangya

hi, i've been trying to solve this but no luck. This is my code [CODE]$replace1 =str_replace('hreflang=\"'.$arr['variantslang1hid'].'\" lang=\"'.$arr['variantslang1hid'].'\"','hreflang=\"'.$arr['variantslang1'].'\" lang=\"'.$arr['variantslang1'].'\"',$replace1);[/CODE] it should replace but no. i'm not escaping "" properly. how can i solve this? help much appreciated!

Web Development php
Member Avatar for Virangya
0
249
Member Avatar for Jfunch

I'm trying to make a prepared statement to query a customer database and set their user session variables. When I try to run it I get this error. Fatal error: Call to a member function bind_param() on a non-object in C:\wamp\www\HW2\user_login.php on line 57 Can someone help me with why …

Web Development php session
Member Avatar for veedeoo
0
149
Member Avatar for shielaolid

Hello there, can anyone can help me with my problem, i want to update a record, but im getting an error. this is my code [CODE]<?php // connect to the database include('connect-db.php'); // check if the form has been submitted. If it has, process the form and save it to …

Web Development php
Member Avatar for vaultdweller123
0
111
Member Avatar for hallianonline

I have problem that i want to replace a posed value of form with the correct name but not getting the proper text I am only getting the form values i.e. [B]pbs[/B] and [B]gs[/B] <?php include "connect.php"; $school=$_POST['school']; if ($idevice =="pbs") { $tb_school = "Public School"; } else { $tb_device …

Web Development php
Member Avatar for veedeoo
0
102
Member Avatar for trektrak

Hello Guys, I really need your ideas on this one... Ok, I'm only familiar with php and simple html coding. I'm designing simple book loan database. Consist of two sql tables (a very simple one) table 1 book_in table 2 book_out Ok.. Let say, every book is determined by a …

Web Development display php sql
Member Avatar for vaultdweller123
0
125
Member Avatar for jacksantho

In the address bar, i am getting the clean URL. I want to parsed it out.please help me out. [url]http://example.com/folder/test.php?stuid=xx44[/url]

Web Development php
Member Avatar for vaultdweller123
0
100
Member Avatar for hallianonline

Hello thanks for helping me before. I have a issue and I need its complete solution if someone can help me in this I have a simple php which contains html script and which have iframe included in it. I want its java scrpt embedded code so that users can …

Web Development php
Member Avatar for vaultdweller123
0
195
Member Avatar for Jfunch

I'm trying to convert my code for querying and accessing user login info and putting into session varibles to using a prepared statement to do the same thing, but I can't figure it out. Original: [CODE] $query = "SELECT id FROM customer WHERE username='$username' AND password='$password' LIMIT 1"; $result = …

Web Development php session
Member Avatar for hag++
0
142
Member Avatar for navp

I am making a html form on a website and then that form should be forwarded to an email. I am having a hard time with this. Dead line is near and i do not know what to do. Below is the code: PHP code: [CODE] <? if ($_POST){ if …

Web Development email php
Member Avatar for navp
0
224
Member Avatar for joshmac

I have an options table setup like so: [CODE]option_id option_name option_value 1 sitetitle SimpleCollab 2 siteurl http://example.com/ 3 sitepath /home/user/MAMP/htdocs/pm 4 enable_registration 1 5 enable_query 1[/CODE] Then my php code is as follows: [CODE]function get_pm_option( $option ) { global $pmdb; $result = $pmdb->query( "SELECT * FROM " . DB . …

Web Development mysql php
Member Avatar for diafol
0
145
Member Avatar for Altarium

Hello! I may be posting this in the wrong section (in which case I apologize), but is it possible to detect (using javascript or other web language) if the person using a computer has admin rights? I have a feeling it would not be possible (security and all), but I'm …

Web Development javascript
Member Avatar for Altarium
0
90
Member Avatar for klemme

Hi Guys, This is the image I am animating (The html surrounding it): [CODE] <div class="index_top_left_img"> <img src="products/wrangler-jeans.gif" width="198" class="IndeximgOpa" /> </div> [/CODE] I have this few lines which fades the images in and out: [CODE] $(function() { $('.IndeximgOpa').each(function() { $(this).hover( function() { $(this).stop().animate({ opacity: 1.0 }, 500); }, function() …

Member Avatar for pritaeas
0
206
Member Avatar for davy_yg

page-news.php [CODE] <?PHP /*-------------------------------------------------------------------------------------- @Desc : Simple and Cool Paging with PHP @author : SachinKRaj - http://blog.sachinkraj.com @updates : http://blog.sachinkraj.com/how-to-create-simple-paging-with-php-cs/ @Comments : If you like my work, please drop me a comment on the above post link. Thanks! ---------------------------------------------------------------------------------------*/ function check_integer($which) { if(isset($_REQUEST[$which])){ if (intval($_REQUEST[$which])>0) { //check the paging variable …

Web Development html-amp html-css php
Member Avatar for blocblue
0
261
Member Avatar for jerry4all

I've been all over looking for how to get this done. below is the script I use to parse sms to my provider's API.however I've been having issues deliver a more than one page sms. I later found out there's need to add a UDH to each page to concatenate …

Web Development api php
Member Avatar for jerry4all
0
156
Member Avatar for extjac

Hello, I wanted to ask the full time PHP developers how important you think MVC Pattern is. Are you coding all your projects with MVC? Would you have any recommendation in terms of PHP frameworks?

Web Development php
Member Avatar for mschroeder
0
173
Member Avatar for showman13

OK, Now that I know how to add minutes to a datetime field... I need to be able to take a specific date time as in NOW... Then add 30 days to it, and have record that date at 19:00:00 as an expiration date time I start by capturing the …

Web Development php
Member Avatar for diafol
0
581
Member Avatar for cr7489

i have a db that stores film and film reviews and using php i have created a system where the user can search for a review and then a list of reviews appear, i want to create a button with each review so that when selected the individual review can …

Web Development gui php
Member Avatar for cr7489
0
210
Member Avatar for Danny159

Hey guys, I need a bit of help... I have the following.... [CODE] <input name="title[1]" type="text" id="title[1]" size="30"> <textarea name="desc[1]" id="desc[1]" cols="50" rows="5"></textarea> <textarea name="keywords[1]" id="keywords[1]" cols="50" rows="5"></textarea> <hr> <input name="title[2]" type="text" id="title[2]" size="30"> <textarea name="desc[2]" id="desc[2]" cols="50" rows="5"></textarea> <textarea name="keywords[2]" id="keywords[2]" cols="50" rows="5"></textarea> <hr> [/CODE] Thing I want to …

Web Development php
Member Avatar for phper
0
90
Member Avatar for CaffeineCoder

Hello all; I'm having a heck of a time trying to resolve an issue (and thus far Google has not yielded the answer). I have a web application that invokes a 3rd party application to display a PDF page. Everything runs smoothly on Windows 2003, but now that I am …

Web Development asp pdf
Member Avatar for CaffeineCoder
0
232
Member Avatar for Susmita_Sikder

Hi all, I have WampServer2.2a-x32 and VirtueMart_1.1.8_eCommerceBundle_Joomla_1.5.22 but during installation the message given: [CODE]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=MyISAM CHARACTER SET `utf8`' at line 29 SQL=CREATE TABLE `jos_banner` ( `bid` …

Web Development php
Member Avatar for Susmita_Sikder
0
120
Member Avatar for cskinittest

<?php session_start(); if(isset($_POST['next'])){ $a=$_POST['a']; } if(!isset($a)){ $a=0; } $q = $_SESSION['q']['a']; include('dbconfiguration.php'); $sql1="SELECT * FROM question WHERE question_id='1' LIMIT 1 OFFSET 0 $q"; $result=mysql_query($sql1); echo $sql1; echo "<form method='post' action=''>"; while ($row = mysql_fetch_array($result)) { echo $row['Question']. "<br/>"; echo "<input type='radio' value='answer1' name='answer'>" .$row['optionone']; echo "<input type='radio' value='answer1' name='answer'>" .$row['optiontwo']; …

Web Development php
Member Avatar for baig772
0
148
Member Avatar for dany12

Hello to evryone my name is Dany and I want to get involved as volunteer in web project that is based on php mysql xhtml html css or any other web thenologies with the ondition to have php in it. Any advice or contact with developers that need help is …

Web Development html-css oop php
Member Avatar for cereal
0
195
Member Avatar for mynameisfish.22

I am currently developing a small site to keep me amused in the nights I can't sleep. I have decided to create a forum with php and sql using databases to store posts etc. I have been experimenting with different ways of having the forums get to certain point and …

Web Development php
Member Avatar for pritaeas
0
162
Member Avatar for jetlife76

Hi guys, i am currently working on a project that queries an inventory database through the use of radio buttons, for example; If the first button FOR THE Item(HAMMERS)is clicked, the output should be the name of the item, the number sold and the total profit(calculations) into a table. the …

Web Development php
Member Avatar for jetlife76
0
136
Member Avatar for dremes

Hi could anyone advise what I should change with the code below to stop these been treated like a pop up windows, it would be best if it openned in new tab or second use of browser on top of current window. $chat = "window.open( '" . SK_Navigation::href("private_chat", array("userKey"=>$pr_key, "oppUserKey"=>$opp_key, …

Web Development javascript
Member Avatar for dremes
0
141
Member Avatar for winnzor

When i click a button [CODE]<input id='delete' type='button' name='delete' value='Delete' onclick='deletePost(<? echo $id;?>);'>[/CODE] I want it to go to this function which is sent to my delete php code [CODE]function deletePost(id){ $('.content-num' + id).hide('slow'); $.ajax({ type: "POST", url: "/func/delete.php", data: "id="+ id, success: function(){ }}); alert(id); } [/CODE] Im new …

Web Development javascript php
Member Avatar for vsmash
0
248
Member Avatar for tarunfuture

I am using javascript for form validation but after click on submit its showing me the alert but after cancelling the alert box it is processing and sending me to the next page

Web Development javascript php
Member Avatar for tarunfuture
0
208
Member Avatar for Fortinbra

Right now my company uses Crystal Reports for report documents. We are running into HUGE errors and limitations that we need to get rid of. Anyone have any suggestions for Crystal reports alternatives? We have a somewhat unique deployment patter, our customers all use our application on their own local …

Web Development asp.net
Member Avatar for abhishek dutta
0
152
Member Avatar for martin11ph

Hi good day. I am currently using Spry Textfield Validation on my forms. Whenever there is an error, the error message does appear and the field goes red. However, the entire form is shifted to the left a couple of pixels. If the user corrects the value in the field, …

Web Development ide javascript
Member Avatar for martin11ph
0
224
Member Avatar for fredy91

hy all, I want to make code for download multiple file in php so I make in zip file. my code work and can create sip file but when I want to open the zip file appear error message like this " the archive is either is unknown format or …

Web Development file-system php
Member Avatar for fredy91
0
3K
Member Avatar for ankit.pandey3

[CODE]<script> //function PlaySound() { var sound = document.getElementById(sound1); sound.Play(); alert("ok");} function playSound( url ){ var s=document.getElementById("sound").innerHTML="<embed src='"+url+"' hidden=true autostart=true loop=false>"; s.play(); } </script> <!-- <embed src="sound_5.mp3" hidden="true" autostart="false" loop="false" width="0" height="0" id="sound1" enablejavascript="true"/>--> <input type="button" onclick="playSound('sound.wav')" value="Play"/> <div id="sound"></div> [/CODE] Hi friends, I want to play sound from above code …

Web Development javascript
Member Avatar for ankit.pandey3
0
174
Member Avatar for fmjnax

Hi all, I'm sorry if the thread title doesn't make much sense; I'm quite new to AJAX (well, to web programming as a whole. I'm more of a SQL/client-server developer). Anyway, I'm having some trouble getting some code to work. What I'm doing is I am dynamically loading a list …

Web Development client-server javascript json php
Member Avatar for fmjnax
0
257
Member Avatar for sam230

I want to check the image size in JavaScript.. for example if image size is more than 500kb and other format instead of jpg.. it should not get uploaded.. i want to check these validation before form submit.. thanks in advance.. waiting for positive ans. Regards

Web Development image javascript
Member Avatar for Troy III
0
278
Member Avatar for softDeveloper

Hi All, I'm selecting text from an iframe using getSelection(). It reads everything but the tabs '\t'.

Web Development javascript
Member Avatar for softDeveloper
0
144
Member Avatar for Martin C++
Member Avatar for jetlife76

Hi guys, i am currently working on a project that queries an inventory database through the use of radio buttons, for example; If the first button FOR THE Item(HAMMERS)is clicked, the output should be the name of the item, the number sold and the total profit(calculations) into a table. the …

Web Development asp.net php sql
Member Avatar for jetlife76
0
80
Member Avatar for Martin C++

Hello, I have a PHP page called summary.php and I m trying to make the jquery script to post piece of data when <select> is modified. This is my code atm [CODE=js] <script> $("select").change(function () { page_id=$(this).attr('id'); alert(page_id); $.post("#", {id:page_id}); }) .change(); </script> <?php if(isset($_POST['id'])){ die("YES!"); } echo $_POST['id']; ?> …

Web Development javascript php
Member Avatar for Martin C++
0
206
Member Avatar for Verygoodguy

I have a sql table for storing unique e-mails.I need a stored procedure that could let a user that uses aspnet page to insert data know that the e-mail address already exists on a table and specify a new one. The table looks like this: EMailID int NOT NUL (1,1), …

Web Development asp.net sql
Member Avatar for Verygoodguy
0
145
Member Avatar for ibn_sumal

Hello guys I'm trying to do something very basic but can't figure it out so far. I have a form and just want to display [U]all the user's comments one after the other[/U] in the same page once they have submitted them. It does show a user's comment however when …

Web Development display php
Member Avatar for ibn_sumal
0
2K
Member Avatar for lastgame2007

<br /><b>Warning</b>: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. …

Web Development php
Member Avatar for diafol
0
91
Member Avatar for fredfletcher

Hello, I tried many different combinations to get this to work, but with no success. As always, I try my best and spend a lot of time in trying to get something to work before I ask for help on something. My question is, how can I pass parameter from …

Web Development php
Member Avatar for fredfletcher
0
161
Member Avatar for emclondon

Hello guys, I am trying to learn working with Web services using PHP. I have found many methods to access and consume these services, but I've come to know Soap Client and cURL are the best way to do it. I decided to work on an API provided by a …

Web Development api php xml
Member Avatar for diafol
0
307
Member Avatar for jetlife76

Hi guys i'm writing a script (Visual Studios 10 express) to simulate a restaurant cash register. I am having problems gettin my values from each selected item to add up and display in the subtotal label. As of now i have it to where when i select a quantity of …

Web Development asp.net
Member Avatar for jetlife76
0
107
Member Avatar for accra

hi, i get this error when i run my script [CODE]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\xampp\htdocs\autogh\admin\userindex\scripts\banner.php on line 13[/CODE] this is my mysql statement [CODE]$banners_num = "select * FROM banners WHERE DATE_ADD(todate, INTERVAL numDay DAY) > NOW() AND position='top_banner'"; [/CODE] Am trying to …

Web Development php sql
Member Avatar for accra
0
163
Member Avatar for danielbala

Hi.. I want to implement a program for identifying spam emails using an algorithm naive bayes in php.. How to implement this..can anyone help me.. Thx in Advance

Web Development algorithm php
Member Avatar for danielbala
0
82
Member Avatar for himanshu.1691

i type the following code.... it runs properly....data gets fetch but i am not able to display it in a textbox.... it simply remains blank....whereas i am able to fetch the data outside the form tags here is my code: here i can see name =himanshu outside the form but …

Web Development html-css http-protocol oracle php
Member Avatar for emclondon
0
191
Member Avatar for shielaolid

Hello there, anyone can help me about my problem, i want to display an error message when the user inputs invalid username and incorrect password. and i want to display it in the same form. im new in php. These are my codes: [CODE] <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $db=mysql_connect('localhost','root','') …

Web Development php session
Member Avatar for shielaolid
0
7K
Member Avatar for super-duper

[CODE]<?php include('dbconnect.php'); Print "Database was found and connection was successfull!" $fname = $_POST['fname']; $lname = $_POST['lname']; $address = $_POST['address']; $city = $_POST['city']; $state = $_POST['state']; $zip = $_POST['zipcode']; $sql = "INSERT INTO `demoform` VALUES ('$fname', '$lname', '$address', '$city', '$state', '$zip')"; if(!mysql_query($sql)){ die('Error: ' . mysql_error()); } Print "Your information has …

Web Development php
Member Avatar for baig772
0
183
Member Avatar for turpentyne

working from this little form validation script, does anyone know how to check to make sure at least one of several looped in dropdowns have been selected as well. The dropdowns have a php generated name: <select name="participantqty[<?= $c_row['workshop_id'] ?>]" id="" class=""> [CODE]<script type="text/javascript"> function required(){ var first = document.forms["register1"].elements["fname"].value; …

Web Development javascript
Member Avatar for javaAddict
0
823

The End.