39,323 Topics

Member Avatar for
Member Avatar for suika

Hi, I am using VB6 and phpMyAdmin connected by WAMPServer for my system. I am new in this language. Here's the code in my that seems to be wrong: Private Sub cmdsubmit_Click() Dim rs As ADODB.Recordset Dim strsql As String strsql = "insert into table1 ( surname, firstname, middlename, house, …

Member Avatar for hapticz
0
676
Member Avatar for cmps

I am coding a bbcode parser system. But I'm stuck with the nested tags. I would like to know if someone know the regex pattern to find for instance a [url] tag. Example: [url][url]Hello world .com[/url][/url]. I want the output for this to be <a>[url]Hello world .com[/url]</a> where [url]Hello world.com …

Member Avatar for cmps
0
264
Member Avatar for geneh23

Hey everyone, I have a question about how to dynamically change a link based on the current page. Sort of like the "breadcrumb" feature in wordpress. However I don't want it to read as follows: "index.php", "about-us.php"..ect. I want the link to be something like "Home" "About Us" ..ect. How …

Member Avatar for geneh23
0
252
Member Avatar for sara.alsaffah

hi iam working on building a website for maintaining PCs, and if anyone get in my site asking for help, if i try to answer him the answer will go to the werong person, so please any help <html> <head> <meta charset='utf-8'> </head> <body > </body> </html> <?php $dbhost = …

Member Avatar for pixelsoul
0
125
Member Avatar for wfray

The following PHP code works fine with javascript in Internet Explorer but fails in Firefox. Javascript is enabled in Firefox. It appears that when the button/icon is clicked, it enters the javascript function, but doesn't change the icon on the page. It also seems to return to the PHP code/page …

Member Avatar for wfray
0
336
Member Avatar for RikTelner

Resource: http://www.w3schools.com/php/php_xml_simplexml.asp I wasn't able to Google it since I don't know how to form question. So lets say the **xml** file is <?xml version="1.0" ?> <major> <point>Tower</point> </major> </xml> I can retrieve it by using **PHP**: <?php $file = simplexml_load_file("file.xml"); echo "Well, the point in on ". $file->point ."."; …

Member Avatar for RikTelner
0
109
Member Avatar for Naveed_3

here is my code <td align="right"><img src="images/follow.jpg" width="125" height="24" /><A HREF="http://www.facebook.com"><img src="images/facebook.jpg" width="23" height="24" /> I can not get directed to www.facebook.com but the link redirects it to www.mywebsitename.com/www.facebook.com. Please suggest the code Thank you.

Member Avatar for broj1
0
42
Member Avatar for Amr87

