No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
HI, I have the below php code that i am attempting to use to search the database for a value that has been inputted in the form. This connects to the database and works fine but brings back no results. I found the following error: Warning: mysqli_num_rows() expects parameter 1 … |
|
Re:
[PHP] <? include("$include_path/FastTemplate.php3"); $tpl = new FastTemplate("templates"); $tpl->no_strict(); [/PHP] can someone help me!! plz |
|
Re:
[code=php]<?php $con=mysql_connect("localhost","root",""); if(!$con) { die('Could not connect:'.mysql_error()); } mysql_select_db(customer1,$con) $sql1="INSERT INTO details(companyname,companyadd,comstate,telephone,fax,email,fname,lname,nic,mobile,username,password);VALUES('$_POST[coname]','$_POST[coadd]','$_POST[cost]','$_POST[tel]','$_POST[fax]','$_POST[mail]','$_POST[fname]','$_POST[lname]','$_POST[nic]','$_POST[mob]','$_POST[user]','$_POST[password]')"; if(!mysql_query($sql1,$con)) { die('Error:'.mysql_error()); } echo"1 record added"; mysql_close($con) ?>[/code] |
|
Re:
Hi, In my $str="DAniweb it DISCUSSION Community" I want "Each First" character is capital and rest of lower case " If String is $str="[COLOR="Red"]DAniweb it DISCUSSION Community[/COLOR]" Ans-> [COLOR="Green"]Daniweb It Discussion Community[/COLOR] How to do this?? |
|
Re:
Hi! I am creating a simple website, and I would like to have an option on one page to print the contents of the page by clicking a button, or seeing it in PDF format by clicking another. What is the simplest way of doing this? Mladen |
|
Re:
I have been working on flatfile and directory system in PHP and not that I have got the script working I want to make it more secure. What I have is one directory with sub-directorys insided them and insided the subdirectorys are about 20 files each. Forexample: [code]directory/ sub1/ sub2/[/code] … |
|
Re:
i hav a problem m new to php nd i started with writin my first page but whenever i start my browser i see the complete code and nt the output i need i wrote [code=php]<html> <title>my php page</title> <body> <?php echo "hello there!"; ?> </body> </html>[/code] the output is … |
|
Re:
Hey Guys, I just set up a contact form on my site and used an image as the "send" button. When I get an email from the form, I get x= some number and y= some number. So the form is sending the coordinates where the user clicks on the … |
|
Re:
Can someone tell me where is the problem ? [CODE]<script type="text/javascript" src="http://www.forumistan.net/analiz/analiz.php?site=http://www.forumistan.net"></script>[/CODE] analiz.php [CODE] <? Header("content-type: application/x-javascript"); ob_start(); include 'all.php'; ob_end_clean(); echo "document.write(\"<div class=\"txt\">Pagerank: $rank->pagerank <br>\")"; echo "document.write(\"Alexa: $rank->alexa_rank</div>\")"; ?>[/CODE] |
|
Re:
hallo, i ve created a dynamic form. A user can select The number of fields he d like to fill in (test creation) [code=php]echo '<form method="post" action="createxml.php">'; for ($i =1; $i <=$number; $i+=1){ // THE $NUMBER CONTAINS //VALUE -ok- echo '<fieldset width ="20%">'; echo '<legend class = "login">WRITE A QUESTION</legend>'; … |
|
Re:
I'm trying to use some dynamic path names for an image upload page. In a tutorial they had something like this: [code] <?PHP $directory_self = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']); // this echoes something like " /foldername/ " presumbing that the php file is set inside that folder in the root. $uploadsDirectory … |