39,393 Topics

Member Avatar for
Member Avatar for narendra75
Member Avatar for Eve_1

Hello guys, I am a new learner in PHP and I am modifying a simple binary site. I am here to ask help how can I calculate my downline pairs or the total left and right side of some user. Here is the example of my tables in database: +++++++++++++++++++++++++++++++++ …

Member Avatar for diafol
0
877
Member Avatar for winbala5

In my new project I decided that I will use RedBean ORM system with Codeigniter PHP Framework. How can I get all records from table with simple relation? I know, that I can use R::exec or R::getAll queries but I want to make sure if there any other solution(s). TABLE …

Member Avatar for winbala5
0
257
Member Avatar for hiiiiii@

how to set the minvalue=today and max value=today+30 in javascript or how to do it in jquery what are the files i need to download .plz explain me i never used jquery before .

Member Avatar for hiiiiii@
0
275
Member Avatar for cfv1000

Hello I made some tries to get info from http://portal.onrc.ro The workflow is like: 1. Login => redirects to a page 2. Get the form (GET /ONRCPortalWeb/appmanager/myONRC/wicket?p=bpi.buletinBpiOnline) 3. Change the search type (POST /ONRCPortalWeb/appmanager/myONRC/wicket?_nfpb=true&_windowLabel=TestWicket03_1&_urlType=action&wlpTestWicket03_1__wu=%2FONRCPortalWeb%2Fappmanager%2FmyONRC%2Fwicket%2F%3Fwicket%3Ainterface%3D%3A1%3AformCautare%3A%3AIFormSubmitListener%3A%3A) => redirect to an interface (GET /ONRCPortalWeb/appmanager/myONRC/wicket/?wicket:interface=:<@interface_NO>:1:::) After changing the search type, i don't get redirected. …

0
152
Member Avatar for mehnihma

Hi Is there a way to set meta tags description and keywords in template file if no description or keywords are set? To chek if exsists and if not to set it? Thanks

Member Avatar for gamsoftware
0
187
Member Avatar for sigitas.darguzas

Hi all. sory but im beginner on web creating. I need create catalog. first page i need create item add form. after page i need create items catalog. all on mysql sory for bat English :) who can help me. i have login register index pages.

Member Avatar for Fernando_4
0
186
Member Avatar for stokie-rich

Hey guys I'm in the middle of connecting my website to my SQL database at the moment i have the following and I need some help if you guys dont mind config.php //Mysql Connect | mysql_connect("host","username","password"); //Below example to connect in localhost $a=mysql_connect("localhost","root",""); //select your database $b=mysql_select_db("database_name",$a); submit_form.php $firstname=$_POST['firstname']; $lastname=$_POST['lastname']; …

Member Avatar for stokie-rich
0
339
Member Avatar for Stavros_1

Hello my Boss recently gave me the assigment to print our entire Wiki in order to have a hard copy in case of emergency. I wouldn't have a problem if that was once but he insists on doing it weekly. I googled long enough to know that there is no …

Member Avatar for chrishea
0
172
Member Avatar for nileshbhanu

i have use this code on localhost to store user emailid on serverdatabase.but i got the following error XMLHttpRequest cannot load http://192.232.240.245/saveemail.php?redirect=http://localhost/digital/real/comparebuy.php. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. var emailID=$('#firstname').val(); $.ajax({ url:"http://192.232.240.245/saveemail.php?redirect="+document.URL, type:'post', data:{'emailID':emailID}, success:function(){ alert("ok"); } })

Member Avatar for nileshbhanu
0
17K
Member Avatar for Maideen