I have this array Array ( [0] => Array ( [post_category] => cat-1 ) [1] => Array ( [posts_count] => 33 ) [2] => Array ( [cells_num] => 1 ) [3] => Array ( [grid_num] => 0 ) [4] => Array ( [post_category] => cat-2 ) [5] => Array ( …

Member Avatar for Amr87
0
143
Member Avatar for Linddha

i have 3 table with different structure.. * article (content of only text) * download (content of text,file and image) * market (text, image) i want to show the search result from those table together but with different style (only text, or image, or both) but when i use UNION …

Member Avatar for urtrivedi
0
133
Member Avatar for ImZick

Hi i have input type text as date with a value of "2013-12-25" and i have a database with a field of month and a value of (December) and Year (2013). How can i convert the value of (2013-12-25) to a string of December and Year so i can use …

Member Avatar for broj1
0
322
Member Avatar for logicslab

Dear pals, I am searching a payment gateway which can do Credit/Debit/Internet banking in a single system. Do you know any thing in current existing system . Let me know and advise Thanks anes

Member Avatar for urtrivedi
0
453
Member Avatar for gsynr

Hi...All I am new to Ajax in PHP and trying the below code which works fine in Google Chrome but not works in IExplore.. Thanks in Advance <script language="javascript"> function showTeh(str) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, …

Member Avatar for gsynr
0
173
Member Avatar for daniel.conlinjr.1

if run to a delemia when im out of the hosue and not near a net work i want to be able to run on local, but i dont want to have to change the credientials is there a way i can have it try one and if it snt …

Member Avatar for ryantroop
0
93
Member Avatar for Salman Bukharii

<?php //////////////////////////// ////////////Kharcha Section //////////////////////////// $kid = 0; if(isset($_POST['kharcha_btn'])){ if(!empty( $_POST['karaya'] ) && !empty( $_POST['custom'] ) && !empty( $_POST['store-fees'] ) && !empty( $_POST['market-fees'] ) && !empty( $_POST['commision'] ) && !empty( $_POST['mazdoori'] ) && !empty( $_POST['wapsi-khracha'] ) && !empty( $_POST['munshiyana'] ) && !empty( $_POST['daktar'] ) && !empty( $_POST['kham-bekri'] ) && !empty( …

Member Avatar for broj1
0
138
Member Avatar for Tko_1

hello, when I echo $acfile; it shows up with the users name. when i try to insert the variable into the text field, the below code will show the value as blank. $HTML .= ' <input type="text" value="' . $acfile . '" id="contest-name" name="contest[name]" value="' . ( isset( $entry['name'] ) …

Member Avatar for broj1
0
98
Member Avatar for erum.saeed.75
Member Avatar for pelle12
0
169
Member Avatar for Kniggles

Hi All, Am trying to send the same e-mail to 2 addys with one click with out using the cc or bcc , this is the line i am syuck on $email = '$_REQUEST['email'],$_REQUEST['email2']' ; it works if i do not add the 2nd email request to i am guessing …

Member Avatar for Kniggles
0
192
Member Avatar for ismail123

I've created a View called 'Other member's which I only want to be displayed to logged in users. Is there a way where I can add this as a menu item next to 'View'and 'Edit'? how can i do this one for Drupal?

Member Avatar for diafol
0
52
Member Avatar for RikTelner

Hi there. I was kinda researching on how I could store data at best (in my opinion). I came on "CSV" files. Which looked great to use. I found out there are two functions that can operate file. So I keep Googling on how to use the syntax and how …

Member Avatar for cereal
0
279
Member Avatar for annyangel

dear all, i have a code in php class. through that code plz help me to solve my problem. in the below code why we use $this->message .. can't we use $message under constructor? plz pl ztell me thanks **myClass.php** <?php class myClass { public $message; public function __construct() { …

Member Avatar for pelle12
0
142
Member Avatar for RikTelner

I downloaded this: http://www.php.net/downloads.php The first one. I have read this: http://stackoverflow.com/questions/4301975/how-can-i-run-a-php-without-a-web-server So I thought answer on StackOverflow would be perfect. It looked so. But when I "untared" I saw no **php.exe** in the folder. How this can be?

Member Avatar for RikTelner
0
379
Member Avatar for varun gaba

hey i am facing a problem in sorting the post.I want that when a user click on **NAME** button then all post display by name.Then if user want to print the post by the latest date.Then it click on **DATE** button.How is it possible .what will i do in wordpress...

Member Avatar for patk570
0
165
Member Avatar for damle1

Hi I am New to PHP and my question looks stupid but i am stuck I want to search operation register to search by id and print out put of perticular id my first file has this code: <form action="printotreport2.php" method="POST" target="_blank"> <tr> <td>Ot Reg ID of Patient </td> <td> …

Member Avatar for Fr3aK
0
228
Member Avatar for tqmd1

Sir I am using these codes <div id="search"> <label for="filter">Filter</label> <input type="text" name="filter" value="" id="filter" /> </div> <br /> <table cellpadding="2" cellspacing="0" width="90%" id="resultTable"> <thead> <tr> <th> <strong>ID</strong> </th> <th> <strong>Name</strong> </th> <th> <strong>Mobile</strong> </th> <th> <strong>City</strong> </th> <th> <strong>Country</strong> </th> </tr> </thead> <tbody> <?php $sql = "SELECT * from …

Member Avatar for tqmd1
0
205
Member Avatar for aaliyahgorge

How to promate our face book brand pages ? Please give some useful tips that definetly hel or solv out my problem.

Member Avatar for Smiti
0
168
Member Avatar for kgizo

Hi I have data to upload to a Mysql database and I need to get the time taken for each row to be inserted so that I can pass that number through to a progress bar. I have alreay tried accomplishing this by determining the number of rows affetced by …

Member Avatar for diafol
0
390
Member Avatar for hriti

hey i want to use session id from index page to other page...bt when i use it by post method and click on the id text thn it will show the data and thn the id is being destroyed...how to keep the same id tehre...plz help me...

Member Avatar for minitauros
0
134
Member Avatar for jakx12

title says it all, basically what i cant figure out how to do, is to check if a certain session value is equal to nothing. ISSET does not work for the context in this situation. Please help, i know its basic i just cant grapple it. I have searched high …

Member Avatar for wadeshuler
0
4K
Member Avatar for mbarandao

Hello: I am wondering if there are any suggestions on how to pass variable to a div in the following manner: foreach (array_combine($playerState_array_clean_phase2, $membId_stripped_array_clean_phase2) as $playerState_array_clean_phase2 => $membId_stripped_array_clean_phase2) { echo" <a href=\"#_MultiDataProcessor?Pid=$membId_stripped_array_clean_phase2&Plname=$lname&Pfname=$fname\" title=\"$membId_stripped_array_clean_phase2\"><span style='font-size:1.5em'>$playerState_array_clean_phase2</span></a>"; } I want to get those variable in a div that looks like: <div class="iLayer" id="MultiDataProcessor" …

Member Avatar for iamthwee
0
3K
Member Avatar for tqmd1

Sir I am have these codes <?php session_start(); require_once("connect.php"); function clean($str) { $cstr=trim($str); $cstr=addslashes($str); $cstr=htmlspecialchars($str); return $cstr; } if(isset($_POST['login'])) { $myusername=clean($_POST['username']); $mypassword=clean($_POST['password']); if(empty($myusername) || !empty($mypassword)) { echo ('<script>alert("User name or password must not be empty")</script>'); header ("location: login.php"); exit; } else { $query="SELECT * FROM admin where username ='". $myusername …

Member Avatar for pritaeas
0
177

The End.