i need a code for php changing image in every 2 hours at a time ...

Member Avatar
Member Avatar
+0 forum 5

Hi I have one sql query. using this query i can download 10 lakhs of data in csv file for 6 hours. now i want to download 20 lakhs of data for 6 hours or less. please tell me how to increase the performance. SELECT id as imp_addr_id,userEmail, email ,name,mobile_no,gender,city,income,profession,experience,country,pincode,type FROM import_address_book_test WHERE blacklist!='1' AND email!='' AND ( email like'%@gmail.com' OR email like'%@yahoo.com' OR email like'%@suksh.com' OR email like'%@rediff.com' OR email like'%@rediffmail.com' OR email like'%@ymail.com' OR email like'%@zapak.com' OR email like'%@live.com' OR email like'%@msn.com' OR email like'%@hotmail.com' OR email like'%@yahoo.co.in' OR email like'%@yahoo.in' OR email like'%@in.com' OR email like'%@indiatimes.com' OR …

Member Avatar
Member Avatar
+0 forum 7

[CODE]<SCRIPT language="javascript"> function abc(){ <?php $search1=mysql_query("select Lab_credit_hr from courses where Course_Number='$_GET[course]'"); if (mysql_num_rows($search1) == 0) { ?> document.fm.lab.disabled=true; <?php }?> </SCRIPT> [/CODE] i want to check mysql table row that if column "lab credit hour"= 0 then lab text field disabled help me this code? and this javascript function call in "course" option drop down menu

Member Avatar
Member Avatar
+0 forum 8

Hi guys, I have a problem on my php code and url passing. [B]What it should do:[/B] There are 3 forms of the php file, the [B]"email"[/B], [B]"item1"[/B] and [B]"item2"[/B]. The [B]email form[/B] is hidden by default on page load, it will only be visible if any of the [B]item1[/B] or [B]item2[/B] submit buttons is clicked and the two other forms will become hidden. The user will choose which item to click, then the [B]email form[/B] will display, then the user will enter their email address, when they click the button, they should be redirected to the page that they …

Member Avatar
Member Avatar
+0 forum 7

Hi guys, I am new here in the community. I need help on how to pass a javascript variable value to a php variable.. I am using jquery to hide form1 when the page loads. My first javascript is working fine. my code is like this: [CODE] <script type="text/javascript"> $(document).ready(function(){ $('#email').hide(); }); </script> [/CODE] and here is my php code below: [CODE] <?php $url = ''; ?> <form id="form1" method="post" action="<?=$url?>"> <label>E-Mail: <input type="text" name="email" /> <input type="submit" name="go" value="Go" /> </label> </form> <form id="form2" method="post"> <label>Test: <input type="submit" name="test" /></label> </form> [/CODE] then in this code below, I want …

Member Avatar
Member Avatar
+0 forum 6

[B]Give me a easy example of grid insert delete update in php like mysql grid db[/B]

Member Avatar
Member Avatar
+0 forum 5

Hai frnds, Ahh...:?: I started learning PHP by my self frm somr Online tuts,And tried my first script.yes here it is [CODE]<html> <Head> My first PHP By my own </head> <body> <?php echo "My first program and its a failure" ?> </BODY> </html> [/CODE] But,The problem is..:confused: that iam not getting desired output My compiler is spitting at me THIS hsetaknev@hsetaknev-desktop:~$ php as.php <html> <Head> My first PHP By my own </head> <body> My first program and its a failure</BODY> </html> hsetaknev@hsetaknev-desktop:~$ Please Help me

Member Avatar
Member Avatar
+0 forum 21

function main() { if(window.XMLHttpRequest) { ab=new XMLHttpRequest; } else { ab=new ActiveXObject("Microsft.XMLHttp"); } ab.onreadystatechange=function(){ if(ab.readyState==4 && ab.status==200) { document.getElementById("progress").innerHTML=ab.responseText; } } ab.open("GET","querygoogle.php"); ab.send(); } function test(id) { if(window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest; } else { xmlhttp=new ActiveXObject("Microsft.XMLHttp"); } xmlhttp.onreadystatechange=function(){ if(xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("testdiv").innerHTML=xmlhttp.responseText; //alert(xmlhttp.responseText); } } xmlhttp.open("GET","test.php",0); xmlhttp.send(); } function interval() { main(); setInterval('test(<? echo $_SESSION['id'];?>)','5000'); //test(); } in the main() i am insertig data in a table and i am running this function synchronously 2 minutes and from test() i am getting the result, of on which insertion id this is processing every 5 second getting alert(id) but giving …

Member Avatar
+0 forum 0

Hi Friends Pls help me, i have posted the code below, i am trying to multiply 2 text box values from thisqty and prate and final value has to be show in thisamt text box, and also i have attachment the screen shot [CODE]<form method="post" action="#" enctype="multipart/form-data" name="billing"> <table width="1000" border="0" align="center" cellpadding="1" cellspacing="1" class="table_style1" id="billing"> <tr> <th width="50" rowspan="2" bgcolor="#E4E4E4" class="table_title">S.No</th> <th width="125" rowspan="2" bgcolor="#E4E4E4" class="table_title">Item</th> <th width="100" rowspan="2" bgcolor="#E4E4E4" class="table_title">Units</th> <th width="91" rowspan="2" bgcolor="#E4E4E4" class="table_title">Rate</th> <th height="30" colspan="2" bgcolor="#E4E4E4" class="table_title">Previous Bill</th> <th colspan="2" bgcolor="#E4E4E4" class="table_title">This Bill</th> <th colspan="2" bgcolor="#E4E4E4" class="table_title">Upto Date Bill</th> </tr> <tr class="table_title"> <th width="100" height="25" …

Member Avatar
Member Avatar
+0 forum 19

I have a website pdf search engine called <URL SNIPPED> I don't want to provide my search engine for backlink so ,please don't remove my post,I need some help.. what is happening is the when you type "C tutorials" in search box it creates two instances like "C tutorials" and "Ctutorials" with or without space automaticall and shows results in search suggest as two options.. Any suggestions will be highly encouraged...

Member Avatar
Member Avatar
+0 forum 4

Hi there. Thinking about creating a membership registration-enabled website, that will store people names and some info about them, after they register, but what i can't begin to make is a PHP code that whenever, a user searchs ( In a search box ) a name of another user, that is stored in DB, i want the code ( which i can't create ) to bring out the data from the SQL Table, and display it. Also, since there will be many name to display, if you can help me give me a hint on how to make... like Ex: …

Member Avatar
Member Avatar
+0 forum 1

I need to be able to display a screenshot grab of specific websites in thumbnail size. Instead of going to the site and screenshotting it, I would like PHP to do the job for me. Is this possible?

Member Avatar
Member Avatar
+0 forum 13

Hi I've writen a server is PHP that i want to run every min. so i can do something like in cron [CODE]*/1 * * * * lynx -dump http://www.somedomain.com/myserver.php[/CODE] But i want to make sure there only 1 running. The web tells met to check for an prosesid but i running PHP as an apache module so ther is no prosesid. Does any one have any idears? Thanks p.s runing redhat el5

Member Avatar
Member Avatar
+0 forum 5

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\eUTM\login\logincheck.php on line 13 here is the code: <?php //login check require_once("dbconn.php"); $con=connectdb(); $idpengguna=$_POST['idpengguna']; $katalaluan=$_POST['katalaluan']; //login PELAJAR from table pelajar $pekerja_query="SELECT * FROM pengguna where idpengguna = '$idpengguna' AND katalaluan = '$katalaluan'"; $pekerja_result=mysql_query($pekerja_query,$con); $pekerja_row=mysql_fetch_array($pekerja_result); if(!$nama_id && !$katalaluan) { $err=1; include("../index.php"); } elseif($nama_id == $pekerja_row["idpengguna"] && $katalaluan != $pekerja_row["katalaluan"]) { $err=2; include("../index.php"); } elseif($pekerja_row["idpengguna"] == $nama_id && $pekerja_row["katalaluan"] == $katalaluan) { session_start(); $_SESSION['pengguna_id'] = $pekerja_row["pengguna_no_id"]; header("Location: ../aduan.php?log=1"); } else { $err=3; include("../index.php"); } ?>

Member Avatar
Member Avatar
+0 forum 2

Hi, I have a bulk of pdf documents. I want to read that using php script. I searched a lot, but everyone is about creating pdf files. Here I dont want to create pdf file but I want to read it. Is there any way to read it php? -Arun

Member Avatar
Member Avatar
+0 forum 1

I am trying to call a php script through a shell script.The script is to be called as the run on receive directive of gammu-smsd.My php script executes as expected when I call it using[CODE]/opt/lampp/bin/php myvarsreader.php[/CODE].However on trying to run my script(From terminal): [CODE]#!/bin/sh PROGRAM=/opt/lampp/bin/php myvarsreader.php eval "$PROGRAM \"\${SMS_${i}_NUMBER}\" \"\${SMS_${i}_TEXT}\"" echo $? echo "$PROGRAM \"\${SMS_${i}_NUMBER}\" \"\${SMS_${i}_TEXT}\"" >> ran1date [/CODE] I get the following error message [CODE]./first.sh: 17: myvarsreader.php: not found eval: 1: : Permission denied 127[/CODE] myvarsreader.php permissions are:-rwxrwxrwx,so I don't understand the permission denied part. I am running ubuntu 10

Member Avatar
Member Avatar
+0 forum 5

The End.