39,316 Topics

Member Avatar for
Member Avatar for mpc123

I have this code presently for null to say free but i need also if the info in the ProductPrice field is 0 [code=php] echo is_null($row['ProductPrice']) ? "FREE" : $row['ProductPrice']; echo "</td><td>";[/code] Please help

Member Avatar for mpc123
0
109
Member Avatar for Chosen13

Hello, I have a PHP Login Form and it works fine, but users with Fiddler2 (Web Debugging Proxy) have the ability to hide their PHPSESSID Completely. What is a good system that I can use to prevent this, as anonymous users can cause trouble on the website.

Member Avatar for metalix
0
123
Member Avatar for braveheart_sb

I would like to know how to create a query that will grab the first two results of the combobox and display on the Third comboBox without refreshing the page just the form i mean all to be done on the same page not a secundary page. Thank you! [CODE=php]<table …

Member Avatar for Daiva
0
97
Member Avatar for ajithperuva

Hi, I need to retrieve anchor tag innerHTML using RegExp in php. Consider I have a syntax like [CODE] <div class="detailsGray"> <span class="detailEmail"> <a href="http://example.com"class="fontLink">examples@mail.com</a></span> </div> [/CODE] here how can we retrieve [email]examples@mail.com[/email] using RegExp and preg_match_all(). Thanks

Member Avatar for martin5211
0
87
Member Avatar for usmanbzu
Member Avatar for virtualvinodh

