38,020 Topics

Member Avatar for
Member Avatar for weblexie

Hi, please help me with my code. Javascript function if (document.myform.Available.checked == false) { document.myform.Save.disabled = true; <?php $query = mysql_query("UPDATE rewarditems SET Available = 'Yes' WHERE RewardItemID = '{$_GET['item']}'",$link1) or die(mysql_error()); ?> } else if (document.myform.Available.checked == true) { document.myform.Save.disabled = false; <?php $query = mysql_query("UPDATE rewarditems SET Available …

Member Avatar for ko ko
0
105
Member Avatar for toskers25

I have a PHP object that I'd like to convert to XML so that I can use SimpleXML to run an xpath on the data. Can someone suggest some way to do this? Basically, I have the following PHP object and I need to be able to search for certin …

Member Avatar for blocblue
0
9K
Member Avatar for abhi10kumar

I am no submitting form (i.e. no button usage), then How I can preserve the value of a control. I am using pagination.

Member Avatar for ko ko
0
96
Member Avatar for danielsikes

Hi all, I am working on a project that requires themes much like the popular Content Management System, Drupal. I notice in their "info" files they use with their system to display information about the theme like its title, description, a snapshot of it, etc, my question is, would it …

Member Avatar for blocblue
0
158
Member Avatar for arsenalfun

Hello guys, So I wrote this code that fetch data from mysql table: [code]while($row = mysql_fetch_array($result)) { $src = ''; switch( $row['speed'] ) { case 'fast': $src = 'fast.png'; break; case 'slow': $src = 'slow.png'; break; default: $src = 'default.jpg';} } } echo "<tr>"; echo "<td><a href='http://" . $_SERVER['HTTP_HOST'] . …

Member Avatar for urtrivedi
0
123
Member Avatar for johndohmen1963

Hi I have a problem With the $_POST Here is the code i have i called this albums.php [CODE] <?php Echo" <table cellpadding='5' width='100%' border='1' bgcolor='white'> <tr> <td width='50%' align='left'> Usere Alben die schon bestehen. </td> <td align='right'> <form action='createalbum.php' method='POST'> <table> <tr> <td align='left'> <font face='arial' size='2'> Albumauswahlliste.</font> </td> …

Member Avatar for johndohmen1963
0
267
Member Avatar for Ritesh_4

Hello Anyone can recommend me the best php IDEs available which also provide support for frameworks like zend or codeigniter?

Member Avatar for Ritesh_4
0
127
Member Avatar for kali Annan

Hi i have the code i am not able to insert the datas into database while executing i got some error. i have tried many codes but no help .[[COLOR="red"]After entering the data[/COLOR]]when i click the submit button i got [COLOR="Red"]The Username is already taken![/COLOR]. [[COLOR="red"]Without entering the data[/COLOR]]when i …

Member Avatar for karthik_ppts
-1
153
Member Avatar for dalip_007

Hey guys I am getting a random number using built in function in a given range of number, like between 300 to 10000. but i want to make sure random number should not be repeated, e.g. if rand() function has output 305 once, it should not come again, for this …

Member Avatar for urtrivedi
0
155
Member Avatar for kained

On Thursday the [URL="http://www.theregister.co.uk/2010/09/17/eu_cookie_law/"]EU law[/URL](which the uk has passed verbatum) regarding cookies comes into effect. From my reading of it, any site that has among other things google analyitics present on it, will need to inform the user that cookies are present on the site, refer them to the sites …

Member Avatar for edwinhermann
0
208
Member Avatar for Whilliam

Hello guys, I have this school project. There is one aspect that I'm not sure of. So, here's the project description. The project is chatting. Well, you know how chatting works. When I type a message, that message will appear on the other person's computer. Anyway, the part wherein Im …

Member Avatar for maxlipman
0
99
Member Avatar for PinoyDev

Hi guys! This is a continuation post of my last thread regarding login with session..Now the main task is, the login form is now driven with Fancybox.. What i need to know is how to let the fancy box check/compare the value on mysql table if the username & password …

Member Avatar for PinoyDev
0
478
Member Avatar for abhi10kumar

An Ajax function is not working ?? [B]selectBatch1[/B] is not replacing combobox [B]1.[/B] [CODE] <?php session_start(); if($_REQUEST['action']=='') $_REQUEST['action']="sp"; if(empty($_SESSION['uid']) && empty($_SESSION['username'])) { $url="index.php"; header('Location:'.$url); } else { if(isset($_COOKIE["PHPSESSID"])) { $uid=$_SESSION['uid']; $username=$_SESSION['username']; } } //DB Connection $con=mysql_connect('localhost', 'tak27310_admin','admin123'); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("tak27310_followup", $con); //Pagination …

Member Avatar for diafol
0
129
Member Avatar for souravsikka

Hi, I am working on this curl function.The problem is it is not executing. 1)When we use $URL value directly in browser its working fine & SMS is going to number. 2)When i am trying to call a function having some curl function its not working. Need help. Thanks [CODE]<?php …

