Search Results

Showing results 1 to 40 of 546
Search took 0.03 seconds.
Search: Posts Made By: R0bb0b ; Forum: PHP and child forums
Forum: PHP Oct 24th, 2008
Replies: 5
Views: 1,276
Posted By R0bb0b
Here is a thread on wordwrap if you decide to go that direction:
http://www.daniweb.com/forums/thread151130.html
Forum: PHP Oct 24th, 2008
Replies: 4
Views: 789
Posted By R0bb0b
You should probably try it on another computer to make sure it is not some type of spyware.
Forum: PHP Oct 24th, 2008
Replies: 3
Views: 474
Posted By R0bb0b
You might have to debug this a little but not much. This is how I would do it:

You might have to debug this a little but not much. This is how I would do it:

<?php
$data = "55;Portugal;178...
Forum: PHP Oct 22nd, 2008
Replies: 1
Views: 420
Posted By R0bb0b
You have several syntax and a couple logical errors.
From the way it looks, I thing this would be the best way to do it.

<?php
$message = "The Top 5 Employees of the month are:";...
Forum: PHP Oct 22nd, 2008
Replies: 3
Views: 4,176
Posted By R0bb0b
This is how I usually do it:

<?php
$querylog = "TRANSACTION STARTED<br /><br />";
$commit = "commit";
mysql_query("begin", $dbconn);

