39,388 Topics

Member Avatar for
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
541
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
157
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
367
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
302
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
298
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
202
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
145
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
Member Avatar for jacksantho

Hi, This was am using in my code: [CODE]echo "<table>"; echo "<tr><td><b>Please, confirm or reject: </b></td><td><a href='thanks.php'>Confirm</a></td>"; echo "<td><a href='reject.php?name=$name&officerid=$pofficerid&officername=$pofficername&txt1=$ss'>Reject</a></td></tr>"; echo "</table>"; [/CODE] On clicking [B]Reject[/B] link, my all values(name,offiderid,officername,txt1) that am passing through hyperlink tag getting visible in the URL. I don't need the user, to see my passing …

Member Avatar for fusedreality
0
262
Member Avatar for dw_user

I am talking about Social engine 4(SE4) ([url]http://www.socialengine.net/[/url]) which is written in Zend. I can go up to the IndexAction of IndexConroller in Core Module. But then I am at a loss. Which models are used there to build the homepage? I think when I can learn about the models …

Member Avatar for dw_user
0
260
Member Avatar for anusanker

Hi, I am working with normal curl login function but it doesn't work for this particular site, please see this login page and suggest any solution for me. [url]http://nbk2.autodata.no/default.aspx?11=4&10=0006117171746465004012&14=12&12=1003[/url]

Member Avatar for anusanker
0
348
Member Avatar for vampshay

i have this code to create a contact directory and my instructor wants me to create a function for database connect to minimize the coding and if an instance to change the server it is easy to change. <?php if(isset ($_POST ["add"])){ $name = $_POST['name']; $address = $_POST['address']; $email = …

Member Avatar for vibhaJ
0
114
Member Avatar for kishan4u1

i am building a simple online portal and i have done all the login ,registration pages and all the fields successfully get uploaded in the database but now all i got is a product display page and an shopping cart 1. i want help is how do i pass the …

Member Avatar for mulkave
0
291
Member Avatar for rom.

After updating mysql from 4 to 5, I'm now getting this error: [CODE]Invalid SQL: SELECT HRS.Hrs AS Val, HRS.Job_ID, TS.Staff_ID, Staff.First_name, Staff.Last_name FROM Timesheets AS TS, Timesheet_hrs AS HRS LEFT OUTER JOIN Staff ON (TS.Staff_ID=Staff.ID) WHERE TS.ID=HRS.Timesheet_ID ORDER BY Staff.First_name, Staff.Last_name, HRS.Job_ID DESC: 1054 (Unknown column 'TS.Staff_ID' in 'on clause')[/CODE] …

Member Avatar for rom.
0
292

The End.