kasakit 0 Light Poster

thanks for reply sir

for example

$url = file_get_contents('http://www.example.com)
$content = explode("<td>"$url);
then $content look like this
array=>
$content[0];//it contain City
$content[1];///it contain Street
$content[2];///it contain Country...there are times that this array include the hidden html tag.. heres the record in my database
City | Country
| ADELAIDE | AUSTRALIA</td></tr></tbody></table></div><div style="clear:both; paddi |

If you take a look at country column you will see </td></tr></tbody></table></div><div style="clear:both; paddi..

how can i strip that before i insert it?

kasakit 0 Light Poster

Thanks a million guys....i try all youre suggestion and it work.. now my program work very fine..i really appreciate your help.

i have 1 more question.
is there any ways that you can strip the html tag before you can insert into youre database?

my source is url, i explode it and insert into my database..but there are times that it include the hidden html tag... i try to explode it but it cant strip the hidden html tag..

this is just a follow up question, ill mark it solve later..
thanks a million times guys.

kasakit 0 Light Poster

Hi sir's outthere,i need youre help...Please

i need to strip the html tag in my record in my mysql database
here's how it look in my database
CITY Country
ADELAIDE | AUSTRALIA</td></tr></tbody></table></div><div style="clear:both; paddi

hope somebody know how to strip this tag.
i try
$country2a = strip_tags($cntry);
but it didnt work...

any help/suggestion is greatly appreciated

kasakit 0 Light Poster

anyway, did you include youre while condition in youre if?if not just give it a try to include inside youre if statement.

kasakit 0 Light Poster

example of how like % work.
1) like '%$stxt' for example you put "a123" in youre search box
it will search all youre records that END with a123.

2)like '$stxt%' for example you put "a123" in youre search box
it will search all youre records that START with a123.

3)like '%$stxt%' for example you put "a123" in youre search box
it will search all youre records that CONTAIN with a123. EVERYTHING its either in the end,last or in the middle.


if you are looking for a single AppRequestID its better to use where claus

hope that help

kasakit 0 Light Poster

you need to upload it in youre domain..

kasakit 0 Light Poster

Did you try to echo youre query? if not try to echo youre select query
$query="SELECT AppRequestID, Create_Date FROM ILM_Storage_Request_MAIN3 WHERE AppRequestID = '$stxt' ";
echo $query;
if youre $txt is not empty and it contain to what you put in youre input,but still no output,then the problem somewhere in AppRequestID = '$stxt' "; or maybe in youre print

kasakit 0 Light Poster
kasakit 0 Light Poster

hi guys i need youre help

i have a problem.
im retrieving a records (20000+)from my database,
$result = mysql_query("SELECT * FROM banco order by counterindex asc");
but it only display 200+

how can i display all my record by page?

any help and suggestion is greatly appreciated.

kasakit 0 Light Poster

if thats the error replace line 19 with this

$qa="SELECT SRMTicketNumber, Create_Date FROM Storage_Request WHERE RequesterFullName LIKE ".$_GET['searchtxt']."";

apocden was right. just add % in youre LIKE ".%$_GET%." or
LIKE %".$_GET."%

kasakit 0 Light Poster

Try to select the 2 id in each table and compare
if(newID!=oldID)
{
//what you want to do if the new ID is not = to your old id
}
else
//what you want to do if the new ID is = to your old id

im not sure...

kasakit 0 Light Poster

Try to use vdeamon. visit this site to see the example http://www.x-code.com/vdaemon/samples/registration_f.php
or visit http://www.x-code.com/vdaemon_web_form_validation.php

hope this help

kasakit 0 Light Poster

I think its ok if they answer it..maybe somebody would need it.. :)

kasakit 0 Light Poster

thank you for reminding me.....sorry

kasakit 0 Light Poster

Could you please answer these questions?

1. Name, job title and place of employment
--I'm Mike, IT here in Philippines for almost 2 years

2. Do you use Microsoft access, excel, power point or word? & how long have you been using it?
--NO. im using spreadsheet instead of excel,word processor instead of word. im using it 1hr everyday

3. Did you have any formal training? Or did you teach yourself how to use the program(s)?
--just a self study

4. What percent of you time do you spend using this software at your job? (example: daily sales info, weekly accounts, monthly reports)
--daily sales info

5. Is there any special feature or shortcut that you can share that has been helpful to you?
--

6. Are there any other programs that you use?
--yes,php,mysql,html,javascript and learning jquery

7. Is ther any advice you would like to give me about your studies & other activities?
-- i dont know what program or software you want to use/studies.,just keep on searching and learn from it.you can also join to any blogs related to youre need and you can learn a lot from them.

kasakit 0 Light Poster

Could you please answer these questions?

1. Name, job title and place of employment
--I'm Mike, IT here in Philippines for almost 2 years