$query = "insert into ...";
if(!mysql_query($query,...
Forum: PHP Oct 20th, 2008
Replies: 5
Views: 1,152
Posted By R0bb0b
http://www.phptutorial.info/scripts/multiple_choice/index.php
Forum: PHP Oct 20th, 2008
Replies: 3
Views: 1,138
Posted By R0bb0b
Try uninstalling it, then going into the file system and completely removing the wamp directory and then reinstalling it. Or try installing xamp or apache2triad instead.
Forum: PHP Oct 20th, 2008
Replies: 5
Views: 1,152
Posted By R0bb0b
Are you talking about an exam, like a multiple choice test? If so, dude that would be such an easy script to write. Why don't you give it a try. If you understand programming concepts and know how...
Forum: PHP Oct 16th, 2008
Replies: 12
Views: 2,763
Posted By R0bb0b
Forum: PHP Oct 16th, 2008
Replies: 12
Views: 2,763
Posted By R0bb0b
You didn't close the if statement at line 7, this should work:

<?php
include 'config.php';
mysql_connect("$host", "$username", "$password")or die("cannot connect"); ...
Forum: PHP Oct 16th, 2008
Replies: 12
Views: 2,763
Posted By R0bb0b
Could you post your updated code? I'll test it.
Forum: PHP Oct 16th, 2008
Replies: 12
Views: 2,763
Posted By R0bb0b
did you capitalize "If($result)" in your code? I'm pretty sure that won't work. If so, change it to "if($result)"

$_get is suppose to be $_GET

That's all that I see off the top of my head,...
Forum: PHP Oct 15th, 2008
Replies: 12
Views: 2,763
Posted By R0bb0b
You have an odd number of brackets here

if($result){
{
echo("<br>Category deleted");
}
else{
echo("Failed to Delete category");
}
Forum: PHP Oct 15th, 2008
Replies: 2
Views: 473
Posted By R0bb0b
I've always wanted to find an excuse to create a class and serialize that class into a session. This class would store the current shopping cart for that user and would also include functions like...
Forum: PHP Oct 15th, 2008
Replies: 12
Views: 2,763
Posted By R0bb0b
So what do you know is happening? Meaning, at what points in your processing script(code that the form is submitted too) does focus reach? Does this make sense?

I'm not asking for a diagnosis of...
Forum: PHP Oct 15th, 2008
Replies: 1
Views: 537
Posted By R0bb0b
You are not closing your "else {" statement on line 60
Forum: PHP Oct 15th, 2008
Replies: 2
Views: 321
Posted By R0bb0b
What you need is two variables, one to collect errors(I usually use an array) and the other would be a boolean. The boolean can either be true or false to begin with depending on how you want to go...
Forum: PHP Oct 14th, 2008
Replies: 4
Views: 581
Posted By R0bb0b
Close.
Like this

$query="SELECT *FROM rad ";
$result="mysql_query($query)";
while($row=mysql_fetch_array($result)){
$text=$row['text'];
echo wordwrap($text, 14, "<br />\n", true);
}
Forum: PHP Oct 14th, 2008
Replies: 4
Views: 581
Posted By R0bb0b
I think this is what you are looking for
wordwrap($text, 14, "<br />\n", true);



modified to add the 4th argument to the function for hard break.
Forum: PHP Oct 14th, 2008
Replies: 3
Views: 494
Posted By R0bb0b
Then I would recommend looking for a free source package distribution that will do this for you or start reading tutorials on databases. Basic concepts of programming are simple, functions do most...
Forum: PHP Oct 14th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
I think what you are saying is you want to loop through all database results from both queries, try this:

<?php
$debug = false; //set to false if not debugging script

echo $debug?$query . "<br...
Forum: PHP Oct 13th, 2008
Replies: 2
Views: 465
Posted By R0bb0b
The only way that I know of doing this is redirecting after the post. For such a reason I usually process my posts on a separate file and then redirect back.
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
run it with the $debug on and post the results.
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
So are you looking to loop through all the rows from the only the second query and the first as well? And did the script actually loop through all the data as you were expecting, probably not huh?
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
The first thing you are going to look at is the data that the arrays are dumping, is it what you expect? It probably won't be, I also set it up to echo your query statements so you can paste them...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
The fact is that no matter how you have it set up in the database, it all comes out as type string. So to be most accurate, we are converting it to type integer.

Anyway, it is time to get dirty...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
Try this, the only thing that should make a difference is I converted the database record to an integer with (int) rather than a string, The rest should work pretty much the same was except it's just...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
Let me make a few adjustments to make it easier to understand.
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
oops, misspelled it, its not suppose to be mysqsl_fetch_array but mysql_fetch_array

try this:

<?php
$find_access = fetch ("SELECT * FROM job_roles WHERE user_id = '$username'");

print...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
try this:

<?php
$find_access = fetch ("SELECT * FROM job_roles WHERE user_id = '$username'");

print "$openHTML";

$find_job = mysql_query("SELECT * FROM job_positions WHERE name =...
Forum: PHP Oct 13th, 2008
Replies: 3
Views: 494
Posted By R0bb0b
You will have to set up a specific scheme that will allow this. For example, I would use one file for the detail page and use the url query string to access the record you want this person to view. ...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
The way this function is being used, it will only return one row. What you should do for any query you want more than just the first row from is the following:
$find_access = mysql_query("SELECT *...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 1,327
Posted By R0bb0b
fetch() is not in the manual, can you post that function?
Forum: PHP Oct 13th, 2008
Replies: 9
Views: 892
Posted By R0bb0b
Then you have two options.
1. Spend the time that it takes to learn php, we will be happy to help you on your way. PHP.net has a huge resource of documentation and examples available. There is...
Forum: PHP Oct 13th, 2008
Replies: 14
Views: 2,787
Posted By R0bb0b
And the opportunity to bring into the open and alert countless others of a security misconception that apparently often goes unnoticed.
Forum: PHP Oct 13th, 2008
Replies: 14
Views: 2,787
Posted By R0bb0b
Sorry to rain on your parade, but you should never go by $_FILES['upload_file']['type'] as a security check since this is just a line in the header and can easily be reproduced manually. The browser...
Forum: PHP Oct 13th, 2008
Replies: 9
Views: 892
Posted By R0bb0b
When viewing a table in php myadmin there is a button on the top that says browse which will allow you to view the data in the table and each row has an option to edit.
Forum: PHP Oct 12th, 2008
Replies: 12
Views: 1,126
Posted By R0bb0b
You will have to either design it yourself or look for one online: http://www.google.com/search?hl=en&q=php+ftp+online+script&btnG=Search
Forum: PHP Oct 12th, 2008
Replies: 12
Views: 1,126
Posted By R0bb0b
I don't know how much you know about functions but you will want to pass the username and password to the function as arguments, here is the manual on function arguments:...
Forum: PHP Oct 12th, 2008
Replies: 12
Views: 1,126
Posted By R0bb0b
Absolutely, its just like standard file manipulation functions except they have "ftp_" in front of them. Here is a list of all of the functions, each one having examples of how to use them:...
Showing results 1 to 40 of 546

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC