Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 25 of 130
Search took 0.02 seconds.
Search: Posts Made By: urtrivedi
Forum: PHP How-To April 18th, 2011, 06:53 AM
Replies: 1
Views: 4,270
Posted By urtrivedi
You can not set php variable from html elements....

You can not set php variable from html elements. You must post you page and call process.php page to process your form.

Now a days if you want to process form without posting, then you can use...
Forum: SQL Language April 7th, 2009, 01:00 AM
Replies: 6
Views: 1,105
Posted By urtrivedi
Following query may help select id, ...

Following query may help

select id,
max(case when result=1 then 1 else null end) result1,
max(case when result=2 then 2 else null end) result2,
max(case when result=3 then 3 else null end)...
Forum: BOOK: Beginning MySQL April 7th, 2009, 12:54 AM
Replies: 2
Views: 2,286
Posted By urtrivedi
I found it at "C:\Program Files\MySQL\MySQL...

I found it at
"C:\Program Files\MySQL\MySQL Server 5.0\data"
Forum: BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 April 3rd, 2009, 06:06 AM
Replies: 1
Views: 2,503
Posted By urtrivedi
it is "\n" not "/n". Without "\n" ...

it is "\n" not "/n".

Without "\n"

echo "Name : <input type=text name=txt value=''>";
echo "<input type=button name=btn value='submit'>";

The above code will look in browser like...
Forum: PHP Databases April 3rd, 2009, 05:52 AM
Replies: 2
Views: 1,528
Posted By urtrivedi
I think your table design is not normallised....

I think your table design is not normallised. Your weektable contains same columns as you course info table. define primary key in course info and refer that key in weektable.
weektable may look...
Forum: ASP.NET 2.0 Basics March 23rd, 2009, 04:54 AM
Replies: 5
Views: 966
Posted By urtrivedi
I dont know much about asp.net, but I am giving...

I dont know much about asp.net, but I am giving you general syntax

<a href="<%# Bind("TextInput") %>" target="_blank" > <asp:LabelID="Label2"runat="server"Text='<%# Bind("TextInput")...
Forum: SQL Server 2005 March 20th, 2009, 06:19 AM
Replies: 2
Views: 981
Posted By urtrivedi
I Think your query is ok, but count never return...

I Think your query is ok, but count never return null, it returns 0 instead of null, so change "having" portion as follows

HAVINGCount(c.clean_cut_experience_id)
+ Count(r.cri_experience_id)
+...
Forum: SQL Server 2005 March 19th, 2009, 12:49 AM
Replies: 3
Views: 883
Posted By urtrivedi
Please post structures of your table and define...

Please post structures of your table and define your requirement properly
Forum: SQL Server 2000 March 19th, 2009, 12:38 AM
Replies: 8
Views: 972
Posted By urtrivedi
Select CONVERT(char(8),TransactionDetailDate, 112...

Select CONVERT(char(8),TransactionDetailDate, 112 ) AS date, Store,SKU,Flag,Qty,Price replicate('0',3-len(cast(Store as varchar(25))))+cast(Store as varchar(25)) as store,...
Forum: MySQL March 18th, 2009, 12:48 AM
Replies: 3
Views: 1,253
Posted By urtrivedi
In oracle query is execting fine. You just check...

In oracle query is execting fine. You just check the syntax for subquery in mysql

select p.project_name, sum(t.estimated_time) ,te.time_spent
from projects p
left join tasks t on...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 November 8th, 2008, 07:57 AM
Replies: 4
Views: 1,913
Posted By urtrivedi
Have you declared object for you class ...

Have you declared object for you class

$myobj=new Morders_model()
$myobj.updatecart();

are you doing in above manner. if you are calling updatecart directly then it may not work.

urt
...
Forum: PHP How-To October 15th, 2008, 11:24 PM
Replies: 1
Views: 1,005
Posted By urtrivedi
You need not to use php. You can do it at client...

You need not to use php. You can do it at client side using javascript.

<html>
<script language='javascript'>

isInteger  = /^[0-9\-]+$/;

function checkdata()
{
if...
Forum: SQL Language September 17th, 2008, 11:09 PM
Replies: 5
Views: 1,280
Posted By urtrivedi
I am also not able to understand his database...

I am also not able to understand his database design, it seems that he designed his table for front end and not for the shopping cart. But I was just explaining how we can use outer joins.

urt
...
Forum: Beginning PHP September 17th, 2008, 03:13 AM
Replies: 2
Views: 2,111
Posted By urtrivedi
You need to use cookies both in javascript and...

You need to use cookies both in javascript and php
<?
if ($_COOKIE['pagename_displayed']==0) //if page is not displayed then only execute
{
//insert,update, statement
//this portion will only...
Forum: SQL Language September 17th, 2008, 02:52 AM
Replies: 5
Views: 1,280
Posted By urtrivedi
tblpagesitems ---------------- itemid scid...

tblpagesitems
----------------
itemid scid spid itemdisplayorder
1 1 1 1
2 1 2 1
3 1 2 2
...
Forum: SQL Language August 13th, 2008, 01:08 AM
Replies: 7
Views: 1,484
Posted By urtrivedi
1) You dont have to user UNION you can use JOIN...

1) You dont have to user UNION you can use JOIN feature of SQL.
2) And for things which are not active any more you can use status flag in master table
3) In my view It is not bad to refer record...
Forum: SQL Language August 13th, 2008, 12:46 AM
Replies: 7
Views: 1,484
Posted By urtrivedi
Dear callagga, I would like to tell you how I...

