Search found 13 matches

by tomindo
Thu Feb 17, 2011 4:44 pm
Forum: PHP - Code
Topic: curl dynamic url
Replies: 1
Views: 403

curl dynamic url

hi guys I just could not find the answer on forum. I have a url like this http://www.example.com/deal.php?id=367 and my question is : how can i use curl function to get the html and the id value which is 367
thanks
by tomindo
Fri Dec 31, 2010 12:05 am
Forum: PHP - Code
Topic: mysql_num_rows Error
Replies: 5
Views: 110

Re: mysql_num_rows Error

you need to fix sql2 like this

Code: Select all

$sql2="Select * from users WHERE email='".$email."'";
by tomindo
Thu Dec 30, 2010 11:59 pm
Forum: PHP - Code
Topic: Sessions not working?
Replies: 3
Views: 116

Re: Sessions not working?

what is exactly error message?
by tomindo
Wed Dec 22, 2010 1:10 pm
Forum: Databases
Topic: array key with space issue
Replies: 4
Views: 1145

Re: array key with space issue

thanks man
why did that happen, btw?
by tomindo
Wed Dec 22, 2010 12:51 pm
Forum: Databases
Topic: array key with space issue
Replies: 4
Views: 1145

array key with space issue

Code: Select all

echo "<input type=checkbox name=b[$a] value=1>view,";
I m trying to submit array b, it works fine if $a is string without space but string with space like "my name". That is really weird
by tomindo
Sun Dec 19, 2010 1:22 pm
Forum: Javascript
Topic: javascript checkbox check
Replies: 3
Views: 888

Re: javascript checkbox check

could moderator move my thread to java script forum?
thanks
Done.
by tomindo
Sun Dec 19, 2010 3:52 am
Forum: Javascript
Topic: javascript checkbox check
Replies: 3
Views: 888

javascript checkbox check

function chk_view() { var theForm = document.myform; for (i=0; i<theForm.elements.length; i++) { if ((theForm.elements[i].value==4) && (theForm.elements[i].checked ==1)){ theForm.elements[i].value==1; theForm.elements[i].checked = true; } } } Basically, I want when check box with value =4 i...
by tomindo
Wed Dec 15, 2010 9:34 am
Forum: PHP - Code
Topic: ip2long function help
Replies: 2
Views: 176

Re: ip2long function help

thanks
by tomindo
Wed Dec 15, 2010 1:38 am
Forum: PHP - Code
Topic: ip2long function help
Replies: 2
Views: 176

ip2long function help

it does not echo the ip conversions. I tried without ip2long functino , it worked fine <form method="post" action="test.php"> <textarea name="new" cols="40" rows="10"> samplehost-1,127.0.0.1 samplehost-2,127.0.0.2 </textarea><br> <input type="su...
by tomindo
Sun Mar 21, 2010 5:22 pm
Forum: PHP - Code
Topic: please help
Replies: 6
Views: 842

Re: please help

I don't know how much more I can help. But remember that the url query string consists of a number of name - value pairs. In this case the name is "url" and the value is "index%3Dbooks" or "index=books". Does this help? it does not make sense "value" should o...
by tomindo
Sun Mar 21, 2010 1:40 pm
Forum: PHP - Code
Topic: please help
Replies: 6
Views: 842

Re: please help

I don't know. But if you put http://www.amazon.com/exec/obidos/search-handle-form/002-5640957-2809605?url=index%3Dbooks&field-keywords=PHP+MYSQL into the address bar of your browser, you get an Amazon search for books about php and mysql. that is right. I want to understand how they came up wit...
by tomindo
Sun Mar 21, 2010 12:16 pm
Forum: PHP - Code
Topic: please help
Replies: 6
Views: 842

Re: please help

The string needs to be url encoded. "%3D" is the url encoding of "=", so "index%3Dbooks" means "index=books". sound like silly question but why does it have "index" in here? I have put the code in dreamweaver and navigate to that field but in the pr...
by tomindo
Sun Mar 21, 2010 1:30 am
Forum: PHP - Code
Topic: please help
Replies: 6
Views: 842

please help

HI guys I am trying to fully understand the line in blue, can someone give me a detailed translation of this line. What "index%3Dbooks" means ? thanks a lot <?php // FIND BOOKS ON PHP AND MYSQL ON AMAZON $url = "http://www.amazon.com/exec/obidos/search-handle-form/002-5640957-2809605&...