2. Do you use Microsoft access, excel, power point or word? & how long have you been using it?
--NO. im using spreadsheet instead of excel,word processor instead of word. im using it 1hr everyday

3. Did you have any formal training? Or did you teach yourself how to use the program(s)?
--just a self study

4. What percent of you time do you spend using this software at your job? (example: daily sales info, weekly accounts, monthly reports)
--daily sales info

5. Is there any special feature or shortcut that you can share that has been helpful to you?
--

6. Are there any other programs that you use?
--yes,php,mysql,html,javascript and learning jquery

7. Is ther any advice you would like to give me about your studies & other activities?
-- i dont know what program or software you want to use/studies.,just keep on searching and learn from it.you can also join to any blogs that related to you and you can learn a lot from them.

kasakit 0 Light Poster

If I understand what you're asking, try using a for loop like this:

for($i = 0; $i < count($array); ++$i)
{
if($i % 3 == 0)
explode($array);
}

The $i % 3 will return the remainder of $i divided by 3, and the remainder will be 0 every third element. I wasn't exactly sure if this is what you were trying to do; let me know if it helps.

thanks man,
your code save me...
but i did a little revise
$a = 0;
$ii = 14;
while($a<=$ii)
{
$a++;
$m = 3;
$s = $m*$a;
$cntry = explode ("<br>",$url[$s]);

but i have a new problem..
i got what i want but there are some parts of the url that does not match to the array i look for..
here's the code
if($count<=2)
{
$street = "Street address not available";
$city = $cntry[0];
$country1 = $cntry[1];
$country2 = explode ("</td>",$country1);
}
elseif($count <=3)
{
$street = $cntry[0];
$city = $cntry[1];
$country1 = $cntry[2];
$country2 = explode ("</td>",$country1);
}
elseif($count>=7)
{
$street = $cntry[0];
$city = $cntry[1];
$country1 = $cntry[2];
$country2 = explode ("</td>",$country1);
}
else
{
$street = $cntry[0]." ".$cntry[1];
$city = $cntry[2];
$country1 = $cntry[3];
$country2 = explode ("</td>",$country1);
}
$sql = "INSERT INTO banco (SWIFT_BIC,Name,Street,City,Country) VALUES('".$swift[0]."','".$bname[0]."','".$street."','".$city."','".$country2[0]."')";
mysql_query($sql,$con);

kasakit 0 Light Poster

Hello I'm also new to daniweb and I'm new in I.T. Maybe you might help me with some project I have. Please reply [email removed]

sure men...but i cant see your email address. I'm new in I.T. also,just almost 2 years,but knows maybe i can help you

kasakit 0 Light Poster

this is the body properties, you can use repeat to make a tile image
Syntax: background-repeat: <value>
Possible Values: repeat | repeat-x | repeat-y | no-repeat
Initial Value: repeat

The background-repeat property determines how a specified background image is repeated. The repeat-x value will repeat the image horizontally while the repeat-y value will repeat the image vertically.

For example:

BODY { background: white url(candybar.gif);
background-repeat: repeat-x }
///
credit (http://htmlhelp.com)\

hope this help

kasakit 0 Light Poster
kasakit 0 Light Poster

hi guys, i need your help..any help would be appreciated...

im currently exploding a $url and i need to explode the every 3 array from my first explode..


$content = explode ($url)
result
array[1]
array[2]
array[3]// need to explode
array[4]
array[5]
array[6]//need to explode
array[7]
array[8]
array[9]//need to explode
array[n]

i dont know how to do that in a loop because the array result in 40+
so i need to explode the every next 3 array..

sorry for my bad english,, guys i really need your help,
thanks


Mike

kasakit 0 Light Poster

i go for linux...linux means --> What you want what you get,its depend on how you do it, or (DO IT YOURE SELF)...its really good for newbie, you will learn a lot of things, specially in programming... I LOVE LINUX (ubuntu 10.04)

kasakit 0 Light Poster

samaru was right..You should know what you like and interest, and you can choose what career you will choose.. its not depend on money, its how you enjoy the career you will choose..

sorry for my bad english... :)

kasakit 0 Light Poster

Name - Mike
Nickname - none
Height - 5' 6"
Weight - lightweight
Hair - black
Eyes - chocolate brown
Location - Philippines
Age - 24

Hobbies - wasting time on computer(having fun in crossfire)w/ beer..

Relationship Status - single

Fav Music - oldies, tv themes , alternative..classic (Kenny G)... the best for stress release

Education -(B.S. degree)Computer Science

Favorite Movies - The 40 yrs Old Virgin, Knock up,failure to launch...

Favorite TV Shows - Spatacus blood and sand,weird Creature (in Animal PLanet)

Favorite Computer Games - World of War Craft, CrossFire, CounterStrike...KIng Of Fighter

kasakit 0 Light Poster

hi there and to all PHP MysqoHolic..... :icon_redface: