39,323 Topics

Member Avatar for
Member Avatar for jakizak

Hi everyone, Having difficulty comparing two strings (Inside variables) in php. I have tried several methods, one being strcmp but I think I was doing that incorrectly, and now the simple [B]===[/B] / [B]==[/B] comparison methods. Here is the code: [CODE] <?php if ($pubinfo_username === $currentuser) { echo "<img alt=\"Remove …

Member Avatar for diafol
0
172
Member Avatar for joedy

In my index.php file I have this $answer = $a + $b; echo '<iframe src="ianswer.php".....etc. etc. ianswer.php contains only the following line echo $answer; But the ianswer.php doesn't know what $answer is. If I change that line to echo "RUBBISH"; The word RUBBISH appears in the iframe. How do I …

Member Avatar for joedy
0
171
Member Avatar for Paaat

Hey, I'm having a problem executing the following code: [CODE] <?php session_start(); require('connect.php'); if($_POST['username'])){ $name=$_POST['username']; $checkUsername = mysql_query("select * from users where UserName='$name'"); if(mysql_num_rows($checkUsername){ echo 'Logged in successfully!'; $_SESSION['username'] = $name; } else{ echo 'The username or password you've entered is not valid!'; } } ?> [/CODE]

Member Avatar for Paaat
0
88
Member Avatar for kaizokupuffball

Hi! I got this image uploading script that will upload the user's choosen picture, and save it in the user's folder with the users nickname. Now, when i got the picture uploaded i want to resize it to 3 exact sizes (3 versions of the image). 240x250 and 2 other …

Member Avatar for kaizokupuffball
0
393
Member Avatar for mary_forum

$pimg="../pimages/".$_FILES[p_img][name]; move_uploaded_file($_FILES[p_img][tmp_name],$pimg); image does not move into image folder

Member Avatar for diafol
0
1K
Member Avatar for zjbarden

Three files. A simple contact form. I am trying to get checkboxes & dropdowns to work, but so far, only (1) dropdown works, and after going at it for hours, have found no error in the <form> itself. Not a PHP genius, so maybe it has something to do with …

Member Avatar for ko ko
0
269
Member Avatar for almr3b

I Keep Getting This Error Please Help? Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\Bot.php on line 897 <?php declare(ticks=1); set_time_limit(0);//DO NOT REMOVE THIS IF YOU ARE GOING TO USE XAMPP!!!!! class XatBot { var $creator = array('name'=>'MisterBlaze', 'id'=>'370058127'); private $roomID = "152905091"; //152905091 private $botName = "BlazeBOT"; var $botID …

Member Avatar for diafol
0
539
Member Avatar for rakwel10

Pls help me with this... [CODE] //FINANCE.PHP <form id="frmpay" name="frmpay" method="POST" action="finance_payment.php"> <input type="radio" name="seltour[]" value="<?php echo $tour_code; ?>"> <input type="submit" value="input" name="submit" /> </form> [/CODE] once submitted.. [CODE] //FINANCE_PAYMENT.PHP if(isset($_POST['submit'])) { for($i=0;$i<$numrow;$i++){ $code = [B]$_POST['seltour'][/B][$i]; $query = "SELECT tour_amount, tour_name FROM `tbl_tour_profile` WHERE tour_code = '[B]$code[/B]'"; $result = mysql_query($query); …

Member Avatar for ko ko
0
127
Member Avatar for Venugopal Ravi

Hi, I am using CKEditor (FCK) and I want to filter certain things from being used by users like (.com, <, >) symbols and words. Is there any plugin available for this or in which way i can do this? any help please.. thanks rave

Member Avatar for diafol
0
156
Member Avatar for almr3b

