39,323 Topics

Member Avatar for
Member Avatar for paine_today

I just launched my first website I fully wrote myself in php/mysql - [www.TomPaineToday.com](http://www.TomPaineToday.com). After testing it on my own computer for a while, I decided I might as well launch it and see what problems I run into. The first issue I came across was that my link redirect …

Member Avatar for paine_today
0
608
Member Avatar for dante123

hi i have 30 pages with the same design, the text appears always in the same div so i have 30 different texts with the same div id. Is it possible to include all the text in an external php file not database and call them to appear one by …

Member Avatar for diafol
0
146
Member Avatar for raj-uk

how can we make Function in php this is the line to be read = 'i am going to [USA]' only required the USA to be print nothing else Please help

Member Avatar for diafol
0
103
Member Avatar for rakibtg

i wonder if it is possible to fetch images using [PHP Simple HTML DOM Parser](http://simplehtmldom.sourceforge.net/) and obtain it in a specific URL. Suppose it fetched a Image in a variable like $img = 'http://www.example.com/some_image_address.JPEG'; Now is it possible to get this image in my own domain path, like $new_img = …

Member Avatar for diafol
0
227
Member Avatar for Shantanu88d

i have been given an assignment, to find frequencies of all words in a large text file. I have tried a program which finds the same in a sample string. Done by taking that string in an array. But in case of a text file spanning many pages with thousands …

Member Avatar for edwinhermann
0
571
Member Avatar for Develop.eR

hello guys.. im new in creating websites.. my problem is how to auto update the dropdownlist then the combobox is change/click? example: i have 2 combobox which **cbo1** contains the list of genre of songs like *pop, opm, love songs* etc. and **cbo2** contains the list of *artists/singers etc* about …

Member Avatar for diafol
0
2K
Member Avatar for sin.yi.501

Any problem with this codes?The button not working at all if i put few actions inside the function,if i just put one (document.) action inside the function,it works. <script type="text/javascript"> function fnSubmit (){ var form1Content = document.getElementById("form1").innerHTML; var form2Content = document.getElementById("form3").innerHTML; document.getElementById("toSubmit").innerHTML=form1Content+form2Content; document.forms.toSubmit.submit(); } </script> <input type="submit" name="submit" value="Insert" onclick="fnSubmit()"/>

Member Avatar for glenwill101
0
106
Member Avatar for LastMitch

Hi I been doing some research on **PHP Frameworks**. I want to know what other Daniweb members used as **PHP Frameworks**? I'm still new to understand how it works but would like to know which one will suit my skills, so I can built on ... to move forward to …

Member Avatar for LastMitch
2
161
Member Avatar for Nirmeen Ased

hi, i need some simple ideas for my graduation project, i'll use PHP to develope it, hope you'll help me. redgards.

Member Avatar for ryantroop
-1
146
Member Avatar for onofej

Hello, I have all my php documents in one folder to handle my form creating, and i have all my html files in one directory as well. but in my php code i want when a user click on the hyperlink in php page it shoud yake the user to …

Member Avatar for diafol
0
1K
Member Avatar for arcticM

can someone share with me a link where I can download a free menubar? I just can't find anything that I can just take and paste in my project. I have my menu data in DB (not hardcoded in html) and I'm looking for a multi-level(atleast 3 levels) dropdown menu. …

Member Avatar for diafol
0
275
Member Avatar for weemy

Hello, it's my first post here, i have a big issue "as i can see", i'm creating a cms script, and have a problem with image, that i want to make the clint chose any image and press submit, here i want to make a thumb of this image with …

Member Avatar for diafol
0
149
Member Avatar for andyy121

it show me this when i click the previw button to show the page how i can fix this? Warning: include(funck.inc.php): failed to open stream: No such file or directory in C:\xampp\htdocs\search\index.php on line 1 Warning: include(): Failed opening 'funck.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\search\index.php on line 1

Member Avatar for andyy121
0
567
Member Avatar for DarkMonarch

hey guys, finally have some time to think about a personnal project. i want to create a stock screener, with some cross checks on data like oscillator, MACD, volume and moving average. my 1st step was to look around and see if they're was any finance API out there that …

Member Avatar for DarkMonarch
0
221
Member Avatar for rm_daniweb

Hi All, I just want to share my code. A lots of website said that php is on server side and javascript is on client side...they said we cannot run php on javascript... here's how we can run php function when you click call the onchange events on javascript. [code=php]function …

Member Avatar for talad
0
3K
Member Avatar for deovratb

Hi guys , I am new to php. I want to fill a mysql table which contains numerous fields.I need to develop four form on different pages and i need to insert all the values in the same table . any help will be appricited.

Member Avatar for bettybarnes
0
48
Member Avatar for DaveyMoyes

Hi all, I have the follwoing pagination script that is working great, But, What I am trying to do is remove the page numbers from the script, Any help would be greatly appreciated - <?php /* Now we apply our rules and draw the pagination object. We're actually saving the …

Member Avatar for DaveyMoyes
0
674
Member Avatar for reco21

Im grabbing a page with below. $homepage = file_get_contents('http://www.example.com/'); echo $homepage; How do I write it to a file.txt and overwite in the event the file exists ? Thanks.

Member Avatar for reco21
0
1K
Member Avatar for penet.biz

Hi, I have this code: <?PHP require ("connect.php"); //$db_handle = mysql_connect($server, $user_name, $password); =>$connect $db_found = mysql_select_db($_mysql_db, $connect); if ($db_found) { $SQL = "SELECT * FROM cheats"; $result = mysql_query($SQL); $i=0; while ($db_field = mysql_fetch_assoc($result)) { if($i%2===0) { $mesaj="<li><a href=\"{$db_field['Image']}\" class=\"pirobox\" title=\"{$db_field['Titlu']}\"><img src=\"{$db_field['Image']}\"/></a><p>{$db_field['Content']}</p><div class=\"button\"><pre><a href=\"#\">Read more</a> <a href=\"{$db_field['Download']}\">Download</a></pre></div></li>"; print ("$mesaj"); …

Member Avatar for abiec
0
116
Member Avatar for HasNor

Dear experties, I have a problem to insert checkbox value that called from database. How can I identify each checkbox's value? This is my code to show the checkbox. Dont know how to post the value to insert into database if checked. Please give me idea to solve it. Thank …

Member Avatar for HasNor
0
261
Member Avatar for geneh23

Hey everyone, So I know you all are probably getting tired me posting questions and are wanting me to look this up. I have looked and searched to my wits end.. I want to be able to gather my post id's (pid)'s and my album id's from different tables to …

Member Avatar for geneh23
0
524
Member Avatar for morrisproject

HI, Is it possible to be able to upload a load of images in one go from a camera, using there file name and saving them in to my database? I have created a table called images, with fields, image_num and image.

Member Avatar for diafol
0
456
Member Avatar for shuka79

Hi Guys I am currently setting up a cookie message to tell users of the site that cookies are being used (EU cookie law) I have managed to get this working on all desktop browsers, however I am having issues with mobile device ie iPhone, iPad, Galaxy tab etc I …

Member Avatar for diafol
0
277
Member Avatar for ag99110011

Type the following lines and save them as a.php <html> <body> <? echo "hello world"; ?> </body> </html>

Member Avatar for diafol
0
75
Member Avatar for ag99110011
Member Avatar for NinjaMediaD

Here is my issue, I am really perplexed when it comes to string parsing and manipulation in php. I am writing a database driven inventory using mysql and php. One of the issues is that there are multiple people who are able (by company rule) to add to this database. …

Member Avatar for NinjaMediaD
0
151
Member Avatar for theundeadelvis

Hello! We have an older site that was recenlty scanned and shown to be vulnerable to cross-site scripting and SQl injection. It was suggested that we modify our code to use prepared statements/PDO. They even offered this as a sample snippit of code: $user = 'xxxx'; $pass = 'xxxxx'; $dbh …

Member Avatar for Squidge
0
194
Member Avatar for rakibtg

i have a script which will fetch content from a website, what i wanna do is modify all that links. Suppose: $html = str_get_html('<h2 class="r"><a class="l" href="http://www.example.com/2009/07/page.html" onmousedown="return curwt(this, 'http://www.example.com/2009/07/page.html')">SEO Result Boost <b> </b></a></h2>'); so, is it possible to modify or rewrite it in this way> <h2 class="r"><a class="l" href="http://www.site.com?http://www.example.com/2009/07/page.html">SEO …

Member Avatar for rakibtg
0
550
Member Avatar for persianprez

I have a variable variable defined, suppose: $array[1] = Hello World; $i = 1; ${"name" . $i} = $array[1]; I then have the following: $val1 = "Hello World"; However when I try to compare $name1 to $val1, they are never equal. I've tried all of the following: if ($name1 == …

Member Avatar for persianprez
0
161
Member Avatar for klemme

I am trying to use function reference, to return values from an array inside an function. I need to echo info to 8 different places on a page, and was trying to do this by using a refernce. But havent much exp. in that, so as of now, I am …

Member Avatar for DarkMonarch
0
304

The End.