- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 12
- Posts with Upvotes
- 12
- Upvoting Members
- 6
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
121 Posted Topics
Re: > is happening is it hits zero and never goes to winner.ph It is not going to winner.php because mysql_query will not gives you the resultset and not the count. If you need count then do as following $resultSet = mysql_query("YOUR QUERY COMES HERE"); $counter = mysql_num_rows($resultSet); // Now your … ![]() | |
Re: > how to include php file within this script ?? Why do you want to include a php file? If you want to include any php file then include_once('filename.php') | |
Re: Check what is the path coming from your database. Try like this and paste your output on the screen echo $row['link']; exit; echo "<img src='". $row['link'] ."' alt='' />"; | |
Re: Check this link for more details https://developers.google.com/finance/docs/finance-gadgets | |
Re: [QUOTE=mrcniceguy;1139978]Hey guys, i need Your suggestions(help). i created a social network website not long time ago,now i want to put the News feed in the home page like the Facebook one. That is if a friend posts status,add friends,uploads photos,video,join groups,Commented something etc to appear in the home page. Please … | |
I have installed latest version of wamp server in my local, I have the following version for Apache - 2.2.17 PHP - 5.3.5 mysql - 5.5.8 I am recursively calling a function inside a class, It has end point after 1300 iterations. But I don't know in my new wamp … | |
Re: Hey dude, If you want to find the number of weeks in a year and number of weeks in a month, just use the following code.. [code=php] <?php echo date("W", mktime(0,0,0,12,31,2010)); // To find number of weeks in a year echo "<br />"; echo date("w", mktime(0,0,0,12,31,2010)); // To find number … | |
Re: You can maintain 2 different sessions for user session one : logged in user $_SESSION['logged_user_id'] = $logged_user_id; session two : Higher security logged in user $_SESSION['secured_logged_user_id'] = $secure_logged_user_id; so when you have both the sections with you, you can manage all the other pages with session1 variable. when ever it … | |
Re: You can use Ajax Auto Updater function in your page.. Check the example of Auto updater with Ajax in the following url [url]http://demos111.mootools.net/Ajax_Timed[/url] Thanks & Regards Sai Prem <snipped> | |
Re: There are plenty of beautiful sites which will provides autocomplete functionality check the following example [url]http://www.exploremyblog.com/html/blog_contents.php?blogid=300[/url] [url]http://www.ajaxdaddy.com/demo-jquery-autocomplete.html[/url] | |
Re: Do you want to capture the new payment amount? and replace the existing payment data of that user? or add to the payment amount to the existing data. [QUOTE=mbarandao;1408126]Hello: Here is an interesting question. I have a client payment recording form which retrieves data from a table that has clients … | |
Re: If you want to use any JS frameworks, check the following link to do your operation [url]http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/[/url] or if you want to use XMLHTTP objects then use this [url]http://www.pixel2life.com/publish/tutorials/221/introduction_to_php_5/[/url] [QUOTE=youlichika;1408059]I want to post value from index.php, then get the value by self without refresh the page. one botton with two … | |
Re: Check whether you are able to see the values after posting the data. Just try printing your data after submitting the data [CODE] echo "<pre>"; print_r($_REQUEST); echo "</pre>"; [/CODE] The main problem in your code is you have to put your select box code inside the form. Then only you … | |
Re: It seems you don't have file in the specified location $file_link = "../tmp/users.txt"; Also you need to specify the exact path something like /var/tmp/users.txt or /home/tmp/users.txt or /tmp/users.txt | |
Re: [QUOTE=phpuser;1128555]Hi All, My client want statistics report for page visits and he gave me google analytics reference for same. In which they gave facility to get report between two dates and report wil be day, week and month wise. I having with two dates but havent any idea how i … | |
Re: Many blogs are available in PHP check the following link [url]http://php.opensourcecms.com/scripts/show.php?catid=2&cat=Blogs[/url] Thanks & Regards Sai Prem <snipped> | |
Hi all, I implemented jsTree([URL="http://www.jstree.com/"]http://www.jstree.com/[/URL]) in my script, which is displaying a tree structure for me, but i have a problem The problem is onCliking on the anchor tag it is not taking me to the url given on the href attribute, please help me to resolve this Ex : … | |
Re: [QUOTE=umandajayo;1124093]What is the method of passing user inputs to database in Joomal or where the places handling the user inputs to send to the database. eg: localhost\Joomla\components\com_user\views\register in this directory have a module for handle new user registration. I need to know how joomla carry the user input values for … | |
Re: You need to add a style to your main widget div(FeedBurner display div) style="float:left"; | |
Re: your_name and your_email textbox values will not be posted to your processing, for that you need to call the same action page and pass the variable values. To pass the variable values to your processing form, you need to collect the textbox values (your_name and your_email) using javascript and send … | |
Re: The statement [COLOR="Red"]"The problem occurs with some hidden fields with details from the recordset not being displayed,"[/COLOR] Is that hidden fields data contains in include file which you are talking about.. Then how you will get the recordset(DB) data in an include file, while including the file you just need … | |
Re: I didn't find anything wrong in your code, perhaps an extra brace is closed or need to close a brace in your script, double check by commenting out each if condition and switch statements. ![]() | |
Re: Hi try your code like this everything will works, I think it is not necessary to connect to DB. [code=php] $dbname = 'database_name';//your actual database name $backupFile = '/home/lakshmi/Desktop/'.$dbname . date("Y-m-d-H-i-s") . '.gz'; $dbuser = 'root'; // mysql username $dbpass = 'password'; // mysql password system("mysqldump -u $dbuser -p$dbpass --quick … | |
Re: It seems you are not reading the $cmd value from the request Add this in the top of your script. $cmd = $_REQUEST['cmd']; hope it helps you [QUOTE=decmatt;1214876][Code] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","******","******"); //select which database you want to edit … ![]() | |
Re: It seems your geolocation.class.php page is not there in the same directory check where is it located and give correct path in your include to load the geolocation.class ex: include('somedirectorypath/geolocation.class'); or include('../somedirectorypath/geolocation.class'); [QUOTE=k2k;1213137]i was having fun with php until i hit this road block... geolocation.class.php is in the same directory … | |
Re: IN your Login script how you are checking? Using database right? If the user has authenticated then create a session id. Wherever you want to give access to the logged in users then check for session id. After logging out the user, destroy his session ![]() | |
Re: there is nothing in php to retrieve the postback data, you need to fetch the button id's again from DB | |
Re: hmmm, You said , you don't require javascript, but still you are using javascript in your php :). My suggestion is put the login details in a session(email, username , password....whatever you need), onClicking each tab call the check function, If it fails echo an error in alert box, and … | |
![]() | Re: Your checkbox name is "noutate" So you need to change the your if and update query like this [code=php] if (isset($_POST['noutate'])) { $update ="UPDATE content SET noutate='".$_POST['noutate']."' WHERE ID='$r_id'"; } [/code] [QUOTE=Pityu;1212975]Hey there. I am attempting to create an administrator option, which would be the following: When the administrator checks … |
Re: Check the following website, it is having high & powerful features it [url]http://phpexcel.codeplex.com/[/url] [QUOTE=ivanichi;1213305]Hi friend, i want my table on database can be view in excel, but i have problem, how to set colspan, rowspan and bgcolor in excel with php ? can you help me.. thanks[/QUOTE] | |
Re: U missed out close brace for the function checkVIN | |
Re: Copy the following code and try, I hope everything will works fine [code=php] while ($row = mysql_fetch_assoc ($results)) { #First table results, this loop works fine $data = sprintf ("SELECT * FROM table_2 WHERE num = '%s'", $row['number']); $foo = mysql_query ($data); $bar = mysql_fetch_assoc ($foo); echo $bar['field_name']; } [/code] … | |
Re: May be it is browser version problem, check it once [QUOTE=preetg;1208193]Hi everyone i am using Window XP, mozila firefox, and php 4.1 i made php project for my final year exams...now this is not runing.. my project consist menu that list out all the options. this menu is in javascript … ![]() | |
Re: Recently I saw YII framework, It is much better to develop large applications in PHP using YII framework. Yes definitely you can become a professional webdeveloper(You can even be a freelancer) I used Cake PHP for the past 3 years, recently I become familiar with with YII Check for the … | |
Re: Hi first check that your PHP variables are passing values to your query... Try your code like this [code=php] // Retrieve data from table where row that match this passkey echo $sql1="SELECT * FROM $tbl_name1 WHERE confirm_code ='".$passkey."'"; $result1=mysql_query($sql1) or die(mysql_error()); [/code] In the above query, if all the values … | |
Re: Just upload the downloaded zip into FTP, using CPANEL..extract the uploaded zip file, then start using it.... :) Using phpMyAdmin create a DB OR Using CPANEL create a DB(mySQL databases) your life will become very easier if you just type [url]http://yourdomainname/extrracted_directory_name[/url] At installation time it will asks you to enter … | |
Re: I saw in your code, there is no form tag, put form tag and keep the method to post, and then check the radio button before posting the data..Then I hope everything will works for you. | |
Re: Hi I hope this will give you a little information regarding how to use an array in next page..... [code=php] <?php $n = 6;//$_POST["var_n"]; echo "<pre>"; print_r($_POST); echo "</pre>"; ?> <html> <body> <br> <center><h2>Reverse Array</h2></center> <form action="", method="post"> <center> <br>Please input the contents of the array: <br> <?php createTextBoxes($n); //$array_ref … | |
Re: Hi Surya, First of all I didn't understand your requirement properly, but i found a minor mistake in your code, please check the following you can understand [code=php] echo("<select name=\"selectItem\">"); while($row = mysql_fetch_object($results)) { echo("<option value='".you should have your database retrieved value here, some thing like $row->id."'>$row->vend_des</option>"); } [/code] [QUOTE=surya_nar;1198656]I … | |
Re: Try like this, it will works for you [code=php] <?php mysql_connect("localhost", "root", "123") or die(mysql_error()); mysql_select_db("jai") or die(mysql_error()); $sql = "SELECT distinct db_name FROM dbsname"; $result = mysql_query($sql); $options=""; while ($row = mysql_fetch_assoc($result)) { $db_name = $row["db_name"]; $options.="<OPTION VALUE=\"$db_name\">".$db_name."</OPTION><br />"; } if(isset($_POST['db_name']) && $_POST['db_name']!='') { //perform your other operations based … | |
Re: [QUOTE=toasty525;1194533]Hi, i have a php script on server1 that sends var1 in a url to server2 like [url]http://server2/script.php?var1=test[/url] server2 then posts back to server1 with the url [url]http://server1/callback.php?var1=test&var2=somedata[/url] i then want callback.php to redirect to [url]http://server3/someScript.php?var1=test&var2=somedata[/url] but callback.php dosnt seem to be redirecting to server3 ? If i type the … | |
Re: You can do meta refresh in your page, but that really annoys the user. So better to don't go for it. If meta refresh is used , then using your page in offline is not possible(If you want to make it available, you need to use relative urls in your … | |
Hi All I have my URLs without cleanup [url]http://10.0.0.76/project/mydashboard.php?section=12§ion_childs=1[/url] [url]http://10.0.0.76/project/some_x_page.php?section=12§ion_childs=1[/url] OR [url]http://www.myprojects.com/mydashboard.php?section=12§ion_childs=1[/url] [url]http://www.myprojects.com/some_x_page.php?section=12§ion_childs=1[/url] How can I get my URL like below [url]http://10.0.0.76/project/mydashboard/section/12/section_childs/1[/url] [url]http://10.0.0.76/project/some_x_page/section/12/section_childs/1[/url] OR [url]http://www.myprojects.com/mydashboard/section/12/section_childs/1[/url] [url]http://www.myprojects.com/some_x_page/section/12/section_childs/1[/url] I know we can do it with .htaccess, but i don't know how to write, can any one please help me to implement this. | |
Re: [QUOTE=hassancool;1175831]HI all, I am using a php Code for Image hosting script and having this kind of error continuously..... "Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpbihhaX' to 'http://masalalook.com/imagehost/upload/41270034561.jpg' in /home/masalalo/public_html/imagehost/config.php on line 83" Line Number 83 contains this "if (move_uploaded_file($_FILES['file']['tmp_name'],$filedir."/".$newname))" Help me plz how to get out of this trouble...... … | |
Re: No actual problem is that, you are using header for redirection, then POST data will be lost, so your record insertion will be empty... | |
Re: Because you are always retrieving the data from the database and showing in that field, If you want to populate your data, every time you need to update or save your data in your DB. | |
Re: [QUOTE=ismael ahm@d;1174743]Hello Everybody, i m facing problem that how i increment the values, first when i set the ID_No as auto increment in php/mysql after the debugging when i delete 2 no; row from the table next time the ID_No starts from the 3rd one row and basically i dont … | |
Re: You can use predefined php functions for it. the functions like * system * shell_exec * exec * passthru For more information check PHP Manual | |
Re: refer to this thread, I gave answer here... [url]http://www.daniweb.com/forums/thread258810.html[/url] | |
Re: [QUOTE=whiteyoh;1162165]Hi All, I thought I was getting along well with PHP, but i have been given a project at work to interact with a 3rd party client using SOAP and im lost. Can anybody help me get started with this? They are going to send me a url with a … |
The End.