36 Posted Topics
Re: hi, dear As i don't know about your fields name and their data types are correct or not. still you can try this syntax also, [CODE] mysql_query("INSERT INTO cats (title,type,cat_parent,cat_descr)VALUES ('Category Name', '0','0','Category Description')"); [/CODE] or try to use [B]die() function[/B] in insert query for finding the exact error. | |
Re: Hi,Dear check out this... [url]http://www.leigeber.com/2010/02/javascript-wysiwyg-editor/[/url] | |
Re: hi,dear use this[CODE]include('dir/file_1.php');[/CODE] | |
Re: hi. khush need to know after upload you want to store in local directory or display it on the same page.? | |
Re: hi dear, here the code for you [CODE]<?php $result="<?php echo'hello';?>"; $fp = fopen('data.php', 'w'); fwrite($fp, $result); ?>[/CODE] | |
Re: Hi, all u have to do is ... visit [url]http://images.websnapr.com/[/url]...... then login to the websnapr account ,they will provide u a key for generating the thumbnail... then jus add this code to ur form <?php $im="http://images.websnapr.com/?size=s&key=enter key&url=http://www.google.com"; echo "<IMG SRC=\"$im\" BORDER=\"0\" ALT=\"\" \/>"; ?> | |
Re: hi, you need to close the first form tag ! | |
Re: hi dear, if you r working on a big projects then only opt for any framework.else for simple programs you can use wamp. | |
Re: hi Dear, in form tag action is missing so put [CODE]<form method="POST" action="index.php">[/CODE] hope it works for you | |
Re: hi, dear.. In line 37 ,why are you using $field ='$searchword'"..... and in line 45 try to use mysql_num () or mysql_assoc() with mysql_fetch_array. let me know what exactly you want... | |
Re: Hi, dear Check this out! [CODE]<?php $con = mysql_connect("localhost","awah","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $sql="INSERT INTO contacts (from, subject, message) VALUES ('$_POST[email]','$_POST[subject]','$_POST[message]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($con) ?> [/CODE] | |
Re: hi dear, Here is the complete code. [CODE]<html> <head></head><body> <form method="POST" action="only_check.php"> Enter the number of question <input type="text" name="question"> <input type="submit"> </form> <?php $value=$_POST['question']; for($i=0;$i<$value;$i++) { echo '<input type="text" style="position:absolute;border:1px #C0C0C0 solid;background-color:#C0FFFF;font-family:Courier New;font-size:13px;" >'."<br/>"; } ?> </body></html>[/CODE] | |
Re: hi, dear... instead of using the php code in html tags try to use include function for implementing the php code... | |
Re: Hi Dear, you can take help from these sites... [url]http://www.buildwebsite4u.com/advanced/php.shtml[/url] [url]http://www.w3schools.com/PHP/php_mail.asp[/url] | |
Re: hi, dear try to change the this line [CODE]echo 'Happy ', addOrdinalSuffix($current_year - $birthday_year), ' B-Day myu2sig.com !';[/CODE] [CODE]echo 'Happy '. addOrdinalSuffix($current_year - $birthday_year). ' B-Day myu2sig.com !';[/CODE] | |
Re: Hi, dear Check out these link. [url]http://www.tutorialtastic.co.uk/tutorial/creating_a_secure_php_login_page[/url] [url]http://www.weberdev.com/get_example-3958.html[/url] [url]http://scripts.tropicalpcsolutions.com/html/php-script/secure-login-php-script.html[/url] | |
Re: Hi,dear i think ur code working fine,but the only prob is there in[B] <a href="">[/B] here is the code which is working according to ur requirement..jus change its table database name and fields name as per ur requirement... [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta … | |
Re: Hi, You can try this. [url]http://www.phpeasystep.com/phptu/8.html[/url] | |
Re: Hello Dear, $_GET is having a error in its parenthesis.Use $_GET fucntion like this[CODE] Welcome <?php echo $_GET["fname"]; ?>.<br /> You are <?php echo $_GET["age"]; ?> years old! [/CODE] | |
Re: Hi, here is the complete code for... all u have to do is jus change the string and its length as per ur requirement. [CODE] <?php /* [email]hide@address.com[/email] [url]http://staff.k-designs.com.sg/basica/[/url] */ function Permutate($strDataIn, $Length, &$PermutateCount) { for ($i = 0; $i < strlen($strDataIn); $i++) { $PermArray[0][$i] = substr($strDataIn, $i, 1); $temp[$i] … | |
Re: Hi, dear... try another function ie.opendir() [url]http://php.net/manual/en/function.opendir.php[/url] | |
Hi, i want to calculate the domain age of any given website or domain name.... ex: google.com domain age . | |
Re: hi, dear Try this <?php $result=$val['name']; echo "<tr bgcolor="#F5F5F5"><td >".$result."</td></tr>"; ?> | |
Re: Hi, you can use $_get function for the same. [url]http://php.net/manual/en/reserved.variables.get.php[/url] | |
Re: Hi Dear, [code] <?php $string = "123 4567"; $result = explode(" ", $string); echo $var_1=$result[0]; echo $var_2=$result[1]; ?> [/code] | |
Re: Hi, You Can try MYsql update query for the same.... [url]http://www.w3schools.com/php/php_mysql_update.asp[/url] | |
Re: Hi Dear, Just start with these two website which is really good for php beginners. [url]http://www.tizag.com/phpT/[/url] [url]http://www.w3schools.com/php/default.asp[/url] | |
Re: Hello Dear, you can try this [url]http://www.w3schools.com/php/php_sessions.asp[/url] | |
Re: hi, As i m not able to understand Ur prob clearly. So for the same,you can use die()function to understand the mysql error while connecting.... | |
Re: Hi Dear, Try to use[B] mysql_fetch_array() with MYSQL_NUM[/B] or [B]mysql_fetch_array() with MYSQL_ASSOC[/B] or [B]mysql_fetch_array() with MYSQL_BOTH[/B] As in ur code ur r fetching the records by the field name so use MYSQL_ ASSOC(). For Example you can check this link [url]http://php.net/manual/en/function.mysql-fetch-array.php[/url] | |
Re: hi, i think u can try this.... [url]http://www.phpbuilder.com/manual/function.mysql-num-rows.php[/url] | |
Re: hi, dear.... Here is the code for u. [url]http://www.plus2net.com/php_tutorial/checkbox-value.php[/url] | |
Re: Hi, Might be this code will help u out............. [url]http://www.plus2net.com/sql_tutorial/between-date.php[/url] | |
Re: [B]Hi, jus try to do like this.....[/B] [CODE]<?php // Connect $link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') OR die(mysql_error()); // Query $query = sprintf("SELECT * FROM users WHERE user='%s' AND password='%s'", mysql_real_escape_string($user), mysql_real_escape_string($password)); ?>[/CODE] | |
Re: Hi, [B]gethostbyname() example[/B] [CODE] <?php $ip = gethostbyname('www.example.com'); echo $ip; ?>[/CODE] [B]gethostbyaddr() example[/B] [CODE]<?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $hostname; ?>[/CODE] |
The End.