39,323 Topics
| |
here the code, [code=php]<?php $a = $_GET['Cors']; $b = $_GET['sem']; $c = $_GET['yrlvl']; mysql_connect("localhost", "root", "") or die ('Error'.mysqlerror()); mysql_select_db("sched"); $query="INSERT INTO sked (crs,sm,yrlvl) values ('".$a."','".$b."','".$c."')"; mysql_query($query) or die ('Error Cannnot Insert Records!'); ?> <?php the listbox is "sem", tnx[/code] | |
Hi everybody, I know I'm still a noob with php, but I feel so sad I couldn't manage such a simple (at least apparently) issue. Here's what I want to achieve, in general: - I'm reading XML files via simple_xml - while reading I would populate an array with some … | |
I have been finding it difficult to understand the error statement I recieved from my php file using the code below. I keep on getting this result: [COLOR="Red"]Parse error: syntax error, unexpected T_STRING, expecting '(' in /home/username/public_html/application_form.php on line 28[/COLOR] [code]<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD … | |
Hi everybody, I'm trying to read a Microsoft Word file, exported as microsoft xml, with PHP and simple_xml but I can't figure out how to do it exactly. Only things I managed to do are: [CODE] $tempXml = simplexml_load_file(file.xml); $xml = $tempXml->asXML(); print $xml; [/CODE] If I print before the … | |
HI frnds.. i need a help from u.. now i am going to do a ecommerce gifts website. here i need to change total site from english to french,italie...based on selected language from select box how can i do this..plz help me asap.. is there any software or any procedure … | |
Hi everyone i am having a problem with file upload ownership,i am running apache2 and the default ownership on httpd.conf is nobody nogroup. can someone help me with a peace of php code to change this to my own. | |
I am only beginner at this. I don't understand this fully, half of it was given to me and other half was my team writing it out. I can't work out how to create a form to edit a table. There is people.php file. Thats the file I want to … | |
I am starting to learn php and web designing but I don't know how to start so I need your help.Some tutorials and environment on which I will do programmig. Please help me. Email me at <EMAIL SNIPPED> Thanks | |
Hello, just recently I have experience the following error message: "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ptremail/public_html/admin/newmail.php on line 431" If anyone could help I would greatly appreciate it. I have pasted the entire code below. Thanks! [ICODE]<script language="javascript"> function clear(){ for (i=1;i<=240;i++){ document.getElementById(i).checked=false; … | |
++++Here is my code in to call the records from the list box that must be display in the datagrid. [code=php]<?php $a = $_GET[$query1]; $b = $_GET[$query2]; mysql_connect("localhost", "root", "") or die ('Error'.mysqlerror()); mysql_select_db("sched"); $query="INSERT INTO try (section,grp) values ('".$a."','".$b."')"; mysql_query($query) or die ('Error Cannnot Insert Records!'); ?> <?php // … | |
How to include something that is a directory before the file like: public_html/includes/sources/yt.php the file yt.php must include a file which is in: public_html/includes/fetch.php what will it be like? [ICODE]include_once(../file.php)[/ICODE] or?:'( | |
i am trying to send SMS to multiple users. SMS string is being generated in a loop and is sent with that loop. The code which does the actual sending is below [icode] $host = "http://alertbox.in/pushsms.php"; $fp = fsockopen("alertbox.in", 80); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { … | |
Hiiz is there a way that i can rewrite .htaccess from a php file? well actually i am using a cms for my site and whenever i make a new page i have to rewrite it in htaccess to make it work and SEO friendly. so i was wondering if … | |
Hello coders, I have a script that saves the values to database. I have this value [CODE]$uzuncuk = $cummle." is easy to use. We suggest you to install ".$cummle." to your computer and view the features of the product. For your safety, please have a decent antivirus installed, with updated … | |
Hi Im creating a list of tutorials on my website and I want to group them by the designer. Is it possible, to write a MySQL query which will function on a PHP website which prints the designer name once and then lists all of his tutorials underneath... in one … | |
I am not sure where to post this topic but I though this section is the right one. I have a large amount of data in a MS word file. Basically, I want to automate the posting of this data into my website through the normal form of posting topics … | |
Hi people... I have phpVideoSearch script, and want to add a feature, that if someone a specified page, to add to mysql a +1 value... Example this is the page: [CODE]watch.php?title=Riz+Khan&link=http://www.youtube.com/v/[B]xE0wOa5R6KY[/B][/CODE] i've set a code to create a id for this video like: [B]yt_xE0wOa5R6KY[/B] Can someone help me create a … | |
Hello, I want to design a page, where the user specifies a regular background color and a mouseover background color for a menu(ie ordered list of items) and these are dynamically applied to and shown in a preview section. Is it possible to do this and how to code it … | |
I have recently turned my site into a [URL=http://casino.finditjack.com]php site[/URL]. The only problem is I am trying to run more than one banner at the top. I don't want one underneathe the other. I would like them side by side and centered. Also, I have seen on some sites similar … | |
I am building a website where models and photographers can regsiter a profile. During registration I am wanting to allow a maximum of 6 images to be uploaded. However, I want to either append the file name with the name of the user, so the image stored on the server … | |
Hello, I want to design a page, where the user specifies a regular image and a mouseover image for a menu(ie ordered list of items) and these are dynamically applied to and shown in a preview section. Is it possible to do this and how to code it Thanks Arvind | |
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] | |
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>'; … | |
hi all, Can I use a variable from a .php file to give a value to an HTML FormMail form field thus:? please reply soon. Thanks -----------------------<URL SNIPPED> | |
hey is there any one who can help me in learning PHP and Mysql.... I have keen interest in it but I am not gettin someone who can really help me in it.... If you can then please reply me in <EMAIL SNIPPED> or in <EMAIL SNIPPED>.... | |
Hi, I'm trying to put together a PHP Ajax search against an mySQL database yet doesnt seem to work .. HELP! I had to resort to using frameset which I dont really want to do. what I'm trying to is perform a search against a mysql database and display the … | |
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 … | |
hi all new to php ..... how to protecte links on userpage when he login successfully. i want that out side user who not logged in ,can not see page after copy those links in browser.any example. thanx in advan...... | |
I would like to delop a search facility allowing the user to search other user by name, matching users should be listed, each matching user should have a hyperlink labelled"Make Friends", could anybody help me write an ajax code for this, many thanks | |
New PHP person here.. I am setting up an event registration page. The users must select from two arrival dates for hotel and flights. from my database, I am able to populate a dropdown with the two dates. [code] "SELECT DATE_FORMAT(firstarrival, '%d %M %Y') as newfirsta, DATE_FORMAT(secondarrival, '%d %M %Y') … |
The End.