Member Avatar for hielo
0
1K
Member Avatar for drewpark88

Hey Guys, I need some assistance if possible. I am using MySQL & PHP, I have an "events" table with a row field called "Users_Attending" and can't seem to figure out the best way to add multiple users to an event rows "Users_Attending" field. I want to store user emails …

Member Avatar for drewpark88
0
143
Member Avatar for kali Annan

Hi I want to display the retrieved datas from database by using the search conditions.My search conditions are Age,gender .if user clicks the search button. the data should be display that satisfy both the conditions i need a mysql query and php code to retrieve the data Thank you

Member Avatar for blocblue
-1
312
Member Avatar for Stefano Mtangoo

So I was asked to integrate live webcasting in the next version of this website and I have no Idea. I did little reasearch and bump, I only hit shoutcast. May I ask anyone with Idea on good webcasting software for live internet Audio and video broadcasts to throw out. …

Member Avatar for Stefano Mtangoo
0
122
Member Avatar for Dannis86

Sorry if this is a stupid question, but I'll take the crap for what its worth. Im really asking myself every day the same question: What programming language should I learn? I really need to clear some things up, first of all some questions: 1. Ruby on rails, I hear …

Member Avatar for Stefano Mtangoo
0
283
Member Avatar for karthik_ppts

How to add control for marking area using points,lines and polygons on google map and how to store that area in mysql db? Becoz i need to give alert message when my vehicle cross that area in my vehicle tracking system.

Member Avatar for karthik_ppts
0
160
Member Avatar for masocha

l havinf problems sending individual emails with a loop within joomla The code is sending multiple emails to a single users something like its triggering an infinite loop. Please see code below [code] unction sendRequests() { $db = & JFactory::getDBO(); $sql = "SELECT * FROM `#__quotehunter_hunt_quotes` WHERE `flag` = '0' …

Member Avatar for masocha
0
128
Member Avatar for kiran33

[CODE]<td align="center" bgcolor="#FFFFFF"><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $row['Inq_id']; ?>"></td> <td colspan="5" align="left" bgcolor="#FFFFFF"><input name="delete" type="submit" id="delete" value="Delete"></td></tr> <?php foreach( $_GET['checkbox'] as $del_id ){ $sql = "DELETE FROM Inq_cat WHERE Inq_id='$del_id'"; $result = mysql_query($sql); } ?>[/CODE]

Member Avatar for kiran33
0
911
Member Avatar for souravsikka

I am getting this error while working on curl code[CODE][/CODE] Warning: curl_setopt() expects parameter 1 to be resource, string given in C:\xampp\htdocs\ [CODE]<?php //initialize the request variable $request = ""; //this is the username of our TM4B account $param["username"] = "kacs"; //this is the password of our TM4B account $param["password"] …

Member Avatar for souravsikka
0
2K
Member Avatar for PinoyDev

Good day! I just to ask why require_once function display the content of the whole page in the second page? I have two pages index.php and mem_accnt.php. I have session in index.php. Now i need to get the session in index.php and display it in mem_accnt.php. In order to get …

Member Avatar for PinoyDev
0
180
Member Avatar for cliffcc

I want to limit the length of text shown in php. What is the code in php? But i want to keep the full of text in database.

Member Avatar for diafol
0
82
Member Avatar for veledrom

Hi, When i hit the F5 key on the keyboard after Insert into process, it adds same record into database again. How can solve this problem? Thanks

Member Avatar for diafol
0
171
Member Avatar for cliffcc
Member Avatar for rayidi
0
521
Member Avatar for jacob21

How to call a PHP function on submit button My function is [CODE]function sendSMS($mobile, $msg, $sender, $sendPass, $sendID) { $msg=urlencode($msg); $ch = curl_init(); $url="abusms.com/pushsms.php?username=kas&password=6117&sender=SHRIA&to=$mobile&message=$msg"; //echo $url; $url=urlencode($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1)or die("error1"); curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost); $data = curl_exec($ch); echo $data; echo curl_close($ch); …

Member Avatar for karthik_ppts
0
7K
Member Avatar for scarcella

Hi guys i was wondering if you guys could let me know how i can post a form field using jquery and then be declared in a variable after post. The code for the html: [CODE]<table cellpadding="0" cellspacing="0"> <tr> <td></td> <td>Name:</td> <td>Email:</td> </tr> <tr> <td><label for=fri accesskey=f>Friend 1</label></td> <td class="tablePadding"><input …

Member Avatar for scarcella
0
169
Member Avatar for noahshoa2

Hi. So I am using Sphider on my website. I was wondering, is there anyway that I can search within a category? Like the search filtering to just one category. Thanks.

Member Avatar for iamthwee
0
56
Member Avatar for ujjval dave

hey guys, I need your help for mysql query.let me tell you one thing, it's a dynamic query whatever the user selects in another page, those value will be set in mysql query. The problem is that it's not giveing me any data from that query. So Please give me …

Member Avatar for iamthwee
0
93

The End.