373 Posted Topics

Member Avatar for sarithak

using just - [CODE] date_default_timezone_set("Asia/Calcutta"); $d = date('Y-m-d H:i:s'); [/CODE] should do actually.what is the problem with this.

Member Avatar for Member 784564
-2
649
Member Avatar for hickyfunkymonke

which machine? windows or linux..?It is just you need to run that for upgradation. you can have a look at the manual page [url]http://www.squarebox.co.uk/cgi-squarebox/manServer/usr/local/man/man1/mysql_fix_privilege_tables.1[/url] here or something informative like - [url]http://man.he.net/man1/mysql_fix_privilege_tables[/url] This thing is about your mysql server and not any other machine

Member Avatar for pbd4499
0
454
Member Avatar for rajabhaskar525

[QUOTE=rajabhaskar525;1052404]hi all, i am new to php. i want know about how to import contacts from yahoomail,gmail, orkut, facebook, xing,..........like. if anybody know about these. help me. share with me. ........[/QUOTE] you need some external script like [URL="http://script.wareseeker.com/PHP/contact-grabber.zip/18212"]this[/URL]

Member Avatar for muralibobby2015
0
184
Member Avatar for network18

Hi, I have a HP laptop with intel dual core 32bit processor with 512MB RAM & 80 GB HDD. 2 years back I have installed windows XP on it on my own, it was quite easy. But now I need to install FreeBSD for the C++ development on the same …

0
121
Member Avatar for arunajasmine

You got the connection? try this- [CODE] $this->User->query("select count(*) from (SELECT user_id FROM `reports` group by report_id) as tb where tb.user_id=5"); [/CODE]

Member Avatar for marck_don
1
171
Member Avatar for sandipan.rcciit

This code reads the .xls file and then converts it to the .csv line by line. But i will suggest to look for any external library or function to do the same, it will be more easy - [CODE] /* Get the excel.php class here: http://www.phpclasses.org/browse/package/1919.html */ require_once("../classes/excel.php"); $inputFile=$argv[1]; $xlsFile=$argv[2]; …

Member Avatar for whois101
0
4K
Member Avatar for pbcomput

[QUOTE=pbcomput;1143227]hi.. i was working with php 4.2.3 and now i changed php to 5.3.1 now problem is that when i login as a user in my script i got this warning.. [CODE]Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that …

Member Avatar for network18
0
96
Member Avatar for wonderland

Line40 from your first script, you didn't read the comment there and the "FROM" is defined as NULL by default.If its the default value i.e. null, your mail will be sent with the from field value as [email][email protected][/email] as said in the comment. It need to define to your email …

Member Avatar for wonderland
0
252
Member Avatar for network18

Hi, The dynamically created rows are appended at the end of the table i.e. after the last row of the table (found by table.rows.length) and those individual <tr> contains 8 more <td>s carrying some texts and their respective text fields. Now we have one such default <tr> , which also …

Member Avatar for Banderson
-1
190
Member Avatar for harry_watson
Member Avatar for network18

Hi, I am working on the jquery slideshow script, which i had borrowed from some famous jquery plugin and customized so nicely so as to look just as par my requirement .Its working perfectly fine in the Internet Explorer but failing to even call the event on click in firefox …

Member Avatar for pritaeas
0
142
Member Avatar for network18

Hi, I am customizing jquery scrollshow, it can be found originally [URL="http://flesler.blogspot.com/search/label/jQuery.ScrollShow"]here[/URL] As you can see in the original script there are only images which scroll, now I have the description to show below each image which should also scroll as the images scroll. This description will include - 1. …

Member Avatar for network18
0
148
Member Avatar for Stefano Mtangoo

Yes, Please go ahead all while contributing to the script. Even I am eager to see the login script evolving as OOP pattern. I recommend generalizing the DB class first and inheritation of it later to have the construct passed with some random flag too, which will avoid the mysql …

Member Avatar for vjimatjijoro
0
582
Member Avatar for Olsi009

[QUOTE=Olsi009;1048703]Hey people, I am doing a project in web development and I wanted to make a system where users can sign up and login to their profiles and have custom URLs like facebook or twitter ([url]www.mysite.com/UserName[/url]). I dont wanna create a folder for every user on the system cuz that's …

Member Avatar for Olsi009
0
111
Member Avatar for sarithak
Member Avatar for abhicool1
0
3K
Member Avatar for Jellybaby

[QUOTE=Jellybaby;1102056]For my college I need to make a game called Lingo and I'm not even close to finding out how to do it since I was only given 2 lessons so far. If anyone has existing code or knows some functions or ways of helping I'd appreciate it.[/QUOTE] explain the …

Member Avatar for Jellybaby
0
196
Member Avatar for itisnot_me