hi I am new in php. I could not insert the data into mysql table. and there is no error prompt Below is my code. Pls help me <?php include_once '../inc/header.php'; if (isset($_POST['submit']) && $_POST['submit'] != "" ) { $name = $_POST["name"]; $address = $_POST["address"]; $tel = $_POST["tel"]; $fax = …

Member Avatar for Maideen
0
138
Member Avatar for Tinnin
Member Avatar for nurul_1

Hello, I have a problem with my list down menu. My list down menu will display data from MySQL. It working very well. But, there are problems when I add if else statement. I want to display the list down menu based on the one field from MySQL. For example …

Member Avatar for nurul_1
0
152
Member Avatar for veedeoo

**Part One**: Learning the Basic Patterns **Disclaimer**: please pardon my spellogrammatico errors. I am not really a rough draft person. I type and write codes the split seconds as they crossed my mind, otherwise I will get extremely lazy and then will eventually hibernate like a tardigrade. I hope I …

Member Avatar for veedeoo
3
2K
Member Avatar for chris.immanuel

Hi I have a question with my code. I implemented drop down list populated from my oracle DB. So my question is, I need to populate the rest of the data into my <input type="number" min="currCutting" max="currQty" /> tag that pulled from the database according to the Head_mark selected from …

0
170
Member Avatar for mark103

Hi all, I'm working on my PHP to generating the xml output. I use simple_html_dom method to parsing the contains from my script called get-listing.php. Here is my PHP script: <?php ini_set('max_execution_time', 300); $errmsg_arr = array(); $errflag = false; $link; include ('simple_html_dom.php'); $base1 = "http://www.mysite.com/get-listing.php"; $html = file_get_html($base1); $countp = …

Member Avatar for veedeoo
0
160
Member Avatar for centenond

Hi, i working on a profile system, each users has their public profile and its directory is in http://website.com/username but the proble is that my root is gonna get a bit messy if all folders of each user is created ther, so i want to put all users folder in …

Member Avatar for centenond
0
244
Member Avatar for punith_1

I have a form which shows results if a proper roll number is entered... the results are fetched from http://results.vtu.ac.in and only the table is shown... now i want to add the data of the table to my database using php. Is there a way to do it..? for example …

Member Avatar for punith_1
0
438
Member Avatar for mpc123

So I have a single drop down menu populated from data base, now i want to get a bit snazzy and select from the first and from the selected then populate the 2nd drop down to select and then link to a url. Here is my code for first drop …

Member Avatar for diafol
0
151
Member Avatar for spluskhan

I try to limit my search result to 5-7 per page, but i got this error: *Parse error: syntax error, unexpected T_STRING * My Code is: <?Php require "config.php"; // All database details will be included here $page_name="page1.php"; // If you use this code with a different page ( or …

Member Avatar for spluskhan
0
233
Member Avatar for tundewoods

I am trying to code a mysql query that will enable me select and insert multiple vaules from one table to another table in the same mysql database. I want to automatically populate the values from my id,levy from my tb_residents into table 2 resident_payments uid , rate . I …

Member Avatar for pritaeas
0
376
Member Avatar for davy_yg

Hello, I am trying to access the admin page and there is error in the admin first page: http://www.indonusa.net.id/IndonusaCMS/admin/ How to fix it? admin/index.php <?php include ($include); ?> </div> </div> </body> </html> <? } ?> Here is like the last 20 lines of admin.

Member Avatar for davy_yg
0
814
Member Avatar for sjarun833

I have two tables in db named department (contains department) and sup (contains name of supervisors name). now my query is: By selecting the department in select menu the next select field sup should automatically get fetched with names. how can i do it with php using onchange javascript menu.. …

Member Avatar for Szabi Zsoldos
0
198
Member Avatar for L-D

Hi, Entering website first time. Script says Admin then admin. Like so Admin Id: Admin Password: admin But get Error. Wrong Admin Login. Plus these errors top of page: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adven735/public_html/config.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to …

Member Avatar for titos97
0
234
Member Avatar for raminshahab

I can't seem to get a response from my query method. I have a database connection from method ping_server and use mysqli as connector. Can anyone help me figure out why I cannot print results from mysqli_fetch_array. dbclass.php class db { private $connection; private $selectdb; private $lastQuery; private $config; function …

Member Avatar for raminshahab
0
356
Member Avatar for nitin1

I am new to parsers. I want to extract/parse the HTML documents. I have heard of this HTML DOM using PHP. Can ypu tell me some links or some basic introduction to start with? How can I use it to extract info from HTML document? Thanks in advance.

Member Avatar for veedeoo
0
256
Member Avatar for titos97

On the Ad there is 2 security groups 1. SG-warehouse1 users : test1 2. SG-warehouse2 users : test2 These 2 Security groups belogs to one distubution list : DL-warehouse what i am trying to do instead of searching 2 secuirty gorups i like to check if the user links to …

0
155
Member Avatar for asma.fayaz.77

Undefined index: id line 7 help me please email me asap at asmafayaz@hotmail.co.uk <?php // Connect to database server $conn = mysqli_connect("mysql5", "fet12014211", "Milkshake12","fet12014211"); // Show a particular value. $id = $_GET['id']; // SQL query $strSQL = "SELECT * FROM countries where iso_alpha3='" . $id . "'"; // Execute the …

Member Avatar for titos97
0
858
Member Avatar for Sankar_1

<?php $to='gsankar5181@gmail.com'; $message='hai'; $sen=mail($to, 'My Subject', $message); if($sen) echo "yes"; else echo "no"; ?> 14-04-04 14:35:44 : Message is missing sender's address 14-04-04 14:39:37 : Message is missing sender's address 14-04-04 14:39:39 : Message is missing sender's address

Member Avatar for titos97
0
665
Member Avatar for saadi06

I have one certificate in the pfx format and I am trying to sign s/mime email with it using openssl but I am getting this error. Warning: openssl_pkcs7_sign(): error getting private key. Here is my code that I am trying to sign the file $privkey = 'file://'.realpath('email.pfx'); openssl_pkcs7_sign("msg.txt", "signed.txt", $signcert,array($privkey, …

0
105

The End.