373 Posted Topics
Re: 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. | |
Re: 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 | |
Re: [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] | |
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 … | |
Re: 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] | |
Re: 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]; … | |
Re: [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 … | |
Re: 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 … | |
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 … | |
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 … | |
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. … | |
Re: 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 … | |
Re: [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 … | |
Re: check if this is in your form - enctype="multipart/form-data" | |
Re: [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 … | |
Re: [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 … | |
Re: Look for the character set to while backing up your data. | |
Re: 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; | |
Re: 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> … | |
Re: [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 … | |
Re: 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 | |
Re: 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'"); … | |
Re: [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 … | |
Re: [URL="http://randell.ph/geeky/2009/04/10/using-jquery-on-a-generic-registration-form/"]example[/URL] | |
Re: 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 … | |
Re: [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 … | |
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', … | |
Re: Its just like another website, you just need to seek the help of some chart tool in php and the stocks data too | |
Re: [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 … | |
Re: [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> … | |
Re: just keep the action of the form blank, remove that $_SERVER['PHP_SELF'] | |
Re: 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 | |
Re: [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 … | |
Re: 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] | |
Re: [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 … | |
Re: [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 ![]() | |
Re: 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] | |
Re: 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() | |
Re: A div with class='normal' comes in between the td[2] and the next table | |
Re: [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 … | |
Re: [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 … | |
Re: have you tried the DateTime:modify() function to set the date in desired format. | |
Re: 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 … ![]() | |
Re: [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. | |
Re: 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] | |
Re: [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)) … | |
Re: echo the final query formed and then you will know whether it is failing or some variable is not set |
The End.