Dear callagga,
I would like to tell you how I handled this case

1) First you are entering parent and child in same table please avoid this

2) I prefer 2 separate tables one parent table and...
Forum: Reporting Services August 13th, 2008, 12:18 AM
Replies: 1
Views: 940
Posted By urtrivedi
In mssql2000 i was also encountered same...

In mssql2000 i was also encountered same situation and at that time I used cursor to merge record

1) I created stored procedure using cursor
2) Entered merged data into temporary table
3)...
Forum: PHP Databases August 12th, 2008, 03:08 AM
Replies: 6
Views: 1,392
Posted By urtrivedi
if your script is still not running then try ...

if your script is still not running then try
php tags as given below that is <?php intead of <?.
change every where. and then execute script.

<?
//this may not work if not configured
?>...
Forum: SQL Server ASP May 23rd, 2008, 03:50 AM
Replies: 1
Views: 9,261
Posted By urtrivedi
1) Check authentication mode,in sql server...

1) Check authentication mode,in sql server properties' security tab.
2) If it is windows try to change it to sql and windows mode.
3) Try with user sa and set password for sa user


urt

Help...
Forum: SQL Language May 20th, 2008, 05:35 AM
Replies: 2
Views: 1,012
Posted By urtrivedi
Any way you can access two separate database...

Any way you can access two separate database using two separate connections, but according to me you can not set relation across two databases.

urt

Help yourself by helping someone.
Forum: Visual Studio 2005 May 20th, 2008, 05:28 AM
Replies: 1
Views: 1,000
Posted By urtrivedi
Try following ...

Try following
textbox1.selstart=len(textbox1.text)
textbox1.selend=len(textbox1.text)

urt

Help yourself by helping someone.
Forum: VB Databases Basics March 19th, 2008, 06:19 AM
Replies: 3
Views: 875
Posted By urtrivedi
If above doesn't works then try following. ...

If above doesn't works then try following.

SELECT * FROM <the product table>
WHERE pk_productID BETWEEN cast('0101001' as int)
AND cast('0101003' as int)

urt

Help...
Forum: Access March 19th, 2008, 05:54 AM
Replies: 3
Views: 1,144
Posted By urtrivedi
Please specify what values(all possible values)...

Please specify what values(all possible values) starts and track field may contain.
and how u watn to show them in report.

Also when their is a date then why u have used separate year column.
...
Forum: Pro VB.NET 2002/2003 March 4th, 2008, 06:06 AM
Replies: 4
Views: 4,418
Posted By urtrivedi
They are nothing but ascii characters, refer any...

They are nothing but ascii characters, refer any ascii chart in any appendix of c/c++ book

CR; Carriage return; ascii code=13
LF; Line feed; ascii code=10
Whenever you press enter key in text...
Showing results 1 to 25 of 130

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.