Hello Everyone I Get The Code Error is it says [COLOR="Red"]Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\Bot.php on line 904[/COLOR] Please Help me? My PHP Script is below. This Is My PHP Script. [ICODE] case '!autokick': if(!$this->botOwner($this->packet['m']['u'],2)) {$this->sendMessage("You're not allowed to use this!"); return;} dMessage('Removing autokick!',$data['id']); $word = explode(' …

Member Avatar for pritaeas
0
223
Member Avatar for azegurb

hi i have read PHP pro patterns and desing book. and i read this chapter but i didnt understand. [CODE]abstract class DomainObject { private $group; public function __construct() { $this->group = static::getGroup(); } public static function create() { return new static(); } static function getGroup() { return "default"; } } …

0
69
Member Avatar for mary_forum
Member Avatar for jacksantho

Hi, I wants to display my results on the browser. Table1 Table2 sno name sno name 1 sss 3 kkk 2 aaa 4 xxx I need the tables on both side. How can i do this ? Thanks

Member Avatar for jacksantho
0
2K
Member Avatar for joseph_bodagh

Hi How are you guys Im new learner in php and im coding a small script for orders and customers and i hve problem lets say I have table with name of : Orders id : int(11) - AUTO_INCREMENT pizza : text - not null and order form is like …

Member Avatar for cgull
0
184
Member Avatar for rouse

I am writing some learning code to convert an XML file to a JavaScript array. So far I can convert from XML to JSON with this: [code] <?php $xmlStr = simplexml_load_file("xml/galleryXML.xml"); $jsonStr = json_encode($xmlStr); ?> [/code] I don't know and can't find a way to convert to a JavaScript array …

Member Avatar for rouse
0
347
Member Avatar for asif49

I'm trying to make my website compatible with internet explorer. I've been thinking of making it compatible for IE and then Firefox and then I'll be good. It works for google chrome but there's some very very annoying little things which the new IE does. The images look much bigger …

Member Avatar for asif49
0
120
Member Avatar for IT seeker

hope u will be fine .. i need help on shopping cart n money transaction in boutique website.. but i have no idea how to set up the cart? i thought to use alert pay .. but no idea how it will be use in my site so guide me

Member Avatar for MagicMedia
0
82
Member Avatar for Smurf_UK

Hi All, I am new to the site, and also to PHP and MySQL, so please go easy on me for asking what may be an obvious question for many. I am wanting to store the data from a sign-up form in a MySQL DB, but I cannot get my …

Member Avatar for Morta
0
3K
Member Avatar for sarithak

Hi team, i write some logic in my page. here i am using this $x is getting by POST method... Logic :[CODE] if($x>10) { $amount=$amount+400; } [/CODE] It is working fine. Hare the problem is after entered into the page...incase user refresh the page that logic repeated. i dont want …

Member Avatar for sarithak
0
139
Member Avatar for andyliany

Somebody can help me? I want to edit my register page, i want to add new value to my database. Like Bank name, Phone number, address and other, below here is my existing register.php. [CODE]<?php function _generate_user_id(){ $istnieje = false; do{ $losuj = mt_rand(100,999).mt_rand(0,9).mt_rand(0,9).mt_rand(100,999).mt_rand(0,9); $result = mysql_query("SELECT `id` FROM `xeon_users` …

Member Avatar for cereal
0
298
Member Avatar for jacksantho

Hi, Am having only one check box. I wants to pass checkbox values through hyperlink. I needs to know, either it is an checked checkbox or an unchecked uncheckbox. Based upon checked checkbox, i carry out my remaining coding part. [CODE]echo "<br>"; echo "<table>"; echo "<tr><td colspan='2'><font color='blue'><b>download PDF document:</b></td></tr>"; …

Member Avatar for jacksantho
0
197
Member Avatar for asif49

So for the admin page of where "reviews" can be written and posted, I've created a delete article function but it's not one I wanted. The one I have now works the following way... A while loop prints out the specified information with their associated IDs. After they are all …

Member Avatar for Zagga
0
353
Member Avatar for jeffc418

Hello! I have been doing my reading on log-in/username system security and I want to post what I have done! I still feel like my system is lacking in security, so I'd love any and all input! I've completely obscured the MySQL table values to my liking (A LOT of …

Member Avatar for bjlotus
0
2K
Member Avatar for zack654

I would like to sharpen my PHP skills on coding web sites. Is there some web site templates which are ready for coding so I can make them functional without touching HTML or CSS? I am not very good with HTML and CSS, I find free templates like this all …

Member Avatar for zack654
0
297
Member Avatar for Paaat

Hello, I've been trying to solve this problem that has faced me many times on my website.. I have written a forum program. It works perfectly. However, sometimes a user tells me that he tried to post his comment, but his comment didn't appear on the page, and that he …

Member Avatar for Paaat
0
154
Member Avatar for soomro_moon

value is not showing in the combo box <? $cn=mysql_connect("localhost","root"); mysql_select_db("test",$cn); // Make a MySQL Connection // Construct our join query $query = "SELECT one.name,two.address FROM one,two where one.name=two.name"; $result = mysql_query($query) or die(mysql_error()); echo " name "."address"; echo "<br />"; while ($row=mysql_fetch_array($result)){ echo $row['name']. " - ".$row['address']; echo "<br …

Member Avatar for Rhamises
0
201
Member Avatar for terrymold

I have a fairly simple PHP page which is giving me some bother, and I'm hoping someone here can point me in the right direction to correct it. In the HEAD section there is a bit of CSS... [CODE].messText { position: absolute; width: 600px; top: 250px; margin: 0 auto; font-family: …

Member Avatar for ko ko
0
142
Member Avatar for sv3tli0

Hello. Can some one offer me a check file permissions function for PHP to work in both Linux and Windows based systems? I am able to make a such check for linux but for windows I got wrong values (it doesn't show the true permissions). It must work on both …

Member Avatar for ko ko
0
103
Member Avatar for nikki05

Hello, Help please! I am using XAMPP for my website. My website is almost ready now. It is working fine in localhost. Now I would like to make it online (public). And, this is my main OBSTACLE. I have already bought a domain. I also configured the Port Forwarding in …

Member Avatar for nikki05
0
7K
Member Avatar for joeidee

Id Product Quantity Amount Date 1 Shoe 4 200 2011-08-27 2 Shoe 2 100 2011-08-28 3 Cap 2 50 2011-08-28 4 Shirt 1 300 2011-08-28 5 Cap 1 25 2011-08-29 6 Shoe 1 50 2011-08-29 7 Shirt 2 600 2011-08-29 This my database structure. what I want to know is …

Member Avatar for joeidee
0
81

The End.