396 Posted Topics

Member Avatar for veledrom

Hi, This is actual link [inlinecode]http://www.xyz.com/list.php?id=1[/inlinecode] How can i show it like this [inlinecode]http://www.xyz.com/?id=1[/inlinecode] in the address bar? Thanks

Member Avatar for diafol
0
61
Member Avatar for veledrom

Hi, I want to run a script automatically in a php page. (e.g. everyday 10am). How can i do it? Except cron job. Thanks

Member Avatar for Josh Connerty
0
123
Member Avatar for veledrom

Hi, I have 5.1 creative speaker set. How can i use it with my laptop. My laptop has only one speaker out. I need more for 5.1 set. Thanks

0
67
Member Avatar for veledrom

Hi, When a web browser window is opened, only the menu options should be visible to users. I don't want other toolbars. Also, is it possible to blocking users add toolbar from the menu that will be visible to them. IE and Firefox please. Thanks in advance

Member Avatar for almostbob
0
106
Member Avatar for veledrom

Hi, PO-1-09/09 is a data stored in varchar column. When i do [inlinecode]select * from table myid='PO-1-09/09'[/inlinecode], it doesn't return any value. If i change PO-1-09/09 to 5, and search for it, 5 returned related data. Why PO-1-09/09 doesn't work? Thanks

Member Avatar for urtrivedi
0
72
Member Avatar for veledrom

Hi, I have 3 tables and want 3rd table to appear at the bottom of the page when it is printed off because it will be footer.How can i do it? Thanks [code] <table> <tr> <td>Table 1</td> </tr> </table> <br /> <table> <tr> <td>Table 2</td> </tr> </table> <br /> <table> …

Member Avatar for Airshow
0
116
Member Avatar for veledrom

Hi, I just wonder if this is possible. When i print a page from my localhost or web, the html link information is printed at the end of the page. How can disable it? Thanks

Member Avatar for veledrom
0
72
Member Avatar for veledrom

Hi, I don't know what i have done but i want to recover code below. It is very long, i give you little part of it. Any idea how to recover it. Thanks [code] &amp;lt;p&amp;gt;&amp;lt;span class=&amp;quot;caps&amp;quot;&amp;gt;APRIL&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;&amp;lt;span class=&amp;quot;caps&amp;quot;&amp;gt;SAT&amp;lt;/span&amp;gt; 18&amp;lt;br&amp;gt; &amp;lt;span class=&amp;quot;caps&amp;quot;&amp;gt;OPEN TUTORIAL &amp;lt;/span&amp;gt;(10.00- 4.00)&amp;lt;br&amp;gt; This day will include a session …

Member Avatar for almostbob
0
120
Member Avatar for veledrom

Hi, Does [inlinecode]require_once("myclass.class");[/inlinecode] adds overhead to php page if it is not necessarly needed for current page? I ask this because i was thinking to add all classes in header.php and call header.php in every other pages even some classes are not needed for some pages. Thanks

Member Avatar for veledrom
0
63
Member Avatar for veledrom

Hi, What is wrong with this sql? It fails in php but doesn't fail in phpmyadmin! Thanks [code] <?php $connection=mysql_connect("localhost", "root", ""); if(!$connection) { die('Could not connect: ' . mysql_error()); } else { mysql_select_db("test", $connection) or die('Could not select the table.'); $sql="BEGIN;\n"; $sql.="SET AUTOCOMMIT=0;\n"; $sql.="INSERT INTO table1 (id, name) values …

Member Avatar for veledrom
0
157
Member Avatar for veledrom

Hi, Let's say, I have created a webside without thinking about any CMS program. Can i later use a CMS to manipulate my website? Or, should i have created website with CMS at the begining? Thanks

Member Avatar for mauconline
0
89
Member Avatar for veledrom

Hi, This T-SQL works fine but i just want to make sure that it is also reliable. Do you think this is reliable? Thanks [code] CREATE DEFINER=`root`@`localhost` PROCEDURE `addNewUser`(IN username_in varchar(15), password_in varchar(40), name_in varchar(25), surname_in varchar(25), dob_in date, address_in varchar(50), postcode_in varchar(8), city_in varchar(20), phone_in varchar(14), email_in varchar(50)) BEGIN …