Hi, I wrote a piece of code for doing a recursive printing of all the leaf nodes. But it is not moving beyond one or two levels. Here is the code: [code=php] $root = array( "paa" => array ( "adi1" => array ( "cir1" => array ( "aka", "ra", "vinodh","dkido" …

Member Avatar for virtualvinodh
0
241
Member Avatar for NoID

Hi Guys, Id like to know if its possible to remove or block sites like [url]http://www.onthesamehost.com?[/url] I mean like htaccess? If so can you please help me Thank you for your time.

Member Avatar for martin5211
0
77
Member Avatar for Donno24

Hi Everyone, I was wondering can someone with Ajax experience to have a look at the following PHP script. Its a simple domain checker. I am using sessions to pass data from page to page but when I get to this domain checker page and I search for a domain …

0
62
Member Avatar for pssubash

How to load PECL Package at run time . I downloaded zip package and copied to my application and used dl function to load zip package dynamically but i got following error: [COLOR="Red"]Warning: dl() [function.dl]: Unable to load dynamic library './zip.so'[/COLOR] How to resolve it. Let me know your comments.

Member Avatar for martin5211
0
105
Member Avatar for henikah

Hello I have to make a menu for a restaurant and I am kind of rookie at MySQL .. The menu has to be 8 columns wide ( 1column + 7 days ) and 8 rows in height . The problem is that it needs to be fully customisable , …

Member Avatar for syamsasi
0
175
Member Avatar for Motorider

If this should be posted in another area, such as, layout and design please let me know. A person who post's as Ardav on this board has gotten me this far. I have a relational database that pulls by brand and descriptive keyword. I wish to search and display on …

Member Avatar for dschuett
0
478
Member Avatar for DiMono

My web host has closed off port 25 to user code as it was being used by other users to send spam. Unfortunately, I have the following code which I use to validate email addresses: [code=php]function fixed_gethostbyname ($host) { // Try the lookup as normal... $ip = gethostbyname($host); // ...but …

Member Avatar for phpstan
0
904
Member Avatar for bben95

What I want to do is to rename a particalar file that is ftp'd to the server into a certain folder which I will call "raw" and have that file renamed to "image.jpg" in the folder "webcam" but the file uploaded by the webcam is different every time because the …

Member Avatar for phpstan
0
69
Member Avatar for mpc123

Really hope you can help with this one I have a problem whereby i cant get all my data (over 1million and different csv files) to map and import properly, so i thought it would be better to create new tables with all the information seperate (which i can do …

Member Avatar for phpstan
0
63
Member Avatar for kasbas91

Hello Daniweb.com, i hope you can help me, i am will create a dropdown navigation with php and mysql. I have some codes here, as you can look at. My dropdown navigation works. But it will not shows under the right navigations points. As you can se here on my …

Member Avatar for sourcebits
0
231
Member Avatar for slap01

need help with this one. I need to create a php code to see the items i've selected[CODE]<html> <body> <form method = "get" action = "new.php"> <center> RANDOM IMAGES<br> <table> <?php $images = array('2010 BMW M6.jpg','2011 BMW 750 Li.jpg','2009 BMW M5.jpg','2010 BMW 650 i.jpg','2010 BMW X6 ActiveHybrid.jpg','2010 BMW 550 I …

Member Avatar for sourcebits
0
239
Member Avatar for peck3277

Hi guys, I have on my server some images. I want people to be able to select the images they want to download through a form then hit download. Then the regular download prompt appears. Can anyone help me this or show me where to begin looking to achieve something …

Member Avatar for sourcebits
0
130
Member Avatar for fabzster

Hi Normally I would use the mysql_fetch_array command to get vallues from a DB array to print in seperate tables like below: [code=php] echo "<table width=\"100%\" border=\"1\"body bgcolor=\"#ffffff\"align=\"center\"text=\"#ffffff\">"; echo "<th>THUMBNAIL</th><th>NAME</th><th>SIZE</th><th>LOCATION</th>"; while($r = mysql_fetch_array($TagSearch)) { $Code = $r["Code"]; $Name = $r["Name"]; $Size = $r["Size"]; $ImgPath = $r["ImgPath"]; $PurchaseDate = $r["PurchaseDate"]; $StartCycle …

Member Avatar for muralibobby2015
0
132
Member Avatar for Awah Mohamed

hey guys what is wrong with my mysql_fetch_array here is my code : [CODE]<table width="400" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <td> <strong><h2>Welcome to Our Website</h2></strong> </td> </tr> </table> <br /> <? $mysql_host = "localhost"; $mysql_database = "members"; $tbl_name = "posts"; mysql_connect('localhost','admin','*******')or die("can not connnect to database"); mysql_select_db("$mysql_database")or die("sorry , can …

Member Avatar for raju_boini525
0
176
Member Avatar for sam023

i want to read Excel-sheet.. for that i am using PHPExcelReader.. when i use it on localhost.. its work fine but on my linux server it throw this error [code]Fatal error: Class 'ZipArchive' not found[/code] through google i came to know that i have to uncomment the zip.dll in PHP.ini …

Member Avatar for pssubash
0
462
Member Avatar for iPeterS

Hi, I'm kind'a new to AJAX, and have not a lot experience with JS, so this might be just a stupid beginners-error... I'm busy creating a PHP-website in which i'd like to implement some dynamic features (like adding comments tot photo's without having to reload, searching a user-DB, etc). I've …

Member Avatar for iPeterS
0
133
Member Avatar for dandixon

Hi Just wondering if someone could give me an idea of the best way around this problem. Ive been asked to come up with a solution for a site a little like the confused insurance comparison website. Basically i have a range of products that i need many companies to …

Member Avatar for dandixon
0
103
Member Avatar for mpc123

I have products in a data base with several features to compare, i could do with 2x drop down menus where they are populated by the database and then once selected a table is echoed with all the feature fields. The 2nd one will be so you can compare a …

Member Avatar for mpc123
0
71
Member Avatar for Acute
Member Avatar for Acute
0
112
Member Avatar for limboonlee

Hi, Can anyone guide me in the problem that I had encountered. I need to enable Sybase connection in php5. I tried searching the web, but what I got are quite old instructions. I am very new to this, and hope that someone can help me with this. Thanks BL

Member Avatar for ApocDen
0
69
Member Avatar for Awah Mohamed

hi guys , i wrote this code but when i try to open the page it says there is a syntax error on line 26 here is the code : [CODE]<table width="400" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <td> <strong><h2>Welcome to Our Website</h2></strong> </td> </tr> </table> <br /> <? $tbl_name = …

Member Avatar for Shanti C
0
117
Member Avatar for arungiri_10

how can i clear cookies from browser when ever i change any item from a drop down using javascript.....

Member Avatar for Daiva
0
85
Member Avatar for magunkey

Hi, I'm completely new to scripting and may as well be looking into a tin of beans. I'm working is CS4. I can create a contact form and set up the spry values and hidden fields etc. My host supports PHP but doesn't offer a mail script to I have …

Member Avatar for boorsekala
0
112
Member Avatar for shivaniaroraji

i have uploaded a group of files and the number of files uploaded is dynamic its value is recieved from form now the name of file type is the number of attachment e.g if 2 files are uploaded then name of 1st file in form will be 1 and name …

Member Avatar for boorsekala
0
88
Member Avatar for BlueCharge

Hi Everyone, I am currently trying to list a leaderboard for refferals. The table is set up with the following columns: id | refferer | user So obviously if someone reffers someone else they will be in a new row so there are multiple rows per person. I am trying …

Member Avatar for boorsekala
0
145

The End.