[QUOTE=itisnot_me;1094401]ok so what i want to beable to do is have a coded up website template (with php in it) that is stored in the DB. and i would like to call it in a query. That part works fine but what doesnt work is the php being called from …

Member Avatar for itisnot_me
0
332
Member Avatar for hno
Member Avatar for cwarn23
0
127
Member Avatar for muralibobby2015

you can change the Image source on load like - var other_faded_img = "other_faded_img.jpg"; document.getElementById('img_1').src = other_faded_img;

Member Avatar for muralibobby2015
0
141
Member Avatar for samyehftw

This is the simple script to do the same- [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Calc</title> <script type="text/javascript" language="javascript" > function calculate() { value_1 = document.getElementById("val1").value; value_2 = document.getElementById("val2").value; value_3 = document.getElementById("val3").value; alert(parseInt(value_1)+parseInt(value_2)); document.getElementById("val4").value = (parseInt(value_1)+parseInt(value_2)) - parseInt(value_3); } </script> </head> <body> <form name="frm" id="frm" method="post"> <table> …

Member Avatar for almostbob
0
1K
Member Avatar for directweb

[QUOTE=directweb;1094431]I'm using xampp on XP. I can't get PHP to read my var from the URL. example, when I hit [url]www.foobar.com/whatever.php?azz=wala[/url] then I should get wala to print to the browser with the following code. Any ideas?? [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> </head> <body> before …

Member Avatar for directweb
0
88
Member Avatar for maxicube

what about writing the entire thing in some other file except that particular line & then deleting the first file,making the second file as main FFD. Or even think about having the unique field value for the records, as a line numbers, so that it will be easy to delete

Member Avatar for almostbob
0
150
Member Avatar for qhuemone

Again the same mistake! He wants to connect to the MSSQL and not the MySQL. Your code modified below - [CODE]<?php $con = mssql_connect("localhost","peter","abc123"); if (!$con) { die('Could not connect: ' . mssql_error()); } mssql_select_db("my_db", $con); mssql_query("UPDATE Persons SET Age = '36' WHERE FirstName = 'Peter' AND LastName = 'Griffin'"); …

Member Avatar for network18
0
71
Member Avatar for veledrom

[QUOTE=veledrom;1093983]Hi, Is cURL FTP to upload word files to webspace or inhouse server is better option than using simple PHP file uploading function "move_uploaded_file()", if there are around 1000 user upload files in a day? Or is there any better solution? Thanks in advance[/QUOTE] Off course the cURL is always …

Member Avatar for veledrom
0
180
Member Avatar for SunnySideUp

[URL="http://randell.ph/geeky/2009/04/10/using-jquery-on-a-generic-registration-form/"]example[/URL]

Member Avatar for network18
0
117
Member Avatar for Shyloo

It means your query is failing to execute by some means and there's nothing to fetch at line15. Try to echo the query and post it here. Directly execute it in the mysql, and post if any error, though it seems to be a simple query,there might be issue for …

Member Avatar for rajabhaskar525
0
122
Member Avatar for phpDave

[QUOTE=phpDave;1094363]Hi. I building a site that users pay through paypal to insert data and would have to pay every month in order to store and display that data. I don’t want to delete the data if they don’t pay, just prevent it from being displayed on a non-restricted page. Almost …

Member Avatar for network18
0
100
Member Avatar for network18

Its a scenario of message and the reply post for articles and the posted messages are stored in the database. This message as a parameter is passed to the script (lets call is 'insert.php') doing this insertion is called from the js function onclick of the submit. Inside this 'insert.php', …

Member Avatar for network18
0
161
Member Avatar for sarithak

Its just like another website, you just need to seek the help of some chart tool in php and the stocks data too

Member Avatar for network18
0
94
Member Avatar for phpDave
Re: cron

[QUOTE=phpDave;1094495]Hi, I'm having trouble learning about cron. I understand what it does but how do I get started using it, is this someting I have to download? Where do I get it from? Any good tutorials out there? Thanks[/QUOTE] The cron is the script set to execute on the server …

Member Avatar for network18
0
60
Member Avatar for webbi

[QUOTE=webbi;1092669]Hi. Is it possible onclick event the image blue_go.jpg to be swaped with another one. Thanks[code]1. <!-- <input type="image" title="Click here to start Uploading" src="<?=$host;?>/images/blue_go.jpg" id="free_go_btn" alt="Go"/> 2. <!-- <input type="image" src="<?=$host;?>/images/blue_go.jpg" id="free_go_btn" onclick="beginUpload('<?=$sid;?>'); return false;" alt="Go"/>[/code][/QUOTE] [CODE] <script type="text/javascript" language="javascript"> function swap_img(var sr) { document.getElementByID('free_go_btn').src = sr; } </script> …

Member Avatar for network18
0
126
Member Avatar for amras123
Member Avatar for network18
0
220
Member Avatar for futhonguy

your script is echoing something before the headers are sent, and that's why you hit with this error. Just echo something like "test" just above the headers you are trying to modify and you will see what is being echoed before your header, check source

Member Avatar for network18
0
81
Member Avatar for poojashah

[QUOTE=poojashah;1093193]I m doing a project in which i have to delete some data by matching 2 different fields. i m using and operator but it is not working in php page but it is working properly in phpmyadmin. So, please provide me some solutions about integration to php page with …

Member Avatar for vaultdweller123
0
81
Member Avatar for druveen

you are required do as below - [CODE]<td> <input type='checkbox' name='expert' value='' <?php if($value1[1]!=''){ echo "checked";}; ?> > <?php echo $value1[1]; ?> </td>[/CODE]

Member Avatar for vaultdweller123
0
774
Member Avatar for hno

[QUOTE=hno;1092870]HI, If I use PECL Filter for validating a form data Is it safe to use in database queries?Is it implement mysqli_real_scape_string to the values ? Thanks[/QUOTE] Its not clear, what you perceived by PECL but [URL="http://pecl.php.net/packages.php"]these [/URL]are the packages available in PECL. If you are looking for validation functions …

Member Avatar for network18
0
62
Member Avatar for vizz

[QUOTE=vizz;1090592]How to find online users and their names on site?[/QUOTE] Which site you are talking about. Is that you trying to implement some pre-made script available online and got stucked up somewhere

Member Avatar for diafol
0
97
Member Avatar for rajad2010

not yet looked into HTML of the title and specification, but I don't find anything wrong with the price's node with the class name as 'details-subprice'. Just try to change the double quotes to the single quotes for the class name as - [CODE]$xpath->query('//div[@class='details-subprice']')[/CODE]

Member Avatar for rajad2010
0
1K
Member Avatar for yonile

It seems that all your configurations did not get set as desired in the config.php and your "$prefix" variable is not set, which leads to failing your query at line4. Which creates this error at mysql_num_rows()

Member Avatar for yonile
0
141
Member Avatar for vizz
Member Avatar for rajad2010
Member Avatar for network18
0
128
Member Avatar for rajeesh_rsn

[QUOTE=rajeesh_rsn;1091651]Hai, I had found in many websites that they pass their variable using GET method and their URL is like this [ICODE]http://www.sitename.com/variablename[/ICODE] My webserver is apache and please any one help me to pass a variable in this way Thanks in advance Rajeesh[/QUOTE] you can pass the variables through URL …

Member Avatar for network18
0
62
Member Avatar for FaheemSajid
Member Avatar for sam023

[QUOTE=sam023;1068799]i have a page where listing of items is done... it also have searching feature with pagination... when i submit searching then its working fine.. but during panigation i have to pass all query parameters through url.. to get it work.. it there any way to use pagination without using …

Member Avatar for hielo
0
109
Member Avatar for whitestream6

have you tried the DateTime:modify() function to set the date in desired format.

Member Avatar for whitestream6
0
137
Member Avatar for whitestream6

I would like to elaborate his idea of implementing alternate CSS's for the rows. He just want to change the CSS for the rows coming alternately like they do in the listing pages of wordpress or bbpress etc. Don't you think a simple if() loop will achieve the same thing …

Member Avatar for diafol
0
134
Member Avatar for jhansiads.com

[QUOTE=jhansiads.com;1076618]hi can any one tell step by step how to install php script in the domain thanks[/QUOTE] you dont need to install the php script there, but you should have a php installed on the server and only need to copy the script to the root folder on the server.

Member Avatar for network18
0
56
Member Avatar for benkyma

just note that json_encode() returns the data in [CODE]{"a":1,"b":2,"c":3}[/CODE] this fashion if the array passed to it is - [CODE]array('a'=>1,'b'=>2,'c'=>3);[/CODE] otherwise have a look at this customized [URL="http://www.bin-co.com/php/scripts/array2json/"]thing[/URL]

Member Avatar for network18
0
105
Member Avatar for whitestream6

[QUOTE=whitestream6;1077370]I got another error, the error being this: . Here's my code: [CODE] <?php //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORDREMOVED"); //select which database you want to edit mysql_select_db("myradio"); //select the table $result = mysql_query("select * from presenters"); //grab all the content while($r=mysql_fetch_array($result)) …

Member Avatar for DW Master
0
181
Member Avatar for balam

echo the final query formed and then you will know whether it is failing or some variable is not set

Member Avatar for dasatti
0
96

The End.