0
48
Member Avatar for veledrom

Hi, Let's say i have a very busy web site and runing this code. Would it produce results of someone else's selection rather than my selection($name)? For example: my code send "john" to function return results. What happens if x person sends "Dean" at same time as mine. Do i …

Member Avatar for ShawnCplus
0
92
Member Avatar for veledrom

Hi, I need an effect like in this linkhttp://markgrantcables.co.uk/shop/ I simply put a "?" mark next to a textarea. When mouse is over "?" then a little explanation box will appear. Thanks

Member Avatar for veledrom
0
116
Member Avatar for veledrom

Hi, I am thinking to create an e-commerce web site. I just want to find out about the logic behid processing the order that have more than one order. How do we place an order? Stock check and update before and after placing order. I am asking this question because, …

0
60
Member Avatar for veledrom

Hi, I have created an pure OOP e-commerce web site with PHP. I want to make sure that my class files cannot be seen or downloaded by anyone. What do i do now? Other files html, css, js can be seen, no problem. My hosting company provides me a folder …

Member Avatar for HITMANOF44th
0
63
Member Avatar for veledrom

Hi, I use PHP and have a question. As cookies and sessions have their pros and cons, I don’t know which one is better for shopping card. If I use cookie then user my block it. Therefore, my e-commerce web site won’t serve the purposes. If I use session then …

Member Avatar for almostbob
0
97
Member Avatar for veledrom

Hi, I get an error when i try to echo my cookie. [inlinecode]Notice: unserialize() [function.unserialize]: Error at offset 0 of 12 bytes in...[/inlinecode] I cannot find a solution. Help please. Thanks [code] class MyCookie { public function __construct($cookieName, $sessionId) { if(! isset($_COOKIE[$cookieName])) { $cookieValue["SESSION"] = $sessionId; setcookie($cookieName, $cookieValue, time()+60*60*24*7); } …

Member Avatar for veledrom
0
62
Member Avatar for veledrom

Hi, As i am new in OOP, i just want to ask those who are experts in OOP that can this my example be considered as OOP example? Thanks [code] dbprocess.class.php <?php class DBprocess { private $dbconn; private $db; public function __construct($host, $user, $username, $password, $database) { $this->dbconn=mysql_connect($host, $user, $username, …

Member Avatar for ShawnCplus
0
97
Member Avatar for veledrom

Hi, I cannot find the solution for this example. It is to do with Static declerations. Help please. Error : "Fatal error: Non-static method ExecuteSql::executeSql() cannot be called statically, assuming $this from incompatible context " Thanks [code] <?php class DBconnection { private $host="localhost"; private $user="root"; private $username=null; private $password=null; private …

Member Avatar for veledrom
0
373
Member Avatar for veledrom

Hi, When i open Favorites left frame become narrow and some content disappaer. How can i stable it. Thanks [code] <frameset rows="20%,60%,20%" border="0"> <frame src="top.html" name="top"> <frameset cols="20%,40%,40%"> <frame src="left.html" name="left" noresize="noresize" scrolling="no"> <frame src="giris.html" name="middle"> <frame src="right.html" name="right"> </frameset> <frame src="bottom.html" name="bottom"> </frameset> [/code]

Member Avatar for almostbob
0
129
Member Avatar for veledrom

Hi, Let's say my root: [url]http://localhost/htaccess/index.php[/url] I have dbconnection.php, css files, js files, inc files, class files, functions.php and image files all stored in [inlinecode]http://localhost/htaccess/secured/[/inlinecode] directory. I don't want anyone access these files. How can i do it? I tried .htaccess but nothing worked apart from directory browsing (IgnoreIndex */*). …

Member Avatar for somedude3488
0
88
Member Avatar for veledrom

I return result like this. [code] $xmlDoc=simplexml_load_file("myXML.xml"); $search = $xmlDoc->xpath("/customer[@id='$ID']"); foreach ($search as $key => $customer) { echo $id = $customer["id"]; } [/code] Is there any chance to DELETE or UPDATE above particular record without creating whole XML file again like we do in database? Thanks

Member Avatar for fpmurphy
0
64
Member Avatar for veledrom

Hi, This is my array and i want to make [2] => 1 to [2] => 4 How do i do it? Thanks [code] Array ( [SESSION] => hs6f5ul7q9dic13nv7crikf0p2 [USER] => Guest [5] => 3 [1] => 3 [2] => 1 [7] => 1 ) [/code] This code doesn't do …

Member Avatar for veledrom
0
63
Member Avatar for veledrom

Hi, I have a page called func.php which has several amount of function only. How can i block someone accessing func.php via typing URL/..../func.php ? It should kick the person out from this page? I accecc func.php with calling particular functions stored in it. I was wondering if there is …

Member Avatar for jakesee
0
76
Member Avatar for veledrom

Hi, Is there any way of using textarea in Firefox like we use in IE because, lines are not broken down into rows. Thanks

Member Avatar for veledrom
0
41
Member Avatar for veledrom

Hi, When try to validate the textbox generated by innerHTML, it returns "Undefined" for the textbox. Therefore, i cannot validate it. Thanks [code] <html> <head> <script type="text/javascript"> function validateForm () { if (document.form1.textContactname.value.length == 0) { alert ("ERROR"); return false; } return true; } function createInvoice () { document.getElementById("hiddenPayment").innerHTML = …

Member Avatar for veledrom
0
131
Member Avatar for veledrom

Hi, Code below generates this error [inlinecode]Warning: Missing argument 1, 2, 3for MyWebpage::pageElements(): Class_for_HTML.class on line 18 )[/inlinecode] but i cannot solve the problem. Thanks [code] <?php class MyWebpage { var $header = "<html>\n<head>\n"; var $title; var $keywords; var $content; var $footer = "</body></html>"; function generatePage() { echo $this->header; $this->pageElements(); …

Member Avatar for veledrom
0
52
Member Avatar for veledrom

Hi, I want to send a XML file to my website where the XML is read and information passed to MySQL database. I know this is done but i don't know how to do it. Something related to header etc? Any idea? Thanks

Member Avatar for rm_daniweb
0
267
Member Avatar for veledrom

Hi, Is there anyone who has XML pagination example. I use simple_xml in PHP to read it. thanks

Member Avatar for xml_looser
0
59
Member Avatar for veledrom

Hi, Javascript doesn't work if i do this way. How can i solve it? Is that because i echo it. Thanks [code] <?php echo "<html><head> <link type=\"text/css\" rel=\"stylesheet\" href=\"cssFile.css\" /> <script type=\"text/javascript\" src=\"javascriptFile.js\"></script> </head><body>"; ?> <form name="form" action="added.php" method="post" onsubmit="return validateForm();" style="float:left"> <input type="text" name="ID" size="20" tabindex="1" /> <input type="submit" …

Member Avatar for veledrom
0
148
Member Avatar for veledrom

Hi, I have a loading bar gif to be displayed initially, until main image (1MB) is loaded in my web page. How can i do it? Thanks

Member Avatar for veledrom
0
72
Member Avatar for veledrom

Hi, How do give a permission to a user to read and write all the subdirectories and sub files in a folder? Code below gives permission on project_1 folder only. I need files and directories stored in project_1 as well. Thanks [code] sudo chmod 777 userme /var/www/project_1/ sudo chown -hR …

Member Avatar for veledrom
0
150
Member Avatar for veledrom
Member Avatar for veledrom

Hi, I use onmouseover and out for <td> or <div> to change either backgroung image or color. However, onmouseover and out are not validated for HTML. w3scholls HTML validator doesn't validate them. How can i solve this problem? Thanks

Member Avatar for essential
0
168
Member Avatar for veledrom

Hi, I want to add this line [inlinecode]<user id="5" ready="No" collected="No" />[/inlinecode]in my XML document. How can i do it? After sorting this, I'll update and delete selected nodes later. I you can also helping me doing all, i would be very grateful. Javascript please. Thanks [code] <users> <user id="1" …

Member Avatar for GDICommander
0
75
Member Avatar for veledrom

Hi, I want use Drupal to develop an example web site. I have installed Drupal and done database things. It is ready to go. But how do i create pages. I think it is not same as what we do in Dreamveawer. Thanks

Member Avatar for ithelp
0
48
Member Avatar for veledrom

I think, we would need cURL only for cross domain applications. I mean if I use pages stored under same domain then I should simply use POST rather than cURL. Is this right? Also, For example: how do i check if username=1 and password=2 in check.php page and return TRUE …

Member Avatar for theighost
0
84
Member Avatar for veledrom

Hi, The examples in w3 page don't work. I do copy and paste and create exactly same database but nothing changes. It returns "Error on Page" error. [url]http://www.w3schools.com/php/php_ajax_database.asp[/url] [url]http://www.w3schools.com/php/php_ajax_responsexml.asp[/url] [url]http://www.w3schools.com/php/php_ajax_livesearch.asp[/url]

Member Avatar for nav33n
0
166
Member Avatar for veledrom

Hi, Let's say i have a form in [url]www.111.com/form.html[/url] where user can submit name and surname with POST action. Can we send the POST data (name and surname) from [url]www.111.com/form.html[/url] to [url]www.222.com/process.php[/url] to be processed? Thanks

Member Avatar for veledrom
0
1K
Member Avatar for veledrom

Hi, I have ubuntu 8 and want to set a crone job. When ubuntu starts, i login as; username: ubuntu password: ubuntu I open terminal an type these: [code] root@ubuntu:/home/ubuntu# crontab -e */10 * * * * /var/www/project/index.php [/code] (to run index.php every 10 seconds) and save it and wait. …

Member Avatar for veledrom
0
101
Member Avatar for veledrom

Hi, Code below doesn't add new innerHTML into table cell. When it adds it should run other (slideOther.js) file but, doesn't work. Thanks [code] <html> <head> <script type="text/javascript"> function startSlide() { el=document.getElementById('productsBigCell'); el.innerHTML='<script>var slide1foldername="";</script><script src="slideOther.js" type="text/javascript"></script>'; } <script> </head> <body onLoad="startSlide();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td id="productsBigCell" colspan="5">&nbsp;</td> </tr> …

Member Avatar for veledrom
0
111
Member Avatar for veledrom

Hi, Code below runs well in IE only but, i need it to run on other browsers as well. If anyone have same thing for other browsers then plese help me. Thanks [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script language=javaScript> <!-- Beginning of JavaScript …

0
52
Member Avatar for veledrom

Hi, Does anyone have a script that is used to upload and resize the all type of images? I have script to resize upload and JPG files only but i need GIF, BMP and others too. Thanks

Member Avatar for nathenastle
0
81
Member Avatar for veledrom

Hi, Can i use sleep() for 1 hour? I mean is there any expiry time for it or browser or session so on. Purpose is to send 2000 emails every one hour. Thanks

Member Avatar for digital-ether
0
198
Member Avatar for veledrom

Hi, I am new in Linux Ubuntu and want to learn a bit. I have a question, it might be very simple for you. I have only "root" as a user in my system. 1. I want to create a new user called "user_1" 2. I want to create a …

Member Avatar for muta
0
133
Member Avatar for veledrom

Hi, I cannot get the full physcial path of a selected file in Firefox. Code below works fine in IE. Is there other way to get full path in Firefox as well? Thanks [code] function getPath() { alert (document.formUpload.file.value); } <form name="formUpload" enctype="multipart/form-data"> Filename:<input type="file" name="file" id="file" onChange="getPath();" /> <input …

Member Avatar for veledrom
0
117
Member Avatar for veledrom

Hi, How do i order results for most relevant one? [code]Select id, title from data where (titleLIKE '%PHP developer%')[/code] id title ---- ------------------------------- 1 ASP developer 2 WEB developer 3 PHP 4 PHP developer In this case, it should be displayed in this other 4, 3, 2, 1 OR 4, …

Member Avatar for veledrom
0
213
Member Avatar for veledrom

Hi, [code]<textarea name="textareaQ3" rows="3" cols="80"></textarea>[/code] works fine in IE but, it the text is nor broken down into multiline in Firefox. How can i solve this iddue? Thanks

0
52
Member Avatar for veledrom

Hi, I use Ubuntu and want to restore a mysql file. How do i do it? It is on my desktop. Thanks

Member Avatar for veledrom
0
81

The End.