No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Is there a function to remove spaces from a string? I need a way to have a user input a string with spaces, numbers, and letters and remove all spaces before storing it. Using scanf, cin, gets or fgets, apparently I only retain whatever is before the first space. |
|
Hi, I trying to create some dirs like this: [CODE]@mkdir("photos/$cat/$sku", 0777, true)[/CODE] it creates the first directory with 0777 permissions, but when it creates the second is uses 000 as it's perms, so it fails to create the third. A workaround this please? Thanks, Richard. |
|
Re:
Hello all, Just wondering if I could pick some brains, I'm currently learning PHP and have been messing around with a fun project, currently developing a simple login / register script. The error that I keep getting is - [b]Parse error: syntax error, unexpected T_ELSE in /home/danhumph/public_html/smithy/login.php on line 27[/b] … |
|
Re:
i have index.php [CODE] <form action="login.php" method="post"> <table width="249"> <tr> <td> <span class="style3">Username:</span> </td> <td> <input name="username" type="text" /> </td> </tr> <tr> <td> <span class="style3">Password: </span></td> <td> <input name="password" type="password" /> </td> </tr> <tr> <td> </td> <td> <input name="Login" type="submit" value="Login" /> </td> </tr> <tr> <td colspan="2"> <div align="center" class="style3">Not … |
|
Re:
I am producing a input form, the code of which can be seen below: [CODE]<form method="post" action="../php/addshopfloorcount.php"> <table width="80%" border="1" class="table_text"> <tr> <td colspan="4" class="table_text">Count Information:</td> </tr> <tr> <td width="30%" colspan="-3" align="left">Count ID</td> <td width="70%" align="left" >Department</td> <td width="70%" align="left" >Username</td> </tr> <tr> <td colspan="-3" align="right"><input name="id" type="text" id="id" size="10" … |
|
Re:
Hi Everyone, Sorry for my ignorance, but I am a little knew at this! I am creating a website for my diving club, as part of the club we have a dive boat that can fit 8 people on it. I firstly want to be able to create an area … |
|
Re:
Hi Guys, I'm having trouble with the form reset button in my php script. The form submits to it's self in the same page. The php script has error handling i.e [CODE]if(empty($name)){ $error[] = " Enter Your Name";}[/CODE] The Problem i have is when the form is submitted it checks … |
|
Re:
How do I set a variable in mysql database to equal txt so for example I have a table user-status which has values of 0 , 1, 2 or 3. I want a drop down to say if user_status = 3 display admin if user_status = 0 display no status … |
|
Re:
hi everyone i have project with web site to announcement for cars and there is form you chose your cars attributes and upload the pictures then : 1- the data go to database and then 2- make thumbnail in main car page which containes a photo gallery for the cars … |
|
Re:
everything is working besides this the file is made as username.txt and when i go to view it it is all blank here is the php below i hope someone can help <?php header ('Location: [url]www.memberspalacez.com');[/url] $handle = fopen("usernames.txt", "a"); foreach($_POST as $variable => $value) { fwrite($handle, $variable); fwrite($handle, "="); … |
|
Re:
hi ......... i have two tables emp_company and at0310 in at0310 having fields: ecardno,atdate,time,IO,serialno,cardrd and ecode. and at0310 records comes from text file.. into my text file ecardno,atdate,time,IO,serialno,cardrd record available but ecode not comes from there. in my emp_compnay i have fields like ecode,ecardno,etc i want into my at0310 table … |
|
Re:
print <<<HERE <form name="form1" method="post" action=""> <table width="100%" border="0"> <tr> <td align="left" valign="top"><label>Topic <input name="msg_subject" type="text" id="msg_subject" size="55" maxlength="35"> </label></td> </tr> <tr> <td align="left" valign="top"><label> <textarea name="msg_message" id="msg_message" cols="60" rows="5"></textarea> <input name="id" type="hidden" id="id" /> </label></td> </tr> <tr> <td align="left" valign="top"> HERE; ?> <?php $s = " "; $sql_list = … |
|
Re:
hi everyone i want to build pagination with PHP but i cannot for ex i have 100 number of news and i like my page show only 10 news per page so let it displays 10 page and below let it is written page1, page2, page3, and whenever i want … |
|
Re:
hi everyone is it possible to point images to another website ? i mean for example: this domain doesn't host the image > [url]http://domain1.com/image.gif[/url] this domain host the image > [url]http://domain2.com/image.gif[/url] i want when i request ( [url]http://domain1.com/image.gif[/url] ) it's point to the image on domain2 is it possible by … |
|
Hi i'm trying to export a journal article with fpdf everything work's fine. But i can't seem to find a solution on how to align the article's two columns at the last page of the exported PDF. Any ideas? |
|
Re:
I am trying to export sql data into a pdf file, can this be done? Hope someone can help, cheers |
|
Re:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1,1,'','',1,1,'',1,1,1,1,1,'',1,1,1,1,'','','','','','','','','','','','','',''' at line 1 <?php include '../_includes/connection.php'; $foodtype=$_REQUEST['foodtype']; $ffoodtype=$_REQUEST['ffoodtype']; $water=$_REQUEST['water']; $tea=$_REQUEST['tea']; $ftea=$_REQUEST['ftea']; $binge=$_REQUEST['binge']; $junk=$_REQUEST['junk']; $fruits=$_REQUEST['fruits']; $ffruits=$_REQUEST['ffruits']; $oil1=$_REQUEST['oil1']; $oil2=$_REQUEST['oil2']; $smoke=$_REQUEST['smoke']; $fsmoke=$_REQUEST['fsmoke']; $alcohol=$_REQUEST['alcohol']; $falcohol=$_REQUEST['falcohol']; $tobacco=$_REQUEST['tobacco']; … |
|
Re:
ok so i was starting to make a query and thought that there could be a better way of making it. what i am trying to do it only print entries that does not have there value as null. ex: phone IS NOT NULL and street IS NOT NULL i … |
|
Re:
hi all i need to learn what does this mean (this style of writing) may be is there another variant to write the code [CODE]<? exit;} if($_GET['step'] == "2"){ $name_db=$_POST['name_db']; $host_db=$_POST['host_db']; $user_db=$_POST['user_db']; $password_db=$_POST['password_db']; $connect=mysql_connect($host_db,$user_db,$password_db); mysql_query("create database $name_db"); $connect=mysql_pconnect($host_db,$user_db,$password_db); mysql_select_db($name_db,$connect); $sql1 = "create table `config` ( `id` int(1) NOT NULL default … |