619 Posted Topics

Member Avatar for navi17

you can fetch HTML view source of that files. I am not sure what u exactly want, Do you want to grab theme? Are that theme provider sites providing facility to use their themes?

Member Avatar for vibhaJ
0
190
Member Avatar for ryan311

You have to collect all image type extensions icon in one image folder.and rename it as given examples. e.g. jpg => jpg_type.png png => png_type.png gif => gif_type.png Store all above image in one folder called 'image'. Then try below code. [CODE] <? $imageFile = "imagename.jpg"; $extAr = explode('.',$imageFile); $ext …

Member Avatar for ryan311
0
90
Member Avatar for vibhaJ

Hello All, I think this is server issue, but i thought there are more friends here to help me out. I have website hosted on fasthost dedicated server of 250GB. Now server is out of space.I have to increase server capacity to get website running. I have one another fasthost …

Member Avatar for nonshatter
0
89
Member Avatar for niths

Here is ur code. [CODE] <? $f1='123 4567'; $temp = explode(' ',trim($f1)); $f2 = $temp[0]; $f3 = $temp[1]; ?> [/CODE]

Member Avatar for cwarn23
1
112
Member Avatar for khushhappy

First of all use CODE tag in editor to post your code. Now when you have modified form with data filled.Add new hidden field with id. So when you click on update on modify.php page, you can have $id = $_POST['id']; And you can have update query on that auto …

Member Avatar for khushhappy
0
135
Member Avatar for jakizak

It seems your query is not proper. Replace ut code with below code to see mysql error. [CODE] $query = mysql_query("SELECT * FROM products") or die(mysql_error()); [/CODE]

Member Avatar for jakizak
0
240
Member Avatar for nsam

You will only have value in [B]$se = $_POST[scow];[/B] if that checkbox is checked and form is submitted. and value must be there for checkbox field.and whatever is value will be comes in $se. here $se will be 1. [CODE] echo "<td colspan='3' align='right'><input type='checkbox' value='1' name='scow'>Sell" [/CODE]

Member Avatar for vibhaJ
0
2K
Member Avatar for fredrickprem

this is comman file, which will be included in your all php files.So you dont have to write this files code in all files.

Member Avatar for fredrickprem
0
224
Member Avatar for Craig2231

Yes. there is no condition for setting session in your code. So use else for setting session values. [CODE] if(isset($_POST['submit'])) { $name = mysql_real_escape_string($_POST['username']); $pass = mysql_real_escape_string($_POST['password']); $mysql = mysql_query("SELECT * FROM users WHERE name = '{$name}' AND password = '{$pass}'"); if(mysql_num_rows($mysql) < 1) { echo("<center>Password was an epic fail!</center>"); …

Member Avatar for vibhaJ
0
111
Member Avatar for bouhbob

Try this code. [CODE] <? $produpd = $_POST['id-uprod']; $selectprod=mysql_query("SELECT * FROM products WHERE id='$produpd'"); $selectproda=mysql_fetch_array($selectprod); $desc= stripslashes($selectproda[description]); echo "<table border='2' cellspacing='15' cellpadding='15'>"; echo "<tr><td>"; echo "<form action='updatedprod.php' method='post' class='text'>"; echo "<input type='hidden' name='id-uprod' value='$selectproda[id]' />"; //echo ($presstext['id']); echo "</td></tr><tr><td>"; echo "<input type='text' name='name-uprod' value='$selectproda[name_product]' />"; echo "</td></tr><tr><td>"; echo "$test"; echo …

Member Avatar for vibhaJ
0
1K
Member Avatar for phphit

Here is a query. Try it. [CODE] SELECT teams.name, count( teams.name ) FROM teams LEFT JOIN schedule ON schedule.team1 = teams.name OR schedule.team2 = teams.name WHERE schedule.id >0 GROUP BY teams.name ORDER BY rand( ) LIMIT 0 , 10 [/CODE]

Member Avatar for vibhaJ
0
68
Member Avatar for slap01

Try below code. But why r u fetching all data from tbl_author table? There should be some mapping between tbl_upload and tbl_author. [CODE] <html> <body> <form method=post action="find.php"> <h2>Search For:</h2> <p> Academic Year : <input type=text name=search size=9 maxlength=9> <p> <input type=submit name=submit value=List> <input type=reset name=clear value=cancel> </form> </body> …

Member Avatar for slap01
0
105
Member Avatar for nextdate

nextdate your both post are totally different. POst your exact question with code and error you are getting. BTW use [ code ] tag given in editor to post your code.

Member Avatar for vibhaJ
0
308
Member Avatar for gchurch

use button element instead of submit. Then your js function will run. [CODE] <form id="form1" name="form1" method="post" action="PaymentFormProcess.php"> <table width="80%" align="center"> <tr> <td width="43%"><strong>Do you accept these terms and conditions?</strong></td> <td width="29%" align="right"><p> <label> <input type="radio" name="TermsConditions" value="Accept" id="TermsConditions_0" /> I Accept</label> </p></td> <td width="28%" align="right"><label> <input type="radio" name="TermsConditions" checked="checked" …

Member Avatar for gchurch
0
4K
Member Avatar for aslamdoctor

Try with [URL="http://www.longtailvideo.com/players/jw-flv-player/"]jw player[/URL]. I am already using it in one my website, there are vast modification you can do with it using javascript.

Member Avatar for aslamdoctor
0
157
Member Avatar for BoB3R

[QUOTE=BoB3R;1352878]Hello, I don't have any errors it just not showing a thing if i leave only the html code it works but in php it wont so if you can help me would be cool, Thanks =] [CODE]<?php $a = trim($_REQUEST['a']); $student = trim($_GET['student']); if($a == 'edit' and !empty($id)) { …

Member Avatar for BoB3R
0
151
Member Avatar for gidireich

I also want to see reply. As in ASP.NET, in php there should be good debugging.I have tried many debugger but not successful at the end. I am tired with echo and exit statement.

Member Avatar for gidireich
0
204
Member Avatar for ahmedeqbal

Here is code: [CODE] <? function mapString($str,$ch) { return floor(strlen($str)/$ch); } $text = "your text goes here."; echo mapString($text,160); ?> [/CODE]

Member Avatar for ahmedeqbal
0
163
Member Avatar for dschuett

Here is code: [CODE] <? $sql = "SELECT * FROM pictures WHERE email='$_GET['email'] and date >= DATE_SUB(NOW(), INTERVAL 30 DAY)"; $res = mysql_query($sql); $cnt = 0; $numCol = 5; echo "<table border='1' class='results'>"; while ($row = mysql_fetch_assoc($res)) { $cnt++; if($cnt==1 || ($cnt-1)%$numCol==0) echo '<tr>'; echo "<td><img src=".$row['picture']."></td>"; if($cnt%$numCol==0) echo '</tr>'; …

Member Avatar for vibhaJ
0
177
Member Avatar for aizel

Here is complete code what you need. Hope it will help you. [CODE] <?php if(isset($_REQUEST['calculate'])) { $temp1 = explode('/',$_REQUEST['date1']); $date1 = mktime(0,0,0,$temp1[0],$temp1[1],$temp1[2]); $temp2 = explode('/',$_REQUEST['date2']); $date2 = mktime(0,0,0,$temp2[0],$temp2[1],$temp2[2]); $dateDiff = $date2 - $date1; $fullDays = floor($dateDiff/(60*60*24)); $fullHours = floor(($dateDiff-($fullDays*60*60*24))/(60*60)); $fullMinutes = floor(($dateDiff-($fullDays*60*60*24)-($fullHours*60*60))/60); $answer = "Differernce between date2 and date1 is …

Member Avatar for fredrickprem
0
180
Member Avatar for vibhaJ

Hi All, I have javaPowUploader for multiple file upload. I am able to upload file upto 4GB after php setting. But how can i upload file greater than 4GB?

Member Avatar for richieking
1
155
Member Avatar for madsy

"when I onclick it posts the value to the function on the top..." what does it exactly means? You want to use $table array right? Post your exact html output requirement.

Member Avatar for madsy
0
153
Member Avatar for jonathan96

[CODE] while($row = mysql_fetch_array($q)) { $gdcarray[] = $row["group"]; $i2++; } [/CODE] Try to replace while loop with above code.

Member Avatar for vibhaJ
0
100
Member Avatar for jamesyrawr

[CODE] <?php $username = $_POST['username']; $password = $_POST['password']; $login = $_GET['login']; setcookie("username", "$username", time()+86400); if ($login=='yes') { $con = mysql_connect("localhost","root",""); mysql_select_db("obsosuser"); $sql = "SELECT count(id) FROM obsosuser WHERE username='$username' and password='$password'"; $query = mysql_query($sql); $result = mysql_num_rows($query); if ( $result == 1 ) { echo "Login Successful! Welcome back ".$_COOKIE['username']." …

Member Avatar for vibhaJ
0
127
Member Avatar for swilliamrobert

Firstly create your php array. then using below link convert array to xml. [URL="http://www.phpro.org/classes/PHP-Recursive-Array-To-XML-With-DOM.html"]http://www.phpro.org/classes/PHP-Recursive-Array-To-XML-With-DOM.html[/URL]

Member Avatar for swilliamrobert
0
133
Member Avatar for julianmoors

Some points to mention: -> form tag must always start exact html portion. e.g. in your code form should be above table tag. [CODE] <form id="form" name="form" method="get" > <table id="search"> <tr> [/CODE] -> Subject select tag is not completed with </select> -> try method="get" in form. and check how …

Member Avatar for julianmoors
0
222
Member Avatar for jaygchill
Member Avatar for noufal68

See this jquery autosuggest example, it will guide you. [URL="http://jquery.bassistance.de/autocomplete/demo/"]http://jquery.bassistance.de/autocomplete/demo/[/URL]

Member Avatar for noufal68
0
174
Member Avatar for it200219

Look into this link, it will help you. [URL="http://blog.mastykarz.nl/paging-large-content-sharepoint-jquery/"]http://blog.mastykarz.nl/paging-large-content-sharepoint-jquery/[/URL]

Member Avatar for vibhaJ
0
109
Member Avatar for JBLDW

Here is a example code which uses jquery. [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 http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script> <script language="javascript"> $(document).ready(function() { $("#keyword").val('Enter Your Search Here'); $("#keyword").bind("focus", function(){ if($(this).val() == 'Enter Your Search Here') $(this).val(''); }); $("#keyword").bind("blur", function(){ …

Member Avatar for JBLDW
0
107
Member Avatar for cristi08

Some things need to clear: What is [B]"<p>[/B] before <form ... What is need of while if select query return only one record i.e. one record for user who is in session logged in. You form tag starts in while and closing out of while loop. Make it proper.

Member Avatar for MooGeek
0
77
Member Avatar for GigsD4X

Below is example to get Google's content. [CODE] <?php $homepage = file_get_contents('http://www.google.com/'); echo $homepage; ?> [/CODE] Is this what u want?

Member Avatar for GigsD4X
0
451
Member Avatar for vibhaJ

HI All, my requirement is as below: lets product name is "aaa bbb ccc". Now in search coding i have use LIKE statement. [CODE]"... where product_name LIKE '%".$keyword."%'"[/CODE] Now when user insert 'aaa' or 'bbb' or 'ccc' or 'aaa bbb' or 'bbb ccc' search works. But if user insert 'aaa …

Member Avatar for mwasif
0
111
Member Avatar for vibhaJ

HI All, my requirement is as below: lets product name is "aaa bbb ccc". Now in search coding i have use LIKE statement. [CODE] "... where product_name LIKE '%".$keyword."%'" [/CODE] Now when user insert 'aaa' or 'bbb' or 'ccc' or 'aaa bbb' or 'bbb ccc' search works. But if user …

Member Avatar for vibhaJ
0
101
Member Avatar for sami.asanga

1) You can have one table for all admin module's php pages name. 2) second table is for which admin have which php page's rights. 3) when any admin login then on top of page insert one common file, which will check take current php page's name and check in …

Member Avatar for vibhaJ
0
85
Member Avatar for designershiv

Always try to practice with [B]header[/B]. [CODE] <? if(isset($_REQUEST['submit'])) { /* ---------- your code ------------ */ header("Location:page.php"); exit; } ?> [/CODE] Because if there is no header and you press refresh then form will be resubmitted.

Member Avatar for designershiv
0
114
Member Avatar for jkaye

Table design is not proper.You should normalize your table. you can have following structure: [B]tbl_album : [/B] id : auto id user_id : id of user name : name of album [B]tbl_album_files : [/B] id : auto id album_id : reference to tbl_album file : name of file title : …

Member Avatar for vibhaJ
0
109
Member Avatar for vibhaJ

Hi All, I am having one php website. where user register and add android application id from android market.e.g. com.GalleryXYZ... I just have to check that whether this id is valid or not on android market? I found below link: [URL="http://developer.android.com/guide/publishing/publishing.html#marketintent"]http://developer.android.com/guide/publishing/publishing.html#marketintent[/URL] But it doesn't help me. Is android provide any …

Member Avatar for vibhaJ
0
152
Member Avatar for vibhaJ

Hi All, I am having one php website. where user register and add android application id from android market.e.g. com.GalleryXYZ... I just have to check that whether this id is valid or not on android market? I found below link: [URL="http://developer.android.com/guide/publishing/publishing.html#marketintent"]http://developer.android.com/guide/publishing/publishing.html#marketintent[/URL] But it doesn't help me. Is android provide any …

0
96
Member Avatar for akshayinbox

If you just wish to display time it is not required to use iframe. I means, You can also go with JS or AJAX. What do you think?

Member Avatar for akshayinbox
0
113
Member Avatar for Arsench

change line #6 to below code: [CODE] $path = "<a href=$link?id=".urlencode($id).">Inscripción curso</a>"; [/CODE]

Member Avatar for Arsench
0
102
Member Avatar for detweiller

lets you have three tables in database. You can manually check in all tables by placing if-else. you can combine all above 3 inputs and make select query to generate output.

Member Avatar for detweiller
0
178
Member Avatar for Facte

post your required date format. e.g. default you have $date = '2010-12-31 10:00:00'; Now in what format you would like to display?

Member Avatar for FlashCreations
0
114
Member Avatar for sami.asanga

Try with below code. database.php [CODE] <?php class database{ function __construct() { $db_name = 'Lakkam'; $db_host = 'localhost'; $db_user = 'root'; $db_password = ''; $con = mysql_connect ($db_host,$db_user,$db_password) or die("Could not connect to MySQL server. Please try again."); mysql_select_db($db_name,$con) or die("Could not connect to the database. Please try again"); } …

Member Avatar for vibhaJ
0
314
Member Avatar for dschuett

Check with below code. This code will generate $sql based on your requirement. you can modify as per your want. if user have selected "Any" then no need to consider it as no filtration required for that in select query. [CODE] <? if(isset($_REQUEST['submit'])) { $str = ' 1=1 '; if( …

Member Avatar for vibhaJ
0
1K
Member Avatar for mastermind2
Member Avatar for dev.vini
0
190
Member Avatar for vibhaJ

I have one website name e.g. [url]www.mydomain.com[/url] Now i want to configure smtp setting in my local pc. Below is the phpini code i have set. Here i have not used any username and password. [CODE] [mail function] ; For Win32 only. SMTP = mail.mydomain.com smtp_port = 25 [/CODE] And …

Member Avatar for rajarajan2017
0
141
Member Avatar for whiteyoh

You can also use below reduced code. [CODE] <option <?=($question1 == "Gone to Competitor")?'selected="selected"':''?> >Gone to Competitor</option> [/CODE]

Member Avatar for vibhaJ
0
111
Member Avatar for LRNPHP

Advance search depends on your records to be searched. so first make a list of fields and options which are there in your search result.

Member Avatar for billmudry
0
205
Member Avatar for braveheart_sb

It is better to upload image on server. Then you can resize image to new thumb image. And use that thumb image when you want to display on page.

Member Avatar for muralibobby2015
0
201

The End.